@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ThingDocument extends Object implements Serializable, Cloneable, StructuredPojo
The thing search index document.
Constructor and Description |
---|
ThingDocument() |
Modifier and Type | Method and Description |
---|---|
ThingDocument |
addAttributesEntry(String key,
String value)
Add a single Attributes entry
|
ThingDocument |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
ThingDocument |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
The attributes.
|
ThingConnectivity |
getConnectivity()
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
|
String |
getDeviceDefender()
Contains Device Defender data.
|
String |
getShadow()
The unnamed shadow and named 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Map<String,String> attributes)
The attributes.
|
void |
setConnectivity(ThingConnectivity connectivity)
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
|
void |
setDeviceDefender(String deviceDefender)
Contains Device Defender data.
|
void |
setShadow(String shadow)
The unnamed shadow and named 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.
|
ThingDocument |
withAttributes(Map<String,String> attributes)
The attributes.
|
ThingDocument |
withConnectivity(ThingConnectivity connectivity)
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
|
ThingDocument |
withDeviceDefender(String deviceDefender)
Contains Device Defender data.
|
ThingDocument |
withShadow(String shadow)
The unnamed shadow and named 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 void setThingName(String thingName)
The thing name.
thingName
- The thing name.public String getThingName()
The thing name.
public ThingDocument withThingName(String thingName)
The thing name.
thingName
- The thing name.public void setThingId(String thingId)
The thing ID.
thingId
- The thing ID.public String getThingId()
The thing ID.
public ThingDocument withThingId(String thingId)
The thing ID.
thingId
- The thing ID.public void setThingTypeName(String thingTypeName)
The thing type name.
thingTypeName
- The thing type name.public String getThingTypeName()
The thing type name.
public ThingDocument withThingTypeName(String thingTypeName)
The thing type name.
thingTypeName
- The thing type name.public List<String> getThingGroupNames()
Thing group names.
public void setThingGroupNames(Collection<String> thingGroupNames)
Thing group names.
thingGroupNames
- Thing group names.public ThingDocument withThingGroupNames(String... thingGroupNames)
Thing group names.
NOTE: This method appends the values to the existing list (if any). Use
setThingGroupNames(java.util.Collection)
or withThingGroupNames(java.util.Collection)
if you
want to override the existing values.
thingGroupNames
- Thing group names.public ThingDocument withThingGroupNames(Collection<String> thingGroupNames)
Thing group names.
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.
attributes
- The attributes.public ThingDocument addAttributesEntry(String key, String value)
public ThingDocument clearAttributesEntries()
public void setShadow(String shadow)
The unnamed shadow and named shadow.
For more information about shadows, see IoT Device Shadow service.
shadow
- The unnamed shadow and named shadow.
For more information about shadows, see IoT Device Shadow service.
public String getShadow()
The unnamed shadow and named shadow.
For more information about shadows, see IoT Device Shadow service.
For more information about shadows, see IoT Device Shadow service.
public ThingDocument withShadow(String shadow)
The unnamed shadow and named shadow.
For more information about shadows, see IoT Device Shadow service.
shadow
- The unnamed shadow and named shadow.
For more information about shadows, see IoT Device Shadow service.
public void setDeviceDefender(String deviceDefender)
Contains Device Defender data.
For more information about Device Defender, see Device Defender.
deviceDefender
- Contains Device Defender data.
For more information about Device Defender, see Device Defender.
public String getDeviceDefender()
Contains Device Defender data.
For more information about Device Defender, see Device Defender.
For more information about Device Defender, see Device Defender.
public ThingDocument withDeviceDefender(String deviceDefender)
Contains Device Defender data.
For more information about Device Defender, see Device Defender.
deviceDefender
- Contains Device Defender data.
For more information about Device Defender, see Device Defender.
public void setConnectivity(ThingConnectivity connectivity)
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
connectivity
- Indicates whether the thing is connected to the Amazon Web Services IoT Core service.public ThingConnectivity getConnectivity()
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
public ThingDocument withConnectivity(ThingConnectivity connectivity)
Indicates whether the thing is connected to the Amazon Web Services IoT Core service.
connectivity
- Indicates whether the thing is connected to the Amazon Web Services IoT Core service.public String toString()
toString
in class Object
Object.toString()
public ThingDocument clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.