public class DescribeThingResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The output from the DescribeThing operation.
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.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\"}})
|
private java.lang.String |
defaultClientId
The default client ID.
|
private java.lang.String |
thingName
The name of the thing.
|
Constructor and Description |
---|
DescribeThingResult() |
Modifier and Type | Method and Description |
---|---|
DescribeThingResult |
addAttributesEntry(java.lang.String key,
java.lang.String value) |
DescribeThingResult |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
DescribeThingResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.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\"}})
|
java.lang.String |
getDefaultClientId()
The default client ID.
|
java.lang.String |
getThingName()
The name of the thing.
|
int |
hashCode() |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.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(java.lang.String defaultClientId)
The default client ID.
|
void |
setThingName(java.lang.String thingName)
The name of the thing.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeThingResult |
withAttributes(java.util.Map<java.lang.String,java.lang.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(java.lang.String defaultClientId)
The default client ID.
|
DescribeThingResult |
withThingName(java.lang.String thingName)
The name of the thing.
|
private java.lang.String defaultClientId
The default client ID.
private java.lang.String thingName
The name of the thing.
private java.util.Map<java.lang.String,java.lang.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\"}})
public void setDefaultClientId(java.lang.String defaultClientId)
The default client ID.
defaultClientId
- The default client ID.public java.lang.String getDefaultClientId()
The default client ID.
public DescribeThingResult withDefaultClientId(java.lang.String defaultClientId)
The default client ID.
defaultClientId
- The default client ID.public void setThingName(java.lang.String thingName)
The name of the thing.
thingName
- The name of the thing.public java.lang.String getThingName()
The name of the thing.
public DescribeThingResult withThingName(java.lang.String thingName)
The name of the thing.
thingName
- The name of the thing.public java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.String value)
public DescribeThingResult clearAttributesEntries()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeThingResult clone()
clone
in class java.lang.Object