/* * 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.gamelift.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Values for use in player attribute key-value pairs. This object lets you specify an attribute value using any of the
* valid data types: string, number, string array, or data map. Each AttributeValue
object can use only one
* of the available properties.
*
* For single string values. Maximum string length is 100 characters. *
*/ private String s; /** ** For number values, expressed as double. *
*/ private Double n; /** ** For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not * recognized; all occurrences of the repeated value after the first of a repeated value are ignored. *
*/ private java.util.List* For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters. *
*/ private java.util.Map* For single string values. Maximum string length is 100 characters. *
* * @param s * For single string values. Maximum string length is 100 characters. */ public void setS(String s) { this.s = s; } /** ** For single string values. Maximum string length is 100 characters. *
* * @return For single string values. Maximum string length is 100 characters. */ public String getS() { return this.s; } /** ** For single string values. Maximum string length is 100 characters. *
* * @param s * For single string values. Maximum string length is 100 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public AttributeValue withS(String s) { setS(s); return this; } /** ** For number values, expressed as double. *
* * @param n * For number values, expressed as double. */ public void setN(Double n) { this.n = n; } /** ** For number values, expressed as double. *
* * @return For number values, expressed as double. */ public Double getN() { return this.n; } /** ** For number values, expressed as double. *
* * @param n * For number values, expressed as double. * @return Returns a reference to this object so that method calls can be chained together. */ public AttributeValue withN(Double n) { setN(n); return this; } /** ** For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not * recognized; all occurrences of the repeated value after the first of a repeated value are ignored. *
* * @return For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are * not recognized; all occurrences of the repeated value after the first of a repeated value are ignored. */ public java.util.List* For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not * recognized; all occurrences of the repeated value after the first of a repeated value are ignored. *
* * @param sL * For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are * not recognized; all occurrences of the repeated value after the first of a repeated value are ignored. */ public void setSL(java.util.Collection* For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not * recognized; all occurrences of the repeated value after the first of a repeated value are ignored. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSL(java.util.Collection)} or {@link #withSL(java.util.Collection)} if you want to override the * existing values. *
* * @param sL * For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are * not recognized; all occurrences of the repeated value after the first of a repeated value are ignored. * @return Returns a reference to this object so that method calls can be chained together. */ public AttributeValue withSL(String... sL) { if (this.sL == null) { setSL(new java.util.ArrayList* For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not * recognized; all occurrences of the repeated value after the first of a repeated value are ignored. *
* * @param sL * For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are * not recognized; all occurrences of the repeated value after the first of a repeated value are ignored. * @return Returns a reference to this object so that method calls can be chained together. */ public AttributeValue withSL(java.util.Collection* For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters. *
* * @return For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters. */ public java.util.Map* For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters. *
* * @param sDM * For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters. */ public void setSDM(java.util.Map* For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters. *
* * @param sDM * For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public AttributeValue withSDM(java.util.Map