AWS SDK for C++

AWS SDK for C++ Version 1.11.894

Loading...
Searching...
No Matches
ResiliencyGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/directconnect/DirectConnect_EXPORTS.h>
10#include <aws/directconnect/model/ResiliencyGroupState.h>
11#include <aws/directconnect/model/ResiliencyGroupType.h>
12#include <aws/directconnect/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 DirectConnect {
24namespace Model {
25
32 public:
33 AWS_DIRECTCONNECT_API ResiliencyGroup() = default;
34 AWS_DIRECTCONNECT_API ResiliencyGroup(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTCONNECT_API ResiliencyGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetResiliencyGroupId() const { return m_resiliencyGroupId; }
43 inline bool ResiliencyGroupIdHasBeenSet() const { return m_resiliencyGroupIdHasBeenSet; }
44 template <typename ResiliencyGroupIdT = Aws::String>
45 void SetResiliencyGroupId(ResiliencyGroupIdT&& value) {
46 m_resiliencyGroupIdHasBeenSet = true;
47 m_resiliencyGroupId = std::forward<ResiliencyGroupIdT>(value);
48 }
49 template <typename ResiliencyGroupIdT = Aws::String>
50 ResiliencyGroup& WithResiliencyGroupId(ResiliencyGroupIdT&& value) {
51 SetResiliencyGroupId(std::forward<ResiliencyGroupIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetResiliencyGroupArn() const { return m_resiliencyGroupArn; }
61 inline bool ResiliencyGroupArnHasBeenSet() const { return m_resiliencyGroupArnHasBeenSet; }
62 template <typename ResiliencyGroupArnT = Aws::String>
63 void SetResiliencyGroupArn(ResiliencyGroupArnT&& value) {
64 m_resiliencyGroupArnHasBeenSet = true;
65 m_resiliencyGroupArn = std::forward<ResiliencyGroupArnT>(value);
66 }
67 template <typename ResiliencyGroupArnT = Aws::String>
68 ResiliencyGroup& WithResiliencyGroupArn(ResiliencyGroupArnT&& value) {
69 SetResiliencyGroupArn(std::forward<ResiliencyGroupArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetResiliencyGroupName() const { return m_resiliencyGroupName; }
79 inline bool ResiliencyGroupNameHasBeenSet() const { return m_resiliencyGroupNameHasBeenSet; }
80 template <typename ResiliencyGroupNameT = Aws::String>
81 void SetResiliencyGroupName(ResiliencyGroupNameT&& value) {
82 m_resiliencyGroupNameHasBeenSet = true;
83 m_resiliencyGroupName = std::forward<ResiliencyGroupNameT>(value);
84 }
85 template <typename ResiliencyGroupNameT = Aws::String>
86 ResiliencyGroup& WithResiliencyGroupName(ResiliencyGroupNameT&& value) {
87 SetResiliencyGroupName(std::forward<ResiliencyGroupNameT>(value));
88 return *this;
89 }
91
93
97 inline ResiliencyGroupType GetResiliencyGroupType() const { return m_resiliencyGroupType; }
98 inline bool ResiliencyGroupTypeHasBeenSet() const { return m_resiliencyGroupTypeHasBeenSet; }
100 m_resiliencyGroupTypeHasBeenSet = true;
101 m_resiliencyGroupType = value;
102 }
105 return *this;
106 }
108
110
113 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
114 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
115 template <typename OwnerAccountT = Aws::String>
116 void SetOwnerAccount(OwnerAccountT&& value) {
117 m_ownerAccountHasBeenSet = true;
118 m_ownerAccount = std::forward<OwnerAccountT>(value);
119 }
120 template <typename OwnerAccountT = Aws::String>
121 ResiliencyGroup& WithOwnerAccount(OwnerAccountT&& value) {
122 SetOwnerAccount(std::forward<OwnerAccountT>(value));
123 return *this;
124 }
126
128
132 inline ResiliencyGroupState GetState() const { return m_state; }
133 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
134 inline void SetState(ResiliencyGroupState value) {
135 m_stateHasBeenSet = true;
136 m_state = value;
137 }
139 SetState(value);
140 return *this;
141 }
143
145
148 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Vector<Tag>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Vector<Tag>>
156 ResiliencyGroup& WithTags(TagsT&& value) {
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsT = Tag>
161 ResiliencyGroup& AddTags(TagsT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace_back(std::forward<TagsT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_resiliencyGroupId;
169
170 Aws::String m_resiliencyGroupArn;
171
172 Aws::String m_resiliencyGroupName;
173
175
176 Aws::String m_ownerAccount;
177
179
180 Aws::Vector<Tag> m_tags;
181 bool m_resiliencyGroupIdHasBeenSet = false;
182 bool m_resiliencyGroupArnHasBeenSet = false;
183 bool m_resiliencyGroupNameHasBeenSet = false;
184 bool m_resiliencyGroupTypeHasBeenSet = false;
185 bool m_ownerAccountHasBeenSet = false;
186 bool m_stateHasBeenSet = false;
187 bool m_tagsHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace DirectConnect
192} // namespace Aws
ResiliencyGroup & WithResiliencyGroupArn(ResiliencyGroupArnT &&value)
void SetResiliencyGroupName(ResiliencyGroupNameT &&value)
void SetResiliencyGroupArn(ResiliencyGroupArnT &&value)
const Aws::String & GetResiliencyGroupArn() const
AWS_DIRECTCONNECT_API ResiliencyGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
ResiliencyGroup & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
ResiliencyGroup & WithOwnerAccount(OwnerAccountT &&value)
ResiliencyGroupType GetResiliencyGroupType() const
const Aws::String & GetResiliencyGroupName() const
ResiliencyGroup & WithResiliencyGroupId(ResiliencyGroupIdT &&value)
AWS_DIRECTCONNECT_API ResiliencyGroup(Aws::Utils::Json::JsonView jsonValue)
void SetState(ResiliencyGroupState value)
void SetResiliencyGroupId(ResiliencyGroupIdT &&value)
ResiliencyGroup & WithResiliencyGroupType(ResiliencyGroupType value)
ResiliencyGroup & WithResiliencyGroupName(ResiliencyGroupNameT &&value)
AWS_DIRECTCONNECT_API ResiliencyGroup()=default
ResiliencyGroup & WithState(ResiliencyGroupState value)
void SetOwnerAccount(OwnerAccountT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ResiliencyGroup & AddTags(TagsT &&value)
const Aws::String & GetResiliencyGroupId() const
const Aws::String & GetOwnerAccount() const
void SetResiliencyGroupType(ResiliencyGroupType 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