public class RelatedResource extends Object implements Serializable
Information about a related resource.
Constructor and Description |
---|
RelatedResource() |
Modifier and Type | Method and Description |
---|---|
RelatedResource |
addadditionalInfoEntry(String key,
String value)
Additional information about the resource.
|
RelatedResource |
clearadditionalInfoEntries()
Removes all the entries added into additionalInfo.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAdditionalInfo()
Additional information about the resource.
|
ResourceIdentifier |
getResourceIdentifier()
Information identifying the resource.
|
String |
getResourceType()
The type of resource.
|
int |
hashCode() |
void |
setAdditionalInfo(Map<String,String> additionalInfo)
Additional information about the resource.
|
void |
setResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information identifying the resource.
|
void |
setResourceType(ResourceType resourceType)
The type of resource.
|
void |
setResourceType(String resourceType)
The type of resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RelatedResource |
withAdditionalInfo(Map<String,String> additionalInfo)
Additional information about the resource.
|
RelatedResource |
withResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information identifying the resource.
|
RelatedResource |
withResourceType(ResourceType resourceType)
The type of resource.
|
RelatedResource |
withResourceType(String resourceType)
The type of resource.
|
public String getResourceType()
The type of resource.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS
The type of resource.
ResourceType
public void setResourceType(String resourceType)
The type of resource.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS
resourceType
- The type of resource.
ResourceType
public RelatedResource withResourceType(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
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
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
resourceType
- The type of resource.
ResourceType
public ResourceIdentifier getResourceIdentifier()
Information identifying the resource.
Information identifying the resource.
public void setResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information identifying the resource.
resourceIdentifier
- Information identifying the resource.
public RelatedResource withResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information identifying the resource.
Returns a reference to this object so that method calls can be chained together.
resourceIdentifier
- Information identifying the resource.
public Map<String,String> getAdditionalInfo()
Additional information about the resource.
Additional information about the resource.
public void setAdditionalInfo(Map<String,String> additionalInfo)
Additional information about the resource.
additionalInfo
- Additional information about the resource.
public RelatedResource withAdditionalInfo(Map<String,String> additionalInfo)
Additional information about the resource.
Returns a reference to this object so that method calls can be chained together.
additionalInfo
- Additional information about the resource.
public RelatedResource addadditionalInfoEntry(String key, String value)
Additional 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 String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.