/* * 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 properties of the thing, including thing name, thing type name, and a * list of thing attributes. *
*/ public class ThingAttribute implements Serializable { /** ** The name of the thing. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*/
private String thingName;
/**
*
* The name of the thing type, if the thing has been associated with a type. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*/
private String thingTypeName;
/**
*
* The thing ARN. *
*/ private String thingArn; /** ** A list of thing attributes which are name-value pairs. *
*/ private java.util.Map* The version of the thing record in the registry. *
*/ private Long version; /** ** The name of the thing. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @return
* The name of the thing. *
*/ public String getThingName() { return thingName; } /** ** The name of the thing. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @param thingName
* The name of the thing. *
*/ public void setThingName(String thingName) { this.thingName = thingName; } /** ** The name of the thing. *
** 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 name of the thing. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingAttribute withThingName(String thingName) { this.thingName = thingName; return this; } /** ** The name of the thing type, if the thing has been associated with a type. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @return
* The name of the thing type, if the thing has been associated with * a type. *
*/ public String getThingTypeName() { return thingTypeName; } /** ** The name of the thing type, if the thing has been associated with a type. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*
* @param thingTypeName
* The name of the thing type, if the thing has been associated * with a type. *
*/ public void setThingTypeName(String thingTypeName) { this.thingTypeName = thingTypeName; } /** ** The name of the thing type, if the thing has been associated with a type. *
** 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 name of the thing type, if the thing has been associated * with a type. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingAttribute withThingTypeName(String thingTypeName) { this.thingTypeName = thingTypeName; return this; } /** ** The thing ARN. *
* * @return* The thing ARN. *
*/ public String getThingArn() { return thingArn; } /** ** The thing ARN. *
* * @param thingArn* The thing ARN. *
*/ public void setThingArn(String thingArn) { this.thingArn = thingArn; } /** ** The thing ARN. *
** Returns a reference to this object so that method calls can be chained * together. * * @param thingArn
* The thing ARN. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingAttribute withThingArn(String thingArn) { this.thingArn = thingArn; return this; } /** ** A list of thing attributes which are name-value pairs. *
* * @return* A list of thing attributes which are name-value pairs. *
*/ public java.util.Map* A list of thing attributes which are name-value pairs. *
* * @param attributes* A list of thing attributes which are name-value pairs. *
*/ public void setAttributes(java.util.Map* A list of thing attributes which are name-value pairs. *
** Returns a reference to this object so that method calls can be chained * together. * * @param attributes
* A list of thing attributes which are name-value pairs. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ThingAttribute withAttributes(java.util.Map* A list of thing attributes which are name-value pairs. *
*
* 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 ThingAttribute 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 ThingAttribute clearattributesEntries() {
this.attributes = null;
return this;
}
/**
*
* The version of the thing record in the registry.
*
* The version of the thing record in the registry.
*
* The version of the thing record in the registry.
*
* The version of the thing record in the registry.
*
* The version of the thing record in the registry.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param version
* The version of the thing record in the registry.
*