public class ThingAttribute extends Object implements Serializable
Describes a thing attribute.
| Constructor and Description |
|---|
ThingAttribute() |
| Modifier and Type | Method and Description |
|---|---|
ThingAttribute |
addattributesEntry(String key,
String value)
The attributes.
|
ThingAttribute |
clearattributesEntries()
Removes all the entries added into attributes.
|
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 String getThingName()
The name of the thing.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
The name of the thing.
public void setThingName(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(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 void setAttributes(Map<String,String> attributes)
The attributes.
attributes - The attributes.
public ThingAttribute withAttributes(Map<String,String> attributes)
The attributes.
Returns a reference to this object so that method calls can be chained together.
attributes - The attributes.
public ThingAttribute addattributesEntry(String key, String value)
The attributes.
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 String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.