@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)
Add a single Attributes entry
|
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 |
getThingArn()
The thing ARN.
|
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 |
setThingArn(String thingArn)
The thing ARN.
|
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.
|
ThingAttribute |
withAttributes(Map<String,String> attributes)
A list of thing attributes which are name-value pairs.
|
ThingAttribute |
withThingArn(String thingArn)
The thing ARN.
|
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 void setThingArn(String thingArn)
The thing ARN.
thingArn
- The thing ARN.public String getThingArn()
The thing ARN.
public ThingAttribute withThingArn(String thingArn)
The thing ARN.
thingArn
- The thing ARN.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.