/* * Copyright 2018-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.iot1clickdevices.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeviceDescription implements Serializable, Cloneable, StructuredPojo { /** *
* The ARN of the device. *
*/ private String arn; /** ** An array of zero or more elements of DeviceAttribute objects providing user specified device attributes. *
*/ private java.util.Map* The unique identifier of the device. *
*/ private String deviceId; /** ** A Boolean value indicating whether or not the device is enabled. *
*/ private Boolean enabled; /** ** A value between 0 and 1 inclusive, representing the fraction of life remaining for the device. *
*/ private Double remainingLife; /** ** The type of the device, such as "button". *
*/ private String type; /** ** The tags currently associated with the AWS IoT 1-Click device. *
*/ private java.util.Map* The ARN of the device. *
* * @param arn * The ARN of the device. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the device. *
* * @return The ARN of the device. */ public String getArn() { return this.arn; } /** ** The ARN of the device. *
* * @param arn * The ARN of the device. * @return Returns a reference to this object so that method calls can be chained together. */ public DeviceDescription withArn(String arn) { setArn(arn); return this; } /** ** An array of zero or more elements of DeviceAttribute objects providing user specified device attributes. *
* * @return An array of zero or more elements of DeviceAttribute objects providing user specified device attributes. */ public java.util.Map* An array of zero or more elements of DeviceAttribute objects providing user specified device attributes. *
* * @param attributes * An array of zero or more elements of DeviceAttribute objects providing user specified device attributes. */ public void setAttributes(java.util.Map* An array of zero or more elements of DeviceAttribute objects providing user specified device attributes. *
* * @param attributes * An array of zero or more elements of DeviceAttribute objects providing user specified device attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public DeviceDescription withAttributes(java.util.Map* The unique identifier of the device. *
* * @param deviceId * The unique identifier of the device. */ public void setDeviceId(String deviceId) { this.deviceId = deviceId; } /** ** The unique identifier of the device. *
* * @return The unique identifier of the device. */ public String getDeviceId() { return this.deviceId; } /** ** The unique identifier of the device. *
* * @param deviceId * The unique identifier of the device. * @return Returns a reference to this object so that method calls can be chained together. */ public DeviceDescription withDeviceId(String deviceId) { setDeviceId(deviceId); return this; } /** ** A Boolean value indicating whether or not the device is enabled. *
* * @param enabled * A Boolean value indicating whether or not the device is enabled. */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** ** A Boolean value indicating whether or not the device is enabled. *
* * @return A Boolean value indicating whether or not the device is enabled. */ public Boolean getEnabled() { return this.enabled; } /** ** A Boolean value indicating whether or not the device is enabled. *
* * @param enabled * A Boolean value indicating whether or not the device is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public DeviceDescription withEnabled(Boolean enabled) { setEnabled(enabled); return this; } /** ** A Boolean value indicating whether or not the device is enabled. *
* * @return A Boolean value indicating whether or not the device is enabled. */ public Boolean isEnabled() { return this.enabled; } /** ** A value between 0 and 1 inclusive, representing the fraction of life remaining for the device. *
* * @param remainingLife * A value between 0 and 1 inclusive, representing the fraction of life remaining for the device. */ public void setRemainingLife(Double remainingLife) { this.remainingLife = remainingLife; } /** ** A value between 0 and 1 inclusive, representing the fraction of life remaining for the device. *
* * @return A value between 0 and 1 inclusive, representing the fraction of life remaining for the device. */ public Double getRemainingLife() { return this.remainingLife; } /** ** A value between 0 and 1 inclusive, representing the fraction of life remaining for the device. *
* * @param remainingLife * A value between 0 and 1 inclusive, representing the fraction of life remaining for the device. * @return Returns a reference to this object so that method calls can be chained together. */ public DeviceDescription withRemainingLife(Double remainingLife) { setRemainingLife(remainingLife); return this; } /** ** The type of the device, such as "button". *
* * @param type * The type of the device, such as "button". */ public void setType(String type) { this.type = type; } /** ** The type of the device, such as "button". *
* * @return The type of the device, such as "button". */ public String getType() { return this.type; } /** ** The type of the device, such as "button". *
* * @param type * The type of the device, such as "button". * @return Returns a reference to this object so that method calls can be chained together. */ public DeviceDescription withType(String type) { setType(type); return this; } /** ** The tags currently associated with the AWS IoT 1-Click device. *
* * @return The tags currently associated with the AWS IoT 1-Click device. */ public java.util.Map* The tags currently associated with the AWS IoT 1-Click device. *
* * @param tags * The tags currently associated with the AWS IoT 1-Click device. */ public void setTags(java.util.Map* The tags currently associated with the AWS IoT 1-Click device. *
* * @param tags * The tags currently associated with the AWS IoT 1-Click device. * @return Returns a reference to this object so that method calls can be chained together. */ public DeviceDescription withTags(java.util.Map