AWS SDK for C++  1.9.110
AWS SDK for C++
AttributeValue.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GameLift
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetS() const{ return m_s; }
49 
53  inline bool SHasBeenSet() const { return m_sHasBeenSet; }
54 
58  inline void SetS(const Aws::String& value) { m_sHasBeenSet = true; m_s = value; }
59 
63  inline void SetS(Aws::String&& value) { m_sHasBeenSet = true; m_s = std::move(value); }
64 
68  inline void SetS(const char* value) { m_sHasBeenSet = true; m_s.assign(value); }
69 
73  inline AttributeValue& WithS(const Aws::String& value) { SetS(value); return *this;}
74 
78  inline AttributeValue& WithS(Aws::String&& value) { SetS(std::move(value)); return *this;}
79 
83  inline AttributeValue& WithS(const char* value) { SetS(value); return *this;}
84 
85 
89  inline double GetN() const{ return m_n; }
90 
94  inline bool NHasBeenSet() const { return m_nHasBeenSet; }
95 
99  inline void SetN(double value) { m_nHasBeenSet = true; m_n = value; }
100 
104  inline AttributeValue& WithN(double value) { SetN(value); return *this;}
105 
106 
112  inline const Aws::Vector<Aws::String>& GetSL() const{ return m_sL; }
113 
119  inline bool SLHasBeenSet() const { return m_sLHasBeenSet; }
120 
126  inline void SetSL(const Aws::Vector<Aws::String>& value) { m_sLHasBeenSet = true; m_sL = value; }
127 
133  inline void SetSL(Aws::Vector<Aws::String>&& value) { m_sLHasBeenSet = true; m_sL = std::move(value); }
134 
140  inline AttributeValue& WithSL(const Aws::Vector<Aws::String>& value) { SetSL(value); return *this;}
141 
147  inline AttributeValue& WithSL(Aws::Vector<Aws::String>&& value) { SetSL(std::move(value)); return *this;}
148 
154  inline AttributeValue& AddSL(const Aws::String& value) { m_sLHasBeenSet = true; m_sL.push_back(value); return *this; }
155 
161  inline AttributeValue& AddSL(Aws::String&& value) { m_sLHasBeenSet = true; m_sL.push_back(std::move(value)); return *this; }
162 
168  inline AttributeValue& AddSL(const char* value) { m_sLHasBeenSet = true; m_sL.push_back(value); return *this; }
169 
170 
175  inline const Aws::Map<Aws::String, double>& GetSDM() const{ return m_sDM; }
176 
181  inline bool SDMHasBeenSet() const { return m_sDMHasBeenSet; }
182 
187  inline void SetSDM(const Aws::Map<Aws::String, double>& value) { m_sDMHasBeenSet = true; m_sDM = value; }
188 
193  inline void SetSDM(Aws::Map<Aws::String, double>&& value) { m_sDMHasBeenSet = true; m_sDM = std::move(value); }
194 
199  inline AttributeValue& WithSDM(const Aws::Map<Aws::String, double>& value) { SetSDM(value); return *this;}
200 
205  inline AttributeValue& WithSDM(Aws::Map<Aws::String, double>&& value) { SetSDM(std::move(value)); return *this;}
206 
211  inline AttributeValue& AddSDM(const Aws::String& key, double value) { m_sDMHasBeenSet = true; m_sDM.emplace(key, value); return *this; }
212 
217  inline AttributeValue& AddSDM(Aws::String&& key, double value) { m_sDMHasBeenSet = true; m_sDM.emplace(std::move(key), value); return *this; }
218 
223  inline AttributeValue& AddSDM(const char* key, double value) { m_sDMHasBeenSet = true; m_sDM.emplace(key, value); return *this; }
224 
225  private:
226 
227  Aws::String m_s;
228  bool m_sHasBeenSet;
229 
230  double m_n;
231  bool m_nHasBeenSet;
232 
234  bool m_sLHasBeenSet;
235 
237  bool m_sDMHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace GameLift
242 } // namespace Aws
Aws::GameLift::Model::AttributeValue::SetS
void SetS(Aws::String &&value)
Definition: AttributeValue.h:63
Aws::GameLift::Model::AttributeValue::operator=
AttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::AttributeValue::SHasBeenSet
bool SHasBeenSet() const
Definition: AttributeValue.h:53
Aws::GameLift::Model::AttributeValue::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::AttributeValue::GetS
const Aws::String & GetS() const
Definition: AttributeValue.h:48
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::AttributeValue::SLHasBeenSet
bool SLHasBeenSet() const
Definition: AttributeValue.h:119
Aws::GameLift::Model::AttributeValue::WithN
AttributeValue & WithN(double value)
Definition: AttributeValue.h:104
Aws::GameLift::Model::AttributeValue::WithSDM
AttributeValue & WithSDM(Aws::Map< Aws::String, double > &&value)
Definition: AttributeValue.h:205
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::AttributeValue::WithSL
AttributeValue & WithSL(Aws::Vector< Aws::String > &&value)
Definition: AttributeValue.h:147
Aws::GameLift::Model::AttributeValue::AddSDM
AttributeValue & AddSDM(const char *key, double value)
Definition: AttributeValue.h:223
Aws::GameLift::Model::AttributeValue::GetSL
const Aws::Vector< Aws::String > & GetSL() const
Definition: AttributeValue.h:112
AWSVector.h
Aws::GameLift::Model::AttributeValue::SetS
void SetS(const char *value)
Definition: AttributeValue.h:68
Aws::GameLift::Model::AttributeValue::WithSDM
AttributeValue & WithSDM(const Aws::Map< Aws::String, double > &value)
Definition: AttributeValue.h:199
Aws::GameLift::Model::AttributeValue::AddSL
AttributeValue & AddSL(const Aws::String &value)
Definition: AttributeValue.h:154
GameLift_EXPORTS.h
Aws::GameLift::Model::AttributeValue::SDMHasBeenSet
bool SDMHasBeenSet() const
Definition: AttributeValue.h:181
Aws::GameLift::Model::AttributeValue::WithS
AttributeValue & WithS(const char *value)
Definition: AttributeValue.h:83
Aws::GameLift::Model::AttributeValue
Definition: AttributeValue.h:37
Aws::GameLift::Model::AttributeValue::WithS
AttributeValue & WithS(Aws::String &&value)
Definition: AttributeValue.h:78
Aws::GameLift::Model::AttributeValue::SetSL
void SetSL(const Aws::Vector< Aws::String > &value)
Definition: AttributeValue.h:126
Aws::GameLift::Model::AttributeValue::WithSL
AttributeValue & WithSL(const Aws::Vector< Aws::String > &value)
Definition: AttributeValue.h:140
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GameLift::Model::AttributeValue::AddSDM
AttributeValue & AddSDM(const Aws::String &key, double value)
Definition: AttributeValue.h:211
AWSString.h
Aws::GameLift::Model::AttributeValue::NHasBeenSet
bool NHasBeenSet() const
Definition: AttributeValue.h:94
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::AttributeValue::SetSL
void SetSL(Aws::Vector< Aws::String > &&value)
Definition: AttributeValue.h:133
Aws::GameLift::Model::AttributeValue::AttributeValue
AttributeValue()
Aws::GameLift::Model::AttributeValue::WithS
AttributeValue & WithS(const Aws::String &value)
Definition: AttributeValue.h:73
Aws::GameLift::Model::AttributeValue::SetN
void SetN(double value)
Definition: AttributeValue.h:99
Aws::GameLift::Model::AttributeValue::SetSDM
void SetSDM(const Aws::Map< Aws::String, double > &value)
Definition: AttributeValue.h:187
Aws::GameLift::Model::AttributeValue::GetSDM
const Aws::Map< Aws::String, double > & GetSDM() const
Definition: AttributeValue.h:175
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::AttributeValue::AddSL
AttributeValue & AddSL(const char *value)
Definition: AttributeValue.h:168
Aws::GameLift::Model::AttributeValue::AddSDM
AttributeValue & AddSDM(Aws::String &&key, double value)
Definition: AttributeValue.h:217
Aws::GameLift::Model::AttributeValue::GetN
double GetN() const
Definition: AttributeValue.h:89
Aws::GameLift::Model::AttributeValue::AddSL
AttributeValue & AddSL(Aws::String &&value)
Definition: AttributeValue.h:161
AWSMap.h
Aws::GameLift::Model::AttributeValue::AttributeValue
AttributeValue(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::AttributeValue::SetSDM
void SetSDM(Aws::Map< Aws::String, double > &&value)
Definition: AttributeValue.h:193
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GameLift::Model::AttributeValue::SetS
void SetS(const Aws::String &value)
Definition: AttributeValue.h:58