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/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/model/EntityIdentifier.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace VerifiedPermissions
25{
26namespace Model
27{
28
45 {
46 public:
47 AWS_VERIFIEDPERMISSIONS_API AttributeValue() = default;
48 AWS_VERIFIEDPERMISSIONS_API AttributeValue(Aws::Utils::Json::JsonView jsonValue);
49 AWS_VERIFIEDPERMISSIONS_API AttributeValue& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
59 inline bool GetBoolean() const { return m_boolean; }
60 inline bool BooleanHasBeenSet() const { return m_booleanHasBeenSet; }
61 inline void SetBoolean(bool value) { m_booleanHasBeenSet = true; m_boolean = value; }
62 inline AttributeValue& WithBoolean(bool value) { SetBoolean(value); return *this;}
64
66
72 inline const EntityIdentifier& GetEntityIdentifier() const { return m_entityIdentifier; }
73 inline bool EntityIdentifierHasBeenSet() const { return m_entityIdentifierHasBeenSet; }
74 template<typename EntityIdentifierT = EntityIdentifier>
75 void SetEntityIdentifier(EntityIdentifierT&& value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier = std::forward<EntityIdentifierT>(value); }
76 template<typename EntityIdentifierT = EntityIdentifier>
77 AttributeValue& WithEntityIdentifier(EntityIdentifierT&& value) { SetEntityIdentifier(std::forward<EntityIdentifierT>(value)); return *this;}
79
81
86 inline long long GetLong() const { return m_long; }
87 inline bool LongHasBeenSet() const { return m_longHasBeenSet; }
88 inline void SetLong(long long value) { m_longHasBeenSet = true; m_long = value; }
89 inline AttributeValue& WithLong(long long value) { SetLong(value); return *this;}
91
93
98 inline const Aws::String& GetString() const { return m_string; }
99 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
100 template<typename StringT = Aws::String>
101 void SetString(StringT&& value) { m_stringHasBeenSet = true; m_string = std::forward<StringT>(value); }
102 template<typename StringT = Aws::String>
103 AttributeValue& WithString(StringT&& value) { SetString(std::forward<StringT>(value)); return *this;}
105
107
112 inline const Aws::Vector<AttributeValue>& GetSet() const { return m_set; }
113 inline bool SetHasBeenSet() const { return m_setHasBeenSet; }
114 template<typename SetT = Aws::Vector<AttributeValue>>
115 void SetSet(SetT&& value) { m_setHasBeenSet = true; m_set = std::forward<SetT>(value); }
116 template<typename SetT = Aws::Vector<AttributeValue>>
117 AttributeValue& WithSet(SetT&& value) { SetSet(std::forward<SetT>(value)); return *this;}
118 template<typename SetT = AttributeValue>
119 AttributeValue& AddSet(SetT&& value) { m_setHasBeenSet = true; m_set.emplace_back(std::forward<SetT>(value)); return *this; }
121
123
128 inline const Aws::Map<Aws::String, AttributeValue>& GetRecord() const { return m_record; }
129 inline bool RecordHasBeenSet() const { return m_recordHasBeenSet; }
130 template<typename RecordT = Aws::Map<Aws::String, AttributeValue>>
131 void SetRecord(RecordT&& value) { m_recordHasBeenSet = true; m_record = std::forward<RecordT>(value); }
132 template<typename RecordT = Aws::Map<Aws::String, AttributeValue>>
133 AttributeValue& WithRecord(RecordT&& value) { SetRecord(std::forward<RecordT>(value)); return *this;}
134 template<typename RecordKeyT = Aws::String, typename RecordValueT = AttributeValue>
135 AttributeValue& AddRecord(RecordKeyT&& key, RecordValueT&& value) {
136 m_recordHasBeenSet = true; m_record.emplace(std::forward<RecordKeyT>(key), std::forward<RecordValueT>(value)); return *this;
137 }
139
141
146 inline const Aws::String& GetIpaddr() const { return m_ipaddr; }
147 inline bool IpaddrHasBeenSet() const { return m_ipaddrHasBeenSet; }
148 template<typename IpaddrT = Aws::String>
149 void SetIpaddr(IpaddrT&& value) { m_ipaddrHasBeenSet = true; m_ipaddr = std::forward<IpaddrT>(value); }
150 template<typename IpaddrT = Aws::String>
151 AttributeValue& WithIpaddr(IpaddrT&& value) { SetIpaddr(std::forward<IpaddrT>(value)); return *this;}
153
155
160 inline const Aws::String& GetDecimal() const { return m_decimal; }
161 inline bool DecimalHasBeenSet() const { return m_decimalHasBeenSet; }
162 template<typename DecimalT = Aws::String>
163 void SetDecimal(DecimalT&& value) { m_decimalHasBeenSet = true; m_decimal = std::forward<DecimalT>(value); }
164 template<typename DecimalT = Aws::String>
165 AttributeValue& WithDecimal(DecimalT&& value) { SetDecimal(std::forward<DecimalT>(value)); return *this;}
167 private:
168
169 bool m_boolean{false};
170 bool m_booleanHasBeenSet = false;
171
172 EntityIdentifier m_entityIdentifier;
173 bool m_entityIdentifierHasBeenSet = false;
174
175 long long m_long{0};
176 bool m_longHasBeenSet = false;
177
178 Aws::String m_string;
179 bool m_stringHasBeenSet = false;
180
182 bool m_setHasBeenSet = false;
183
185 bool m_recordHasBeenSet = false;
186
187 Aws::String m_ipaddr;
188 bool m_ipaddrHasBeenSet = false;
189
190 Aws::String m_decimal;
191 bool m_decimalHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace VerifiedPermissions
196} // namespace Aws
void SetEntityIdentifier(EntityIdentifierT &&value)
AttributeValue & WithIpaddr(IpaddrT &&value)
const EntityIdentifier & GetEntityIdentifier() const
const Aws::Map< Aws::String, AttributeValue > & GetRecord() const
AttributeValue & AddRecord(RecordKeyT &&key, RecordValueT &&value)
AttributeValue & WithLong(long long value)
AWS_VERIFIEDPERMISSIONS_API AttributeValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AttributeValue > & GetSet() const
AWS_VERIFIEDPERMISSIONS_API AttributeValue()=default
AWS_VERIFIEDPERMISSIONS_API AttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & WithString(StringT &&value)
AttributeValue & WithDecimal(DecimalT &&value)
AttributeValue & WithRecord(RecordT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeValue & WithEntityIdentifier(EntityIdentifierT &&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