public class ThingAttribute extends Object implements Serializable, Cloneable
Describes a thing attribute.
Constructor and Description |
---|
ThingAttribute() |
Modifier and Type | Method and 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.
|
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 ThingAttribute withThingName(String thingName)
The name of the thing.
thingName
- The name of the thing.public void setAttributes(Map<String,String> attributes)
The attributes.
attributes
- The attributes.public ThingAttribute withAttributes(Map<String,String> attributes)
The attributes.
attributes
- The attributes.public ThingAttribute addAttributesEntry(String key, String value)
public ThingAttribute clearAttributesEntries()
public String toString()
toString
in class Object
Object.toString()
public ThingAttribute clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.