/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.iot.model; import java.io.Serializable; /** *
* The thing search index document. *
*/ public class ThingDocument implements Serializable { /** ** The thing name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*/
private String thingName;
/**
*
* The thing ID. *
*/ private String thingId; /** ** The thing type name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*/
private String thingTypeName;
/**
*
* Thing group names. *
*/ private java.util.List* The attributes. *
*/ private java.util.Map* The unnamed shadow and named shadow. *
** For more information about shadows, see IoT Device Shadow service. *
*/ private String shadow; /** ** Contains Device Defender data. *
** For more information about Device Defender, see Device Defender. *
*/ private String deviceDefender; /** ** Indicates whether the thing is connected to the Amazon Web Services IoT * Core service. *
*/ private ThingConnectivity connectivity; /** ** The thing name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @return
* The thing name. *
*/ public String getThingName() { return thingName; } /** ** The thing name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @param thingName
* The thing name. *
*/ public void setThingName(String thingName) { this.thingName = 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:_-]+
*
* @param thingName
* The thing name. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingDocument withThingName(String thingName) { this.thingName = thingName; return this; } /** ** The thing ID. *
* * @return* The thing ID. *
*/ public String getThingId() { return thingId; } /** ** The thing ID. *
* * @param thingId* The thing ID. *
*/ public void setThingId(String thingId) { this.thingId = thingId; } /** ** The thing ID. *
** Returns a reference to this object so that method calls can be chained * together. * * @param thingId
* The thing ID. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingDocument withThingId(String thingId) { this.thingId = thingId; return this; } /** ** The thing type name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @return
* The thing type name. *
*/ public String getThingTypeName() { return thingTypeName; } /** ** The thing type name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @param thingTypeName
* The thing type name. *
*/ public void setThingTypeName(String thingTypeName) { this.thingTypeName = 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:_-]+
*
* @param thingTypeName
* The thing type name. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingDocument withThingTypeName(String thingTypeName) { this.thingTypeName = thingTypeName; return this; } /** ** Thing group names. *
* * @return* Thing group names. *
*/ public java.util.List* Thing group names. *
* * @param thingGroupNames* Thing group names. *
*/ public void setThingGroupNames(java.util.Collection* Thing group names. *
** Returns a reference to this object so that method calls can be chained * together. * * @param thingGroupNames
* Thing group names. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingDocument withThingGroupNames(String... thingGroupNames) { if (getThingGroupNames() == null) { this.thingGroupNames = new java.util.ArrayList* Thing group names. *
** Returns a reference to this object so that method calls can be chained * together. * * @param thingGroupNames
* Thing group names. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingDocument withThingGroupNames(java.util.Collection* The attributes. *
* * @return* The attributes. *
*/ public java.util.Map* The attributes. *
* * @param attributes* The attributes. *
*/ public void setAttributes(java.util.Map* The attributes. *
** Returns a reference to this object so that method calls can be chained * together. * * @param attributes
* The attributes. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingDocument withAttributes(java.util.Map* 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.
*
* @param key The key of the entry to be added into attributes.
* @param value The corresponding value of the entry to be added into
* attributes.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public ThingDocument addattributesEntry(String key, String value) {
if (null == this.attributes) {
this.attributes = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public ThingDocument clearattributesEntries() {
this.attributes = null;
return this;
}
/**
*
* The unnamed shadow and named shadow.
*
* For more information about shadows, see IoT Device Shadow service.
*
* The unnamed shadow and named shadow.
*
* For more information about shadows, see IoT Device Shadow service.
*
* The unnamed shadow and named shadow.
*
* For more information about shadows, see IoT Device Shadow service.
*
* The unnamed shadow and named shadow.
*
* For more information about shadows, see IoT Device Shadow service.
*
* The unnamed shadow and named shadow.
*
* For more information about shadows, see IoT Device Shadow service.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param shadow
* The unnamed shadow and named shadow.
*
* For more information about shadows, see IoT Device Shadow service.
*
* Contains Device Defender data.
*
* For more information about Device Defender, see Device Defender.
*
* Contains Device Defender data.
*
* For more information about Device Defender, see Device Defender.
*
* Contains Device Defender data.
*
* For more information about Device Defender, see Device Defender.
*
* Contains Device Defender data.
*
* For more information about Device Defender, see Device Defender.
*
* Contains Device Defender data.
*
* For more information about Device Defender, see Device Defender.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param deviceDefender
* Contains Device Defender data.
*
* For more information about Device Defender, see Device Defender.
*
* Indicates whether the thing is connected to the Amazon Web Services IoT
* Core service.
*
* Indicates whether the thing is connected to the Amazon Web
* Services IoT Core service.
*
* Indicates whether the thing is connected to the Amazon Web Services IoT
* Core service.
*
* Indicates whether the thing is connected to the Amazon Web
* Services IoT Core service.
*
* Indicates whether the thing is connected to the Amazon Web Services IoT
* Core service.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param connectivity
* Indicates whether the thing is connected to the Amazon Web
* Services IoT Core service.
*