public class ThingDocument extends Object implements Serializable
The thing search index document.
| Constructor and Description |
|---|
ThingDocument() |
| Modifier and Type | Method and Description |
|---|---|
ThingDocument |
addattributesEntry(String key,
String value)
The attributes.
|
ThingDocument |
clearattributesEntries()
Removes all the entries added into attributes.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
The attributes.
|
String |
getShadow()
The shadow.
|
List<String> |
getThingGroupNames()
Thing group names.
|
String |
getThingId()
The thing ID.
|
String |
getThingName()
The thing name.
|
String |
getThingTypeName()
The thing type name.
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
The attributes.
|
void |
setShadow(String shadow)
The shadow.
|
void |
setThingGroupNames(Collection<String> thingGroupNames)
Thing group names.
|
void |
setThingId(String thingId)
The thing ID.
|
void |
setThingName(String thingName)
The thing name.
|
void |
setThingTypeName(String thingTypeName)
The thing type name.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ThingDocument |
withAttributes(Map<String,String> attributes)
The attributes.
|
ThingDocument |
withShadow(String shadow)
The shadow.
|
ThingDocument |
withThingGroupNames(Collection<String> thingGroupNames)
Thing group names.
|
ThingDocument |
withThingGroupNames(String... thingGroupNames)
Thing group names.
|
ThingDocument |
withThingId(String thingId)
The thing ID.
|
ThingDocument |
withThingName(String thingName)
The thing name.
|
ThingDocument |
withThingTypeName(String thingTypeName)
The thing type name.
|
public String getThingName()
The thing name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The thing name.
public void setThingName(String thingName)
The thing name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName - The thing name.
public ThingDocument withThingName(String thingName)
The thing name.
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 thing name.
public String getThingId()
The thing ID.
The thing ID.
public void setThingId(String thingId)
The thing ID.
thingId - The thing ID.
public ThingDocument withThingId(String thingId)
The thing ID.
Returns a reference to this object so that method calls can be chained together.
thingId - The thing ID.
public String getThingTypeName()
The thing type name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The thing type name.
public void setThingTypeName(String thingTypeName)
The thing type name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingTypeName - The thing type name.
public ThingDocument withThingTypeName(String thingTypeName)
The thing type name.
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 thing type name.
public List<String> getThingGroupNames()
Thing group names.
Thing group names.
public void setThingGroupNames(Collection<String> thingGroupNames)
Thing group names.
thingGroupNames - Thing group names.
public ThingDocument withThingGroupNames(String... thingGroupNames)
Thing group names.
Returns a reference to this object so that method calls can be chained together.
thingGroupNames - Thing group names.
public ThingDocument withThingGroupNames(Collection<String> thingGroupNames)
Thing group names.
Returns a reference to this object so that method calls can be chained together.
thingGroupNames - Thing group names.
public void setAttributes(Map<String,String> attributes)
The attributes.
attributes - The attributes.
public ThingDocument 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 ThingDocument 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 ThingDocument clearattributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String getShadow()
The shadow.
The shadow.
public void setShadow(String shadow)
The shadow.
shadow - The shadow.
public ThingDocument withShadow(String shadow)
The shadow.
Returns a reference to this object so that method calls can be chained together.
shadow - The shadow.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.