AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ST = Aws::String>
52 void SetS(ST&& value) { m_sHasBeenSet = true; m_s = std::forward<ST>(value); }
53 template<typename ST = Aws::String>
54 AttributeValue& WithS(ST&& value) { SetS(std::forward<ST>(value)); return *this;}
56
58
61 inline double GetN() const { return m_n; }
62 inline bool NHasBeenSet() const { return m_nHasBeenSet; }
63 inline void SetN(double value) { m_nHasBeenSet = true; m_n = value; }
64 inline AttributeValue& WithN(double value) { SetN(value); return *this;}
66
68
73 inline const Aws::Vector<Aws::String>& GetSL() const { return m_sL; }
74 inline bool SLHasBeenSet() const { return m_sLHasBeenSet; }
75 template<typename SLT = Aws::Vector<Aws::String>>
76 void SetSL(SLT&& value) { m_sLHasBeenSet = true; m_sL = std::forward<SLT>(value); }
77 template<typename SLT = Aws::Vector<Aws::String>>
78 AttributeValue& WithSL(SLT&& value) { SetSL(std::forward<SLT>(value)); return *this;}
79 template<typename SLT = Aws::String>
80 AttributeValue& AddSL(SLT&& value) { m_sLHasBeenSet = true; m_sL.emplace_back(std::forward<SLT>(value)); return *this; }
82
84
88 inline const Aws::Map<Aws::String, double>& GetSDM() const { return m_sDM; }
89 inline bool SDMHasBeenSet() const { return m_sDMHasBeenSet; }
90 template<typename SDMT = Aws::Map<Aws::String, double>>
91 void SetSDM(SDMT&& value) { m_sDMHasBeenSet = true; m_sDM = std::forward<SDMT>(value); }
92 template<typename SDMT = Aws::Map<Aws::String, double>>
93 AttributeValue& WithSDM(SDMT&& value) { SetSDM(std::forward<SDMT>(value)); return *this;}
94 inline AttributeValue& AddSDM(Aws::String key, double value) {
95 m_sDMHasBeenSet = true; m_sDM.emplace(key, value); return *this;
96 }
98 private:
99
100 Aws::String m_s;
101 bool m_sHasBeenSet = false;
102
103 double m_n{0.0};
104 bool m_nHasBeenSet = false;
105
107 bool m_sLHasBeenSet = false;
108
110 bool m_sDMHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace GameLift
115} // 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