/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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.See Also:
AWS
* API Reference
For single string values. Maximum string length is 100 characters.
*/ inline const Aws::String& GetS() const{ return m_s; } /** *For single string values. Maximum string length is 100 characters.
*/ inline bool SHasBeenSet() const { return m_sHasBeenSet; } /** *For single string values. Maximum string length is 100 characters.
*/ inline void SetS(const Aws::String& value) { m_sHasBeenSet = true; m_s = value; } /** *For single string values. Maximum string length is 100 characters.
*/ inline void SetS(Aws::String&& value) { m_sHasBeenSet = true; m_s = std::move(value); } /** *For single string values. Maximum string length is 100 characters.
*/ inline void SetS(const char* value) { m_sHasBeenSet = true; m_s.assign(value); } /** *For single string values. Maximum string length is 100 characters.
*/ inline AttributeValue& WithS(const Aws::String& value) { SetS(value); return *this;} /** *For single string values. Maximum string length is 100 characters.
*/ inline AttributeValue& WithS(Aws::String&& value) { SetS(std::move(value)); return *this;} /** *For single string values. Maximum string length is 100 characters.
*/ inline AttributeValue& WithS(const char* value) { SetS(value); return *this;} /** *For number values, expressed as double.
*/ inline double GetN() const{ return m_n; } /** *For number values, expressed as double.
*/ inline bool NHasBeenSet() const { return m_nHasBeenSet; } /** *For number values, expressed as double.
*/ inline void SetN(double value) { m_nHasBeenSet = true; m_n = value; } /** *For number values, expressed as double.
*/ inline AttributeValue& WithN(double value) { SetN(value); 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.
*/ inline const Aws::VectorFor 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.
*/ inline bool SLHasBeenSet() const { return m_sLHasBeenSet; } /** *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.
*/ inline void SetSL(const Aws::VectorFor 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.
*/ inline void SetSL(Aws::VectorFor 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.
*/ inline AttributeValue& WithSL(const Aws::VectorFor 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.
*/ inline AttributeValue& WithSL(Aws::VectorFor 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.
*/ inline AttributeValue& AddSL(const Aws::String& value) { m_sLHasBeenSet = true; m_sL.push_back(value); 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.
*/ inline AttributeValue& AddSL(Aws::String&& value) { m_sLHasBeenSet = true; m_sL.push_back(std::move(value)); 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.
*/ inline AttributeValue& AddSL(const char* value) { m_sLHasBeenSet = true; m_sL.push_back(value); return *this; } /** *For a map of up to 10 data type:value pairs. Maximum length for each string * value is 100 characters.
*/ inline const Aws::MapFor a map of up to 10 data type:value pairs. Maximum length for each string * value is 100 characters.
*/ inline bool SDMHasBeenSet() const { return m_sDMHasBeenSet; } /** *For a map of up to 10 data type:value pairs. Maximum length for each string * value is 100 characters.
*/ inline void SetSDM(const Aws::MapFor a map of up to 10 data type:value pairs. Maximum length for each string * value is 100 characters.
*/ inline void SetSDM(Aws::MapFor a map of up to 10 data type:value pairs. Maximum length for each string * value is 100 characters.
*/ inline AttributeValue& WithSDM(const Aws::MapFor a map of up to 10 data type:value pairs. Maximum length for each string * value is 100 characters.
*/ inline AttributeValue& WithSDM(Aws::MapFor a map of up to 10 data type:value pairs. Maximum length for each string * value is 100 characters.
*/ inline AttributeValue& AddSDM(const Aws::String& key, double value) { m_sDMHasBeenSet = true; m_sDM.emplace(key, value); return *this; } /** *For a map of up to 10 data type:value pairs. Maximum length for each string * value is 100 characters.
*/ inline AttributeValue& AddSDM(Aws::String&& key, double value) { m_sDMHasBeenSet = true; m_sDM.emplace(std::move(key), value); return *this; } /** *For a map of up to 10 data type:value pairs. Maximum length for each string * value is 100 characters.
*/ inline AttributeValue& AddSDM(const char* key, double value) { m_sDMHasBeenSet = true; m_sDM.emplace(key, value); return *this; } private: Aws::String m_s; bool m_sHasBeenSet = false; double m_n; bool m_nHasBeenSet = false; Aws::Vector