AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
VpcEndpointDetail.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/opensearchserverless/OpenSearchServerless_EXPORTS.h>
10#include <aws/opensearchserverless/model/VpcEndpointStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchServerless {
22namespace Model {
23
31 public:
32 AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail() = default;
33 AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 VpcEndpointDetail& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 VpcEndpointDetail& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetVpcId() const { return m_vpcId; }
78 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
79 template <typename VpcIdT = Aws::String>
80 void SetVpcId(VpcIdT&& value) {
81 m_vpcIdHasBeenSet = true;
82 m_vpcId = std::forward<VpcIdT>(value);
83 }
84 template <typename VpcIdT = Aws::String>
85 VpcEndpointDetail& WithVpcId(VpcIdT&& value) {
86 SetVpcId(std::forward<VpcIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
96 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
97 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
98 void SetSubnetIds(SubnetIdsT&& value) {
99 m_subnetIdsHasBeenSet = true;
100 m_subnetIds = std::forward<SubnetIdsT>(value);
101 }
102 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
103 VpcEndpointDetail& WithSubnetIds(SubnetIdsT&& value) {
104 SetSubnetIds(std::forward<SubnetIdsT>(value));
105 return *this;
106 }
107 template <typename SubnetIdsT = Aws::String>
108 VpcEndpointDetail& AddSubnetIds(SubnetIdsT&& value) {
109 m_subnetIdsHasBeenSet = true;
110 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
122 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
123 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
124 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
125 m_securityGroupIdsHasBeenSet = true;
126 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
127 }
128 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
129 VpcEndpointDetail& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
130 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
131 return *this;
132 }
133 template <typename SecurityGroupIdsT = Aws::String>
134 VpcEndpointDetail& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
135 m_securityGroupIdsHasBeenSet = true;
136 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
137 return *this;
138 }
140
142
145 inline VpcEndpointStatus GetStatus() const { return m_status; }
146 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
147 inline void SetStatus(VpcEndpointStatus value) {
148 m_statusHasBeenSet = true;
149 m_status = value;
150 }
152 SetStatus(value);
153 return *this;
154 }
156
158
161 inline long long GetCreatedDate() const { return m_createdDate; }
162 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
163 inline void SetCreatedDate(long long value) {
164 m_createdDateHasBeenSet = true;
165 m_createdDate = value;
166 }
167 inline VpcEndpointDetail& WithCreatedDate(long long value) {
168 SetCreatedDate(value);
169 return *this;
170 }
172
174
177 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
178 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
179 template <typename FailureCodeT = Aws::String>
180 void SetFailureCode(FailureCodeT&& value) {
181 m_failureCodeHasBeenSet = true;
182 m_failureCode = std::forward<FailureCodeT>(value);
183 }
184 template <typename FailureCodeT = Aws::String>
185 VpcEndpointDetail& WithFailureCode(FailureCodeT&& value) {
186 SetFailureCode(std::forward<FailureCodeT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
196 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
197 template <typename FailureMessageT = Aws::String>
198 void SetFailureMessage(FailureMessageT&& value) {
199 m_failureMessageHasBeenSet = true;
200 m_failureMessage = std::forward<FailureMessageT>(value);
201 }
202 template <typename FailureMessageT = Aws::String>
203 VpcEndpointDetail& WithFailureMessage(FailureMessageT&& value) {
204 SetFailureMessage(std::forward<FailureMessageT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_id;
210
211 Aws::String m_name;
212
213 Aws::String m_vpcId;
214
215 Aws::Vector<Aws::String> m_subnetIds;
216
217 Aws::Vector<Aws::String> m_securityGroupIds;
218
220
221 long long m_createdDate{0};
222
223 Aws::String m_failureCode;
224
225 Aws::String m_failureMessage;
226 bool m_idHasBeenSet = false;
227 bool m_nameHasBeenSet = false;
228 bool m_vpcIdHasBeenSet = false;
229 bool m_subnetIdsHasBeenSet = false;
230 bool m_securityGroupIdsHasBeenSet = false;
231 bool m_statusHasBeenSet = false;
232 bool m_createdDateHasBeenSet = false;
233 bool m_failureCodeHasBeenSet = false;
234 bool m_failureMessageHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace OpenSearchServerless
239} // namespace Aws
VpcEndpointDetail & AddSubnetIds(SubnetIdsT &&value)
VpcEndpointDetail & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcEndpointDetail & WithStatus(VpcEndpointStatus value)
VpcEndpointDetail & WithSecurityGroupIds(SecurityGroupIdsT &&value)
VpcEndpointDetail & WithFailureMessage(FailureMessageT &&value)
AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail()=default
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail(Aws::Utils::Json::JsonView jsonValue)
VpcEndpointDetail & WithFailureCode(FailureCodeT &&value)
VpcEndpointDetail & WithVpcId(VpcIdT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcEndpointDetail & WithSubnetIds(SubnetIdsT &&value)
VpcEndpointDetail & WithCreatedDate(long long 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