AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttributeValue.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLift
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_GAMELIFT_API AttributeValue();
40 AWS_GAMELIFT_API AttributeValue(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetS() const{ return m_s; }
50 inline bool SHasBeenSet() const { return m_sHasBeenSet; }
51 inline void SetS(const Aws::String& value) { m_sHasBeenSet = true; m_s = value; }
52 inline void SetS(Aws::String&& value) { m_sHasBeenSet = true; m_s = std::move(value); }
53 inline void SetS(const char* value) { m_sHasBeenSet = true; m_s.assign(value); }
54 inline AttributeValue& WithS(const Aws::String& value) { SetS(value); return *this;}
55 inline AttributeValue& WithS(Aws::String&& value) { SetS(std::move(value)); return *this;}
56 inline AttributeValue& WithS(const char* value) { SetS(value); return *this;}
58
60
63 inline double GetN() const{ return m_n; }
64 inline bool NHasBeenSet() const { return m_nHasBeenSet; }
65 inline void SetN(double value) { m_nHasBeenSet = true; m_n = value; }
66 inline AttributeValue& WithN(double value) { SetN(value); return *this;}
68
70
75 inline const Aws::Vector<Aws::String>& GetSL() const{ return m_sL; }
76 inline bool SLHasBeenSet() const { return m_sLHasBeenSet; }
77 inline void SetSL(const Aws::Vector<Aws::String>& value) { m_sLHasBeenSet = true; m_sL = value; }
78 inline void SetSL(Aws::Vector<Aws::String>&& value) { m_sLHasBeenSet = true; m_sL = std::move(value); }
79 inline AttributeValue& WithSL(const Aws::Vector<Aws::String>& value) { SetSL(value); return *this;}
80 inline AttributeValue& WithSL(Aws::Vector<Aws::String>&& value) { SetSL(std::move(value)); return *this;}
81 inline AttributeValue& AddSL(const Aws::String& value) { m_sLHasBeenSet = true; m_sL.push_back(value); return *this; }
82 inline AttributeValue& AddSL(Aws::String&& value) { m_sLHasBeenSet = true; m_sL.push_back(std::move(value)); return *this; }
83 inline AttributeValue& AddSL(const char* value) { m_sLHasBeenSet = true; m_sL.push_back(value); return *this; }
85
87
91 inline const Aws::Map<Aws::String, double>& GetSDM() const{ return m_sDM; }
92 inline bool SDMHasBeenSet() const { return m_sDMHasBeenSet; }
93 inline void SetSDM(const Aws::Map<Aws::String, double>& value) { m_sDMHasBeenSet = true; m_sDM = value; }
94 inline void SetSDM(Aws::Map<Aws::String, double>&& value) { m_sDMHasBeenSet = true; m_sDM = std::move(value); }
95 inline AttributeValue& WithSDM(const Aws::Map<Aws::String, double>& value) { SetSDM(value); return *this;}
96 inline AttributeValue& WithSDM(Aws::Map<Aws::String, double>&& value) { SetSDM(std::move(value)); return *this;}
97 inline AttributeValue& AddSDM(const Aws::String& key, double value) { m_sDMHasBeenSet = true; m_sDM.emplace(key, value); return *this; }
98 inline AttributeValue& AddSDM(Aws::String&& key, double value) { m_sDMHasBeenSet = true; m_sDM.emplace(std::move(key), value); return *this; }
99 inline AttributeValue& AddSDM(const char* key, double value) { m_sDMHasBeenSet = true; m_sDM.emplace(key, value); return *this; }
101 private:
102
103 Aws::String m_s;
104 bool m_sHasBeenSet = false;
105
106 double m_n;
107 bool m_nHasBeenSet = false;
108
110 bool m_sLHasBeenSet = false;
111
113 bool m_sDMHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace GameLift
118} // namespace Aws
AttributeValue & AddSL(const char *value)
AttributeValue & WithS(Aws::String &&value)
void SetSDM(const Aws::Map< Aws::String, double > &value)
const Aws::Vector< Aws::String > & GetSL() const
void SetS(const Aws::String &value)
AttributeValue & AddSDM(const char *key, double value)
void SetSL(const Aws::Vector< Aws::String > &value)
AttributeValue & AddSDM(const Aws::String &key, double value)
AWS_GAMELIFT_API AttributeValue(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & WithN(double value)
const Aws::Map< Aws::String, double > & GetSDM() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeValue & WithSDM(const Aws::Map< Aws::String, double > &value)
void SetSL(Aws::Vector< Aws::String > &&value)
AttributeValue & WithSL(const Aws::Vector< Aws::String > &value)
void SetS(Aws::String &&value)
AttributeValue & AddSL(Aws::String &&value)
AttributeValue & AddSL(const Aws::String &value)
void SetSDM(Aws::Map< Aws::String, double > &&value)
AWS_GAMELIFT_API AttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & AddSDM(Aws::String &&key, double value)
AttributeValue & WithS(const char *value)
const Aws::String & GetS() const
AttributeValue & WithSL(Aws::Vector< Aws::String > &&value)
AttributeValue & WithS(const Aws::String &value)
AttributeValue & WithSDM(Aws::Map< Aws::String, double > &&value)
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