AWS SDK for C++

AWS SDK for C++ Version 1.11.895

Loading...
Searching...
No Matches
ResiliencyGroupSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/directconnect/DirectConnect_EXPORTS.h>
9#include <aws/directconnect/model/ResiliencyGroupState.h>
10#include <aws/directconnect/model/ResiliencyGroupType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DirectConnect {
22namespace Model {
23
30 public:
31 AWS_DIRECTCONNECT_API ResiliencyGroupSummary() = default;
32 AWS_DIRECTCONNECT_API ResiliencyGroupSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetResiliencyGroupId() const { return m_resiliencyGroupId; }
41 inline bool ResiliencyGroupIdHasBeenSet() const { return m_resiliencyGroupIdHasBeenSet; }
42 template <typename ResiliencyGroupIdT = Aws::String>
43 void SetResiliencyGroupId(ResiliencyGroupIdT&& value) {
44 m_resiliencyGroupIdHasBeenSet = true;
45 m_resiliencyGroupId = std::forward<ResiliencyGroupIdT>(value);
46 }
47 template <typename ResiliencyGroupIdT = Aws::String>
48 ResiliencyGroupSummary& WithResiliencyGroupId(ResiliencyGroupIdT&& value) {
49 SetResiliencyGroupId(std::forward<ResiliencyGroupIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetResiliencyGroupArn() const { return m_resiliencyGroupArn; }
59 inline bool ResiliencyGroupArnHasBeenSet() const { return m_resiliencyGroupArnHasBeenSet; }
60 template <typename ResiliencyGroupArnT = Aws::String>
61 void SetResiliencyGroupArn(ResiliencyGroupArnT&& value) {
62 m_resiliencyGroupArnHasBeenSet = true;
63 m_resiliencyGroupArn = std::forward<ResiliencyGroupArnT>(value);
64 }
65 template <typename ResiliencyGroupArnT = Aws::String>
66 ResiliencyGroupSummary& WithResiliencyGroupArn(ResiliencyGroupArnT&& value) {
67 SetResiliencyGroupArn(std::forward<ResiliencyGroupArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetResiliencyGroupName() const { return m_resiliencyGroupName; }
77 inline bool ResiliencyGroupNameHasBeenSet() const { return m_resiliencyGroupNameHasBeenSet; }
78 template <typename ResiliencyGroupNameT = Aws::String>
79 void SetResiliencyGroupName(ResiliencyGroupNameT&& value) {
80 m_resiliencyGroupNameHasBeenSet = true;
81 m_resiliencyGroupName = std::forward<ResiliencyGroupNameT>(value);
82 }
83 template <typename ResiliencyGroupNameT = Aws::String>
84 ResiliencyGroupSummary& WithResiliencyGroupName(ResiliencyGroupNameT&& value) {
85 SetResiliencyGroupName(std::forward<ResiliencyGroupNameT>(value));
86 return *this;
87 }
89
91
95 inline ResiliencyGroupType GetResiliencyGroupType() const { return m_resiliencyGroupType; }
96 inline bool ResiliencyGroupTypeHasBeenSet() const { return m_resiliencyGroupTypeHasBeenSet; }
98 m_resiliencyGroupTypeHasBeenSet = true;
99 m_resiliencyGroupType = value;
100 }
103 return *this;
104 }
106
108
111 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
112 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
113 template <typename OwnerAccountT = Aws::String>
114 void SetOwnerAccount(OwnerAccountT&& value) {
115 m_ownerAccountHasBeenSet = true;
116 m_ownerAccount = std::forward<OwnerAccountT>(value);
117 }
118 template <typename OwnerAccountT = Aws::String>
119 ResiliencyGroupSummary& WithOwnerAccount(OwnerAccountT&& value) {
120 SetOwnerAccount(std::forward<OwnerAccountT>(value));
121 return *this;
122 }
124
126
129 inline ResiliencyGroupState GetState() const { return m_state; }
130 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
131 inline void SetState(ResiliencyGroupState value) {
132 m_stateHasBeenSet = true;
133 m_state = value;
134 }
136 SetState(value);
137 return *this;
138 }
140 private:
141 Aws::String m_resiliencyGroupId;
142
143 Aws::String m_resiliencyGroupArn;
144
145 Aws::String m_resiliencyGroupName;
146
148
149 Aws::String m_ownerAccount;
150
152 bool m_resiliencyGroupIdHasBeenSet = false;
153 bool m_resiliencyGroupArnHasBeenSet = false;
154 bool m_resiliencyGroupNameHasBeenSet = false;
155 bool m_resiliencyGroupTypeHasBeenSet = false;
156 bool m_ownerAccountHasBeenSet = false;
157 bool m_stateHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace DirectConnect
162} // namespace Aws
AWS_DIRECTCONNECT_API ResiliencyGroupSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTCONNECT_API ResiliencyGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResiliencyGroupArn(ResiliencyGroupArnT &&value)
ResiliencyGroupSummary & WithOwnerAccount(OwnerAccountT &&value)
ResiliencyGroupSummary & WithResiliencyGroupType(ResiliencyGroupType value)
void SetResiliencyGroupName(ResiliencyGroupNameT &&value)
AWS_DIRECTCONNECT_API ResiliencyGroupSummary()=default
ResiliencyGroupSummary & WithState(ResiliencyGroupState value)
ResiliencyGroupSummary & WithResiliencyGroupName(ResiliencyGroupNameT &&value)
ResiliencyGroupSummary & WithResiliencyGroupId(ResiliencyGroupIdT &&value)
ResiliencyGroupSummary & WithResiliencyGroupArn(ResiliencyGroupArnT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue