public class RelatedResource
extends java.lang.Object
implements java.io.Serializable
Information about a related resource.
Constructor and Description |
---|
RelatedResource() |
Modifier and Type | Method and Description |
---|---|
RelatedResource |
addadditionalInfoEntry(java.lang.String key,
java.lang.String value)
Other information about the resource.
|
RelatedResource |
clearadditionalInfoEntries()
Removes all the entries added into additionalInfo.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAdditionalInfo()
Other information about the resource.
|
ResourceIdentifier |
getResourceIdentifier()
Information that identifies the resource.
|
java.lang.String |
getResourceType()
The type of resource.
|
int |
hashCode() |
void |
setAdditionalInfo(java.util.Map<java.lang.String,java.lang.String> additionalInfo)
Other information about the resource.
|
void |
setResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information that identifies the resource.
|
void |
setResourceType(ResourceType resourceType)
The type of resource.
|
void |
setResourceType(java.lang.String resourceType)
The type of resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RelatedResource |
withAdditionalInfo(java.util.Map<java.lang.String,java.lang.String> additionalInfo)
Other information about the resource.
|
RelatedResource |
withResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information that identifies the resource.
|
RelatedResource |
withResourceType(ResourceType resourceType)
The type of resource.
|
RelatedResource |
withResourceType(java.lang.String resourceType)
The type of resource.
|
public java.lang.String getResourceType()
The type of resource.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS, ROLE_ALIAS, IAM_ROLE
The type of resource.
ResourceType
public void setResourceType(java.lang.String resourceType)
The type of resource.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS, ROLE_ALIAS, IAM_ROLE
resourceType
- The type of resource.
ResourceType
public RelatedResource withResourceType(java.lang.String resourceType)
The type of resource.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS, ROLE_ALIAS, IAM_ROLE
resourceType
- The type of resource.
ResourceType
public void setResourceType(ResourceType resourceType)
The type of resource.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS, ROLE_ALIAS, IAM_ROLE
resourceType
- The type of resource.
ResourceType
public RelatedResource withResourceType(ResourceType resourceType)
The type of resource.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS, ROLE_ALIAS, IAM_ROLE
resourceType
- The type of resource.
ResourceType
public ResourceIdentifier getResourceIdentifier()
Information that identifies the resource.
Information that identifies the resource.
public void setResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information that identifies the resource.
resourceIdentifier
- Information that identifies the resource.
public RelatedResource withResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information that identifies the resource.
Returns a reference to this object so that method calls can be chained together.
resourceIdentifier
- Information that identifies the resource.
public java.util.Map<java.lang.String,java.lang.String> getAdditionalInfo()
Other information about the resource.
Other information about the resource.
public void setAdditionalInfo(java.util.Map<java.lang.String,java.lang.String> additionalInfo)
Other information about the resource.
additionalInfo
- Other information about the resource.
public RelatedResource withAdditionalInfo(java.util.Map<java.lang.String,java.lang.String> additionalInfo)
Other information about the resource.
Returns a reference to this object so that method calls can be chained together.
additionalInfo
- Other information about the resource.
public RelatedResource addadditionalInfoEntry(java.lang.String key, java.lang.String value)
Other information about the resource.
The method adds a new key-value pair into additionalInfo parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into additionalInfo.value
- The corresponding value of the entry to be added into
additionalInfo.public RelatedResource clearadditionalInfoEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.