AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AttributeValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift {
22namespace Model {
23
33 public:
34 AWS_GAMELIFT_API AttributeValue() = default;
35 AWS_GAMELIFT_API AttributeValue(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetS() const { return m_s; }
44 inline bool SHasBeenSet() const { return m_sHasBeenSet; }
45 template <typename ST = Aws::String>
46 void SetS(ST&& value) {
47 m_sHasBeenSet = true;
48 m_s = std::forward<ST>(value);
49 }
50 template <typename ST = Aws::String>
51 AttributeValue& WithS(ST&& value) {
52 SetS(std::forward<ST>(value));
53 return *this;
54 }
56
58
61 inline double GetN() const { return m_n; }
62 inline bool NHasBeenSet() const { return m_nHasBeenSet; }
63 inline void SetN(double value) {
64 m_nHasBeenSet = true;
65 m_n = value;
66 }
67 inline AttributeValue& WithN(double value) {
68 SetN(value);
69 return *this;
70 }
72
74
79 inline const Aws::Vector<Aws::String>& GetSL() const { return m_sL; }
80 inline bool SLHasBeenSet() const { return m_sLHasBeenSet; }
81 template <typename SLT = Aws::Vector<Aws::String>>
82 void SetSL(SLT&& value) {
83 m_sLHasBeenSet = true;
84 m_sL = std::forward<SLT>(value);
85 }
86 template <typename SLT = Aws::Vector<Aws::String>>
87 AttributeValue& WithSL(SLT&& value) {
88 SetSL(std::forward<SLT>(value));
89 return *this;
90 }
91 template <typename SLT = Aws::String>
92 AttributeValue& AddSL(SLT&& value) {
93 m_sLHasBeenSet = true;
94 m_sL.emplace_back(std::forward<SLT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::Map<Aws::String, double>& GetSDM() const { return m_sDM; }
105 inline bool SDMHasBeenSet() const { return m_sDMHasBeenSet; }
106 template <typename SDMT = Aws::Map<Aws::String, double>>
107 void SetSDM(SDMT&& value) {
108 m_sDMHasBeenSet = true;
109 m_sDM = std::forward<SDMT>(value);
110 }
111 template <typename SDMT = Aws::Map<Aws::String, double>>
112 AttributeValue& WithSDM(SDMT&& value) {
113 SetSDM(std::forward<SDMT>(value));
114 return *this;
115 }
116 inline AttributeValue& AddSDM(Aws::String key, double value) {
117 m_sDMHasBeenSet = true;
118 m_sDM.emplace(key, value);
119 return *this;
120 }
122 private:
123 Aws::String m_s;
124
125 double m_n{0.0};
126
128
130 bool m_sHasBeenSet = false;
131 bool m_nHasBeenSet = false;
132 bool m_sLHasBeenSet = false;
133 bool m_sDMHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace GameLift
138} // namespace Aws
AttributeValue & WithS(ST &&value)
const Aws::Vector< Aws::String > & GetSL() const
AWS_GAMELIFT_API AttributeValue(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & WithN(double value)
const Aws::Map< Aws::String, double > & GetSDM() const
AttributeValue & AddSL(SLT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeValue & AddSDM(Aws::String key, double value)
AttributeValue & WithSL(SLT &&value)
AWS_GAMELIFT_API AttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & WithSDM(SDMT &&value)
const Aws::String & GetS() const
AWS_GAMELIFT_API AttributeValue()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue