Class DescribeThingResult
- java.lang.Object
-
- com.amazonaws.services.iot.model.DescribeThingResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeThingResult extends Object implements Serializable, Cloneable
The output from the DescribeThing operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeThingResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setDefaultClientId
public void setDefaultClientId(String defaultClientId)
The default client ID.
- Parameters:
defaultClientId
- The default client ID.
-
getDefaultClientId
public String getDefaultClientId()
The default client ID.
- Returns:
- The default client ID.
-
withDefaultClientId
public DescribeThingResult withDefaultClientId(String defaultClientId)
The default client ID.
- Parameters:
defaultClientId
- The default client ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setThingName
public void setThingName(String thingName)
The name of the thing.
- Parameters:
thingName
- The name of the thing.
-
getThingName
public String getThingName()
The name of the thing.
- Returns:
- The name of the thing.
-
withThingName
public DescribeThingResult withThingName(String thingName)
The name of the thing.
- Parameters:
thingName
- The name of the thing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttributes
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\"}})
- Returns:
- 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\"}})
-
setAttributes
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\"}})
- Parameters:
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\"}})
-
withAttributes
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\"}})
- Parameters:
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\"}})- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAttributesEntry
public DescribeThingResult addAttributesEntry(String key, String value)
-
clearAttributesEntries
public DescribeThingResult clearAttributesEntries()
Removes all the entries added into Attributes. <p> Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeThingResult clone()
-
-