public class ThingAttribute
extends java.lang.Object
implements java.io.Serializable
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(java.lang.String key,
java.lang.String value)
A list of thing attributes which are name-value pairs.
|
ThingAttribute |
clearattributesEntries()
Removes all the entries added into attributes.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
A list of thing attributes which are name-value pairs.
|
java.lang.String |
getThingArn()
The thing ARN.
|
java.lang.String |
getThingName()
The name of the thing.
|
java.lang.String |
getThingTypeName()
The name of the thing type, if the thing has been associated with a type.
|
java.lang.Long |
getVersion()
The version of the thing record in the registry.
|
int |
hashCode() |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of thing attributes which are name-value pairs.
|
void |
setThingArn(java.lang.String thingArn)
The thing ARN.
|
void |
setThingName(java.lang.String thingName)
The name of the thing.
|
void |
setThingTypeName(java.lang.String thingTypeName)
The name of the thing type, if the thing has been associated with a type.
|
void |
setVersion(java.lang.Long version)
The version of the thing record in the registry.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ThingAttribute |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of thing attributes which are name-value pairs.
|
ThingAttribute |
withThingArn(java.lang.String thingArn)
The thing ARN.
|
ThingAttribute |
withThingName(java.lang.String thingName)
The name of the thing.
|
ThingAttribute |
withThingTypeName(java.lang.String thingTypeName)
The name of the thing type, if the thing has been associated with a type.
|
ThingAttribute |
withVersion(java.lang.Long version)
The version of the thing record in the registry.
|
public java.lang.String getThingName()
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing.
public void setThingName(java.lang.String thingName)
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName
- The name of the thing.
public ThingAttribute withThingName(java.lang.String thingName)
The name of the thing.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName
- The name of the thing.
public java.lang.String getThingTypeName()
The name of the thing type, if the thing has been associated with a type.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing type, if the thing has been associated with a type.
public void setThingTypeName(java.lang.String thingTypeName)
The name of the thing type, if the thing has been associated with a type.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingTypeName
- The name of the thing type, if the thing has been associated with a type.
public ThingAttribute withThingTypeName(java.lang.String thingTypeName)
The name of the thing type, if the thing has been associated with a type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingTypeName
- The name of the thing type, if the thing has been associated with a type.
public java.lang.String getThingArn()
The thing ARN.
The thing ARN.
public void setThingArn(java.lang.String thingArn)
The thing ARN.
thingArn
- The thing ARN.
public ThingAttribute withThingArn(java.lang.String thingArn)
The thing ARN.
Returns a reference to this object so that method calls can be chained together.
thingArn
- The thing ARN.
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
A list of thing attributes which are name-value pairs.
A list of thing attributes which are name-value pairs.
public void setAttributes(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.String> attributes)
A list of thing attributes which are name-value pairs.
Returns a reference to this object so that method calls can be chained together.
attributes
- A list of thing attributes which are name-value pairs.
public ThingAttribute addattributesEntry(java.lang.String key, java.lang.String value)
A list of thing attributes which are name-value pairs.
The method adds a new key-value pair into attributes parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into attributes.value
- The corresponding value of the entry to be added into
attributes.public ThingAttribute clearattributesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.Long getVersion()
The version of the thing record in the registry.
The version of the thing record in the registry.
public void setVersion(java.lang.Long version)
The version of the thing record in the registry.
version
- The version of the thing record in the registry.
public ThingAttribute withVersion(java.lang.Long version)
The version of the thing record in the registry.
Returns a reference to this object so that method calls can be chained together.
version
- The version of the thing record in the registry.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.