/* * 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; /** *
* Contains an asset property value (of a single type). *
*/ public class AssetPropertyVariant implements Serializable { /** ** Optional. The string value of the value entry. Accepts substitution * templates. *
*
* Constraints:
* Length: 1 - 1024
*/
private String stringValue;
/**
*
* Optional. A string that contains the integer value of the value entry. * Accepts substitution templates. *
*/ private String integerValue; /** ** Optional. A string that contains the double value of the value entry. * Accepts substitution templates. *
*/ private String doubleValue; /** *
* Optional. A string that contains the boolean value (true
or
* false
) of the value entry. Accepts substitution templates.
*
* Optional. The string value of the value entry. Accepts substitution * templates. *
*
* Constraints:
* Length: 1 - 1024
*
* @return
* Optional. The string value of the value entry. Accepts * substitution templates. *
*/ public String getStringValue() { return stringValue; } /** ** Optional. The string value of the value entry. Accepts substitution * templates. *
*
* Constraints:
* Length: 1 - 1024
*
* @param stringValue
* Optional. The string value of the value entry. Accepts * substitution templates. *
*/ public void setStringValue(String stringValue) { this.stringValue = stringValue; } /** ** Optional. The string value of the value entry. Accepts substitution * templates. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 1024
*
* @param stringValue
* Optional. The string value of the value entry. Accepts * substitution templates. *
* @return A reference to this updated object so that method calls can be * chained together. */ public AssetPropertyVariant withStringValue(String stringValue) { this.stringValue = stringValue; return this; } /** ** Optional. A string that contains the integer value of the value entry. * Accepts substitution templates. *
* * @return* Optional. A string that contains the integer value of the value * entry. Accepts substitution templates. *
*/ public String getIntegerValue() { return integerValue; } /** ** Optional. A string that contains the integer value of the value entry. * Accepts substitution templates. *
* * @param integerValue* Optional. A string that contains the integer value of the * value entry. Accepts substitution templates. *
*/ public void setIntegerValue(String integerValue) { this.integerValue = integerValue; } /** ** Optional. A string that contains the integer value of the value entry. * Accepts substitution templates. *
** Returns a reference to this object so that method calls can be chained * together. * * @param integerValue
* Optional. A string that contains the integer value of the * value entry. Accepts substitution templates. *
* @return A reference to this updated object so that method calls can be * chained together. */ public AssetPropertyVariant withIntegerValue(String integerValue) { this.integerValue = integerValue; return this; } /** ** Optional. A string that contains the double value of the value entry. * Accepts substitution templates. *
* * @return* Optional. A string that contains the double value of the value * entry. Accepts substitution templates. *
*/ public String getDoubleValue() { return doubleValue; } /** ** Optional. A string that contains the double value of the value entry. * Accepts substitution templates. *
* * @param doubleValue* Optional. A string that contains the double value of the value * entry. Accepts substitution templates. *
*/ public void setDoubleValue(String doubleValue) { this.doubleValue = doubleValue; } /** ** Optional. A string that contains the double value of the value entry. * Accepts substitution templates. *
** Returns a reference to this object so that method calls can be chained * together. * * @param doubleValue
* Optional. A string that contains the double value of the value * entry. Accepts substitution templates. *
* @return A reference to this updated object so that method calls can be * chained together. */ public AssetPropertyVariant withDoubleValue(String doubleValue) { this.doubleValue = doubleValue; return this; } /** *
* Optional. A string that contains the boolean value (true
or
* false
) of the value entry. Accepts substitution templates.
*
* Optional. A string that contains the boolean value (
* true
or false
) of the value entry.
* Accepts substitution templates.
*
* Optional. A string that contains the boolean value (true
or
* false
) of the value entry. Accepts substitution templates.
*
* Optional. A string that contains the boolean value (
* true
or false
) of the value entry.
* Accepts substitution templates.
*
* Optional. A string that contains the boolean value (true
or
* false
) of the value entry. Accepts substitution templates.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param booleanValue
* Optional. A string that contains the boolean value (
* true
or false
) of the value entry.
* Accepts substitution templates.
*