@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ThingAttribute extends Object implements Serializable, Cloneable, StructuredPojo
The properties of the thing, including thing name, thing type name, and a list of thing attributes.
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()
A list of thing attributes which are name-value pairs.
|
String |
getThingName()
The name of the thing.
|
String |
getThingTypeName()
The name of the thing type, if the thing has been associated with a type.
|
Long |
getVersion()
The version of the thing record in the registry.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Map<String,String> attributes)
A list of thing attributes which are name-value pairs.
|
void |
setThingName(String thingName)
The name of the thing.
|
void |
setThingTypeName(String thingTypeName)
The name of the thing type, if the thing has been associated with a type.
|
void |
setVersion(Long version)
The version of the thing record in the registry.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ThingAttribute |
withAttributes(Map<String,String> attributes)
A list of thing attributes which are name-value pairs.
|
ThingAttribute |
withThingName(String thingName)
The name of the thing.
|
ThingAttribute |
withThingTypeName(String thingTypeName)
The name of the thing type, if the thing has been associated with a type.
|
ThingAttribute |
withVersion(Long version)
The version of the thing record in the registry.
|
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 setThingTypeName(String thingTypeName)
The name of the thing type, if the thing has been associated with a type.
thingTypeName
- The name of the thing type, if the thing has been associated with a type.public String getThingTypeName()
The name of the thing type, if the thing has been associated with a type.
public ThingAttribute withThingTypeName(String thingTypeName)
The name of the thing type, if the thing has been associated with a type.
thingTypeName
- The name of the thing type, if the thing has been associated with a type.public Map<String,String> getAttributes()
A list of thing attributes which are name-value pairs.
public void setAttributes(Map<String,String> attributes)
A list of thing attributes which are name-value pairs.
attributes
- A list of thing attributes which are name-value pairs.public ThingAttribute withAttributes(Map<String,String> attributes)
A list of thing attributes which are name-value pairs.
attributes
- A list of thing attributes which are name-value pairs.public ThingAttribute addAttributesEntry(String key, String value)
public ThingAttribute clearAttributesEntries()
public void setVersion(Long version)
The version of the thing record in the registry.
version
- The version of the thing record in the registry.public Long getVersion()
The version of the thing record in the registry.
public ThingAttribute withVersion(Long version)
The version of the thing record in the registry.
version
- The version of the thing record in the registry.public String toString()
toString
in class Object
Object.toString()
public ThingAttribute clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.