public class ThingGroupDocument extends Object implements Serializable
The thing group search index document.
| Constructor and Description |
|---|
ThingGroupDocument() |
| Modifier and Type | Method and Description |
|---|---|
ThingGroupDocument |
addattributesEntry(String key,
String value)
The thing group attributes.
|
ThingGroupDocument |
clearattributesEntries()
Removes all the entries added into attributes.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
The thing group attributes.
|
List<String> |
getParentGroupNames()
Parent group names.
|
String |
getThingGroupDescription()
The thing group description.
|
String |
getThingGroupId()
The thing group ID.
|
String |
getThingGroupName()
The thing group name.
|
int |
hashCode() |
void |
setAttributes(Map<String,String> attributes)
The thing group attributes.
|
void |
setParentGroupNames(Collection<String> parentGroupNames)
Parent group names.
|
void |
setThingGroupDescription(String thingGroupDescription)
The thing group description.
|
void |
setThingGroupId(String thingGroupId)
The thing group ID.
|
void |
setThingGroupName(String thingGroupName)
The thing group name.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ThingGroupDocument |
withAttributes(Map<String,String> attributes)
The thing group attributes.
|
ThingGroupDocument |
withParentGroupNames(Collection<String> parentGroupNames)
Parent group names.
|
ThingGroupDocument |
withParentGroupNames(String... parentGroupNames)
Parent group names.
|
ThingGroupDocument |
withThingGroupDescription(String thingGroupDescription)
The thing group description.
|
ThingGroupDocument |
withThingGroupId(String thingGroupId)
The thing group ID.
|
ThingGroupDocument |
withThingGroupName(String thingGroupName)
The thing group name.
|
public String getThingGroupName()
The thing group name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The thing group name.
public void setThingGroupName(String thingGroupName)
The thing group name.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingGroupName - The thing group name.
public ThingGroupDocument withThingGroupName(String thingGroupName)
The thing group name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingGroupName - The thing group name.
public String getThingGroupId()
The thing group ID.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
The thing group ID.
public void setThingGroupId(String thingGroupId)
The thing group ID.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
thingGroupId - The thing group ID.
public ThingGroupDocument withThingGroupId(String thingGroupId)
The thing group ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
thingGroupId - The thing group ID.
public String getThingGroupDescription()
The thing group description.
Constraints:
Length: - 2028
Pattern: [\p{Graph}\x20]*
The thing group description.
public void setThingGroupDescription(String thingGroupDescription)
The thing group description.
Constraints:
Length: - 2028
Pattern: [\p{Graph}\x20]*
thingGroupDescription - The thing group description.
public ThingGroupDocument withThingGroupDescription(String thingGroupDescription)
The thing group description.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 2028
Pattern: [\p{Graph}\x20]*
thingGroupDescription - The thing group description.
public Map<String,String> getAttributes()
The thing group attributes.
The thing group attributes.
public void setAttributes(Map<String,String> attributes)
The thing group attributes.
attributes - The thing group attributes.
public ThingGroupDocument withAttributes(Map<String,String> attributes)
The thing group attributes.
Returns a reference to this object so that method calls can be chained together.
attributes - The thing group attributes.
public ThingGroupDocument addattributesEntry(String key, String value)
The thing group 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 ThingGroupDocument clearattributesEntries()
Returns a reference to this object so that method calls can be chained together.
public List<String> getParentGroupNames()
Parent group names.
Parent group names.
public void setParentGroupNames(Collection<String> parentGroupNames)
Parent group names.
parentGroupNames - Parent group names.
public ThingGroupDocument withParentGroupNames(String... parentGroupNames)
Parent group names.
Returns a reference to this object so that method calls can be chained together.
parentGroupNames - Parent group names.
public ThingGroupDocument withParentGroupNames(Collection<String> parentGroupNames)
Parent group names.
Returns a reference to this object so that method calls can be chained together.
parentGroupNames - Parent group names.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.