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/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();
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 inline void SetEntityIdentifier(const EntityIdentifier& value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier = value; }
75 inline void SetEntityIdentifier(EntityIdentifier&& value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier = std::move(value); }
76 inline AttributeValue& WithEntityIdentifier(const EntityIdentifier& value) { SetEntityIdentifier(value); return *this;}
77 inline AttributeValue& WithEntityIdentifier(EntityIdentifier&& value) { SetEntityIdentifier(std::move(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 inline void SetString(const Aws::String& value) { m_stringHasBeenSet = true; m_string = value; }
101 inline void SetString(Aws::String&& value) { m_stringHasBeenSet = true; m_string = std::move(value); }
102 inline void SetString(const char* value) { m_stringHasBeenSet = true; m_string.assign(value); }
103 inline AttributeValue& WithString(const Aws::String& value) { SetString(value); return *this;}
104 inline AttributeValue& WithString(Aws::String&& value) { SetString(std::move(value)); return *this;}
105 inline AttributeValue& WithString(const char* value) { SetString(value); return *this;}
107
109
114 inline const Aws::Vector<AttributeValue>& GetSet() const{ return m_set; }
115 inline bool SetHasBeenSet() const { return m_setHasBeenSet; }
116 inline void SetSet(const Aws::Vector<AttributeValue>& value) { m_setHasBeenSet = true; m_set = value; }
117 inline void SetSet(Aws::Vector<AttributeValue>&& value) { m_setHasBeenSet = true; m_set = std::move(value); }
118 inline AttributeValue& WithSet(const Aws::Vector<AttributeValue>& value) { SetSet(value); return *this;}
119 inline AttributeValue& WithSet(Aws::Vector<AttributeValue>&& value) { SetSet(std::move(value)); return *this;}
120 inline AttributeValue& AddSet(const AttributeValue& value) { m_setHasBeenSet = true; m_set.push_back(value); return *this; }
121 inline AttributeValue& AddSet(AttributeValue&& value) { m_setHasBeenSet = true; m_set.push_back(std::move(value)); return *this; }
123
125
130 inline const Aws::Map<Aws::String, AttributeValue>& GetRecord() const{ return m_record; }
131 inline bool RecordHasBeenSet() const { return m_recordHasBeenSet; }
132 inline void SetRecord(const Aws::Map<Aws::String, AttributeValue>& value) { m_recordHasBeenSet = true; m_record = value; }
133 inline void SetRecord(Aws::Map<Aws::String, AttributeValue>&& value) { m_recordHasBeenSet = true; m_record = std::move(value); }
134 inline AttributeValue& WithRecord(const Aws::Map<Aws::String, AttributeValue>& value) { SetRecord(value); return *this;}
135 inline AttributeValue& WithRecord(Aws::Map<Aws::String, AttributeValue>&& value) { SetRecord(std::move(value)); return *this;}
136 inline AttributeValue& AddRecord(const Aws::String& key, const AttributeValue& value) { m_recordHasBeenSet = true; m_record.emplace(key, value); return *this; }
137 inline AttributeValue& AddRecord(Aws::String&& key, const AttributeValue& value) { m_recordHasBeenSet = true; m_record.emplace(std::move(key), value); return *this; }
138 inline AttributeValue& AddRecord(const Aws::String& key, AttributeValue&& value) { m_recordHasBeenSet = true; m_record.emplace(key, std::move(value)); return *this; }
139 inline AttributeValue& AddRecord(Aws::String&& key, AttributeValue&& value) { m_recordHasBeenSet = true; m_record.emplace(std::move(key), std::move(value)); return *this; }
140 inline AttributeValue& AddRecord(const char* key, AttributeValue&& value) { m_recordHasBeenSet = true; m_record.emplace(key, std::move(value)); return *this; }
141 inline AttributeValue& AddRecord(const char* key, const AttributeValue& value) { m_recordHasBeenSet = true; m_record.emplace(key, value); return *this; }
143 private:
144
145 bool m_boolean;
146 bool m_booleanHasBeenSet = false;
147
148 EntityIdentifier m_entityIdentifier;
149 bool m_entityIdentifierHasBeenSet = false;
150
151 long long m_long;
152 bool m_longHasBeenSet = false;
153
154 Aws::String m_string;
155 bool m_stringHasBeenSet = false;
156
158 bool m_setHasBeenSet = false;
159
161 bool m_recordHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace VerifiedPermissions
166} // namespace Aws
AttributeValue & WithEntityIdentifier(const EntityIdentifier &value)
AttributeValue & WithRecord(const Aws::Map< Aws::String, AttributeValue > &value)
AttributeValue & WithRecord(Aws::Map< Aws::String, AttributeValue > &&value)
AttributeValue & AddSet(AttributeValue &&value)
void SetEntityIdentifier(const EntityIdentifier &value)
AttributeValue & AddRecord(Aws::String &&key, AttributeValue &&value)
const EntityIdentifier & GetEntityIdentifier() const
const Aws::Map< Aws::String, AttributeValue > & GetRecord() const
AWS_VERIFIEDPERMISSIONS_API AttributeValue()
AttributeValue & WithSet(const Aws::Vector< AttributeValue > &value)
AttributeValue & WithString(Aws::String &&value)
AttributeValue & AddRecord(const Aws::String &key, AttributeValue &&value)
AttributeValue & AddSet(const AttributeValue &value)
void SetRecord(Aws::Map< Aws::String, AttributeValue > &&value)
AttributeValue & WithLong(long long value)
AWS_VERIFIEDPERMISSIONS_API AttributeValue(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & WithString(const Aws::String &value)
void SetSet(Aws::Vector< AttributeValue > &&value)
AttributeValue & WithSet(Aws::Vector< AttributeValue > &&value)
const Aws::Vector< AttributeValue > & GetSet() const
AttributeValue & WithEntityIdentifier(EntityIdentifier &&value)
AWS_VERIFIEDPERMISSIONS_API AttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & WithString(const char *value)
AttributeValue & AddRecord(const char *key, AttributeValue &&value)
void SetEntityIdentifier(EntityIdentifier &&value)
AttributeValue & AddRecord(Aws::String &&key, const AttributeValue &value)
void SetRecord(const Aws::Map< Aws::String, AttributeValue > &value)
AttributeValue & AddRecord(const Aws::String &key, const AttributeValue &value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeValue & AddRecord(const char *key, const AttributeValue &value)
void SetSet(const Aws::Vector< AttributeValue > &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