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