public class DescribeThingResult extends Object implements Serializable
The output from the DescribeThing operation.
| Constructor and Description |
|---|
DescribeThingResult() |
| Modifier and Type | Method and Description |
|---|---|
DescribeThingResult |
addAttributesEntry(String key,
String value)
The attributes, which are name/value pairs in JSON format (for
example: {\"attributes\":{\"some-name1\":\"some-value1\"},
{\"some-name2\":\"some-value2\"}, {\"some-name3\":\"some-value3\"}})
|
DescribeThingResult |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
The attributes, which are name/value pairs in JSON format (for
example: {\"attributes\":{\"some-name1\":\"some-value1\"},
{\"some-name2\":\"some-value2\"}, {\"some-name3\":\"some-value3\"}})
|
String |
getDefaultClientId()
The default client ID.
|
String |
getThingName()
The name of the thing.
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
The attributes, which are name/value pairs in JSON format (for
example: {\"attributes\":{\"some-name1\":\"some-value1\"},
{\"some-name2\":\"some-value2\"}, {\"some-name3\":\"some-value3\"}})
|
void |
setDefaultClientId(String defaultClientId)
The default client ID.
|
void |
setThingName(String thingName)
The name of the thing.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeThingResult |
withAttributes(Map<String,String> attributes)
The attributes, which are name/value pairs in JSON format (for
example: {\"attributes\":{\"some-name1\":\"some-value1\"},
{\"some-name2\":\"some-value2\"}, {\"some-name3\":\"some-value3\"}})
|
DescribeThingResult |
withDefaultClientId(String defaultClientId)
The default client ID.
|
DescribeThingResult |
withThingName(String thingName)
The name of the thing.
|
public String getDefaultClientId()
public void setDefaultClientId(String defaultClientId)
defaultClientId - The default client ID.public DescribeThingResult withDefaultClientId(String defaultClientId)
Returns a reference to this object so that method calls can be chained together.
defaultClientId - The default client ID.public String getThingName()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
public void setThingName(String thingName)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
thingName - The name of the thing.public DescribeThingResult withThingName(String thingName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
thingName - The name of the thing.public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes - The attributes, which are name/value pairs in JSON format (for
example: {\"attributes\":{\"some-name1\":\"some-value1\"},
{\"some-name2\":\"some-value2\"}, {\"some-name3\":\"some-value3\"}})public DescribeThingResult withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - The attributes, which are name/value pairs in JSON format (for
example: {\"attributes\":{\"some-name1\":\"some-value1\"},
{\"some-name2\":\"some-value2\"}, {\"some-name3\":\"some-value3\"}})public DescribeThingResult addAttributesEntry(String key, String value)
The method adds a new key-value pair into Attributes 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 Attributes.value - The corresponding value of the entry to be added into Attributes.public DescribeThingResult clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.