public class DescribeThingResult extends Object implements Serializable, Cloneable
The output from the DescribeThing operation.
Constructor and Description |
---|
DescribeThingResult() |
Modifier and Type | Method and Description |
---|---|
DescribeThingResult |
addAttributesEntry(String key,
String value) |
DescribeThingResult |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
DescribeThingResult |
clone() |
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 void setDefaultClientId(String defaultClientId)
The default client ID.
defaultClientId
- The default client ID.public String getDefaultClientId()
The default client ID.
public DescribeThingResult withDefaultClientId(String defaultClientId)
The default client ID.
defaultClientId
- The default client ID.public void setThingName(String thingName)
The name of the thing.
thingName
- The name of the thing.public String getThingName()
The name of the thing.
public DescribeThingResult withThingName(String thingName)
The name of the thing.
thingName
- The name of the thing.public 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\"}})
public 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\"}})
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)
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\"}})
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)
public DescribeThingResult clearAttributesEntries()
public String toString()
toString
in class Object
Object.toString()
public DescribeThingResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.