Package com.amazonaws.services.iot.model
Class ThingAttribute
- java.lang.Object
-
- com.amazonaws.services.iot.model.ThingAttribute
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ThingAttribute extends Object implements Serializable, Cloneable
Describes a thing attribute.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ThingAttribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThingAttribute
addAttributesEntry(String key, String value)
ThingAttribute
clearAttributesEntries()
Removes all the entries added into Attributes.ThingAttribute
clone()
boolean
equals(Object obj)
Map<String,String>
getAttributes()
The attributes.String
getThingName()
The name of the thing.int
hashCode()
void
setAttributes(Map<String,String> attributes)
The attributes.void
setThingName(String thingName)
The name of the thing.String
toString()
Returns a string representation of this object; useful for testing and debugging.ThingAttribute
withAttributes(Map<String,String> attributes)
The attributes.ThingAttribute
withThingName(String thingName)
The name of the thing.
-
-
-
Method Detail
-
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 ThingAttribute 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.
-
setAttributes
public void setAttributes(Map<String,String> attributes)
The attributes.
- Parameters:
attributes
- The attributes.
-
withAttributes
public ThingAttribute withAttributes(Map<String,String> attributes)
The attributes.
- Parameters:
attributes
- The attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAttributesEntry
public ThingAttribute addAttributesEntry(String key, String value)
-
clearAttributesEntries
public ThingAttribute 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 ThingAttribute clone()
-
-