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/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LookoutMetrics
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LOOKOUTMETRICS_API AttributeValue();
36 AWS_LOOKOUTMETRICS_API AttributeValue(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOOKOUTMETRICS_API AttributeValue& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetS() const{ return m_s; }
46 inline bool SHasBeenSet() const { return m_sHasBeenSet; }
47 inline void SetS(const Aws::String& value) { m_sHasBeenSet = true; m_s = value; }
48 inline void SetS(Aws::String&& value) { m_sHasBeenSet = true; m_s = std::move(value); }
49 inline void SetS(const char* value) { m_sHasBeenSet = true; m_s.assign(value); }
50 inline AttributeValue& WithS(const Aws::String& value) { SetS(value); return *this;}
51 inline AttributeValue& WithS(Aws::String&& value) { SetS(std::move(value)); return *this;}
52 inline AttributeValue& WithS(const char* value) { SetS(value); return *this;}
54
56
59 inline const Aws::String& GetN() const{ return m_n; }
60 inline bool NHasBeenSet() const { return m_nHasBeenSet; }
61 inline void SetN(const Aws::String& value) { m_nHasBeenSet = true; m_n = value; }
62 inline void SetN(Aws::String&& value) { m_nHasBeenSet = true; m_n = std::move(value); }
63 inline void SetN(const char* value) { m_nHasBeenSet = true; m_n.assign(value); }
64 inline AttributeValue& WithN(const Aws::String& value) { SetN(value); return *this;}
65 inline AttributeValue& WithN(Aws::String&& value) { SetN(std::move(value)); return *this;}
66 inline AttributeValue& WithN(const char* value) { SetN(value); return *this;}
68
70
73 inline const Aws::String& GetB() const{ return m_b; }
74 inline bool BHasBeenSet() const { return m_bHasBeenSet; }
75 inline void SetB(const Aws::String& value) { m_bHasBeenSet = true; m_b = value; }
76 inline void SetB(Aws::String&& value) { m_bHasBeenSet = true; m_b = std::move(value); }
77 inline void SetB(const char* value) { m_bHasBeenSet = true; m_b.assign(value); }
78 inline AttributeValue& WithB(const Aws::String& value) { SetB(value); return *this;}
79 inline AttributeValue& WithB(Aws::String&& value) { SetB(std::move(value)); return *this;}
80 inline AttributeValue& WithB(const char* value) { SetB(value); return *this;}
82
84
87 inline const Aws::Vector<Aws::String>& GetSS() const{ return m_sS; }
88 inline bool SSHasBeenSet() const { return m_sSHasBeenSet; }
89 inline void SetSS(const Aws::Vector<Aws::String>& value) { m_sSHasBeenSet = true; m_sS = value; }
90 inline void SetSS(Aws::Vector<Aws::String>&& value) { m_sSHasBeenSet = true; m_sS = std::move(value); }
91 inline AttributeValue& WithSS(const Aws::Vector<Aws::String>& value) { SetSS(value); return *this;}
92 inline AttributeValue& WithSS(Aws::Vector<Aws::String>&& value) { SetSS(std::move(value)); return *this;}
93 inline AttributeValue& AddSS(const Aws::String& value) { m_sSHasBeenSet = true; m_sS.push_back(value); return *this; }
94 inline AttributeValue& AddSS(Aws::String&& value) { m_sSHasBeenSet = true; m_sS.push_back(std::move(value)); return *this; }
95 inline AttributeValue& AddSS(const char* value) { m_sSHasBeenSet = true; m_sS.push_back(value); return *this; }
97
99
102 inline const Aws::Vector<Aws::String>& GetNS() const{ return m_nS; }
103 inline bool NSHasBeenSet() const { return m_nSHasBeenSet; }
104 inline void SetNS(const Aws::Vector<Aws::String>& value) { m_nSHasBeenSet = true; m_nS = value; }
105 inline void SetNS(Aws::Vector<Aws::String>&& value) { m_nSHasBeenSet = true; m_nS = std::move(value); }
106 inline AttributeValue& WithNS(const Aws::Vector<Aws::String>& value) { SetNS(value); return *this;}
107 inline AttributeValue& WithNS(Aws::Vector<Aws::String>&& value) { SetNS(std::move(value)); return *this;}
108 inline AttributeValue& AddNS(const Aws::String& value) { m_nSHasBeenSet = true; m_nS.push_back(value); return *this; }
109 inline AttributeValue& AddNS(Aws::String&& value) { m_nSHasBeenSet = true; m_nS.push_back(std::move(value)); return *this; }
110 inline AttributeValue& AddNS(const char* value) { m_nSHasBeenSet = true; m_nS.push_back(value); return *this; }
112
114
117 inline const Aws::Vector<Aws::String>& GetBS() const{ return m_bS; }
118 inline bool BSHasBeenSet() const { return m_bSHasBeenSet; }
119 inline void SetBS(const Aws::Vector<Aws::String>& value) { m_bSHasBeenSet = true; m_bS = value; }
120 inline void SetBS(Aws::Vector<Aws::String>&& value) { m_bSHasBeenSet = true; m_bS = std::move(value); }
121 inline AttributeValue& WithBS(const Aws::Vector<Aws::String>& value) { SetBS(value); return *this;}
122 inline AttributeValue& WithBS(Aws::Vector<Aws::String>&& value) { SetBS(std::move(value)); return *this;}
123 inline AttributeValue& AddBS(const Aws::String& value) { m_bSHasBeenSet = true; m_bS.push_back(value); return *this; }
124 inline AttributeValue& AddBS(Aws::String&& value) { m_bSHasBeenSet = true; m_bS.push_back(std::move(value)); return *this; }
125 inline AttributeValue& AddBS(const char* value) { m_bSHasBeenSet = true; m_bS.push_back(value); return *this; }
127 private:
128
129 Aws::String m_s;
130 bool m_sHasBeenSet = false;
131
132 Aws::String m_n;
133 bool m_nHasBeenSet = false;
134
135 Aws::String m_b;
136 bool m_bHasBeenSet = false;
137
139 bool m_sSHasBeenSet = false;
140
142 bool m_nSHasBeenSet = false;
143
145 bool m_bSHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace LookoutMetrics
150} // namespace Aws
const Aws::Vector< Aws::String > & GetBS() const
AttributeValue & WithNS(const Aws::Vector< Aws::String > &value)
void SetNS(const Aws::Vector< Aws::String > &value)
void SetSS(const Aws::Vector< Aws::String > &value)
AttributeValue & AddNS(Aws::String &&value)
AttributeValue & AddSS(const char *value)
AWS_LOOKOUTMETRICS_API AttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & AddBS(const char *value)
AttributeValue & WithB(const char *value)
void SetBS(Aws::Vector< Aws::String > &&value)
AttributeValue & WithS(const Aws::String &value)
AttributeValue & WithSS(const Aws::Vector< Aws::String > &value)
AttributeValue & WithS(const char *value)
const Aws::Vector< Aws::String > & GetNS() const
AttributeValue & WithBS(const Aws::Vector< Aws::String > &value)
void SetB(const Aws::String &value)
void SetN(const Aws::String &value)
void SetNS(Aws::Vector< Aws::String > &&value)
void SetBS(const Aws::Vector< Aws::String > &value)
AttributeValue & WithN(const Aws::String &value)
AttributeValue & WithS(Aws::String &&value)
AttributeValue & WithN(Aws::String &&value)
AttributeValue & WithB(const Aws::String &value)
AWS_LOOKOUTMETRICS_API AttributeValue()
AttributeValue & AddNS(const Aws::String &value)
void SetS(const Aws::String &value)
AttributeValue & WithB(Aws::String &&value)
AttributeValue & WithNS(Aws::Vector< Aws::String > &&value)
AttributeValue & AddNS(const char *value)
AttributeValue & AddBS(const Aws::String &value)
void SetSS(Aws::Vector< Aws::String > &&value)
AttributeValue & WithN(const char *value)
AttributeValue & AddBS(Aws::String &&value)
AWS_LOOKOUTMETRICS_API AttributeValue(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & WithSS(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSS() const
AttributeValue & AddSS(Aws::String &&value)
AttributeValue & AddSS(const Aws::String &value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeValue & WithBS(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue