AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ContextStore.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/ContextStoreState.h>
12#include <aws/networkmanager/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkManager {
24namespace Model {
25
32 public:
33 AWS_NETWORKMANAGER_API ContextStore() = default;
34 AWS_NETWORKMANAGER_API ContextStore(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMANAGER_API ContextStore& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
43 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
44 template <typename GlobalNetworkIdT = Aws::String>
45 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
46 m_globalNetworkIdHasBeenSet = true;
47 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
48 }
49 template <typename GlobalNetworkIdT = Aws::String>
50 ContextStore& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
51 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetContextStoreId() const { return m_contextStoreId; }
61 inline bool ContextStoreIdHasBeenSet() const { return m_contextStoreIdHasBeenSet; }
62 template <typename ContextStoreIdT = Aws::String>
63 void SetContextStoreId(ContextStoreIdT&& value) {
64 m_contextStoreIdHasBeenSet = true;
65 m_contextStoreId = std::forward<ContextStoreIdT>(value);
66 }
67 template <typename ContextStoreIdT = Aws::String>
68 ContextStore& WithContextStoreId(ContextStoreIdT&& value) {
69 SetContextStoreId(std::forward<ContextStoreIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetContextStoreArn() const { return m_contextStoreArn; }
79 inline bool ContextStoreArnHasBeenSet() const { return m_contextStoreArnHasBeenSet; }
80 template <typename ContextStoreArnT = Aws::String>
81 void SetContextStoreArn(ContextStoreArnT&& value) {
82 m_contextStoreArnHasBeenSet = true;
83 m_contextStoreArn = std::forward<ContextStoreArnT>(value);
84 }
85 template <typename ContextStoreArnT = Aws::String>
86 ContextStore& WithContextStoreArn(ContextStoreArnT&& value) {
87 SetContextStoreArn(std::forward<ContextStoreArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 ContextStore& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
115 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
116 template <typename CreatedAtT = Aws::Utils::DateTime>
117 void SetCreatedAt(CreatedAtT&& value) {
118 m_createdAtHasBeenSet = true;
119 m_createdAt = std::forward<CreatedAtT>(value);
120 }
121 template <typename CreatedAtT = Aws::Utils::DateTime>
122 ContextStore& WithCreatedAt(CreatedAtT&& value) {
123 SetCreatedAt(std::forward<CreatedAtT>(value));
124 return *this;
125 }
127
129
138 inline ContextStoreState GetState() const { return m_state; }
139 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
140 inline void SetState(ContextStoreState value) {
141 m_stateHasBeenSet = true;
142 m_state = value;
143 }
145 SetState(value);
146 return *this;
147 }
149
151
154 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template <typename TagsT = Aws::Vector<Tag>>
157 void SetTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags = std::forward<TagsT>(value);
160 }
161 template <typename TagsT = Aws::Vector<Tag>>
162 ContextStore& WithTags(TagsT&& value) {
163 SetTags(std::forward<TagsT>(value));
164 return *this;
165 }
166 template <typename TagsT = Tag>
167 ContextStore& AddTags(TagsT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags.emplace_back(std::forward<TagsT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_globalNetworkId;
175
176 Aws::String m_contextStoreId;
177
178 Aws::String m_contextStoreArn;
179
180 Aws::String m_description;
181
182 Aws::Utils::DateTime m_createdAt{};
183
185
186 Aws::Vector<Tag> m_tags;
187 bool m_globalNetworkIdHasBeenSet = false;
188 bool m_contextStoreIdHasBeenSet = false;
189 bool m_contextStoreArnHasBeenSet = false;
190 bool m_descriptionHasBeenSet = false;
191 bool m_createdAtHasBeenSet = false;
192 bool m_stateHasBeenSet = false;
193 bool m_tagsHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace NetworkManager
198} // namespace Aws
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetContextStoreArn(ContextStoreArnT &&value)
const Aws::String & GetContextStoreArn() const
AWS_NETWORKMANAGER_API ContextStore & operator=(Aws::Utils::Json::JsonView jsonValue)
ContextStore & AddTags(TagsT &&value)
ContextStore & WithDescription(DescriptionT &&value)
ContextStore & WithTags(TagsT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetGlobalNetworkId() const
ContextStore & WithContextStoreArn(ContextStoreArnT &&value)
ContextStore & WithState(ContextStoreState value)
void SetState(ContextStoreState value)
AWS_NETWORKMANAGER_API ContextStore()=default
AWS_NETWORKMANAGER_API ContextStore(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
ContextStore & WithContextStoreId(ContextStoreIdT &&value)
const Aws::Vector< Tag > & GetTags() const
ContextStore & WithGlobalNetworkId(GlobalNetworkIdT &&value)
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetContextStoreId(ContextStoreIdT &&value)
ContextStore & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetContextStoreId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue