AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VpcConnector.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/VpcConnectorStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppRunner {
23namespace Model {
24
36 public:
37 AWS_APPRUNNER_API VpcConnector() = default;
38 AWS_APPRUNNER_API VpcConnector(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPRUNNER_API VpcConnector& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetVpcConnectorName() const { return m_vpcConnectorName; }
47 inline bool VpcConnectorNameHasBeenSet() const { return m_vpcConnectorNameHasBeenSet; }
48 template <typename VpcConnectorNameT = Aws::String>
49 void SetVpcConnectorName(VpcConnectorNameT&& value) {
50 m_vpcConnectorNameHasBeenSet = true;
51 m_vpcConnectorName = std::forward<VpcConnectorNameT>(value);
52 }
53 template <typename VpcConnectorNameT = Aws::String>
54 VpcConnector& WithVpcConnectorName(VpcConnectorNameT&& value) {
55 SetVpcConnectorName(std::forward<VpcConnectorNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetVpcConnectorArn() const { return m_vpcConnectorArn; }
65 inline bool VpcConnectorArnHasBeenSet() const { return m_vpcConnectorArnHasBeenSet; }
66 template <typename VpcConnectorArnT = Aws::String>
67 void SetVpcConnectorArn(VpcConnectorArnT&& value) {
68 m_vpcConnectorArnHasBeenSet = true;
69 m_vpcConnectorArn = std::forward<VpcConnectorArnT>(value);
70 }
71 template <typename VpcConnectorArnT = Aws::String>
72 VpcConnector& WithVpcConnectorArn(VpcConnectorArnT&& value) {
73 SetVpcConnectorArn(std::forward<VpcConnectorArnT>(value));
74 return *this;
75 }
77
79
85 inline int GetVpcConnectorRevision() const { return m_vpcConnectorRevision; }
86 inline bool VpcConnectorRevisionHasBeenSet() const { return m_vpcConnectorRevisionHasBeenSet; }
87 inline void SetVpcConnectorRevision(int value) {
88 m_vpcConnectorRevisionHasBeenSet = true;
89 m_vpcConnectorRevision = value;
90 }
93 return *this;
94 }
96
98
102 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
103 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
104 template <typename SubnetsT = Aws::Vector<Aws::String>>
105 void SetSubnets(SubnetsT&& value) {
106 m_subnetsHasBeenSet = true;
107 m_subnets = std::forward<SubnetsT>(value);
108 }
109 template <typename SubnetsT = Aws::Vector<Aws::String>>
110 VpcConnector& WithSubnets(SubnetsT&& value) {
111 SetSubnets(std::forward<SubnetsT>(value));
112 return *this;
113 }
114 template <typename SubnetsT = Aws::String>
115 VpcConnector& AddSubnets(SubnetsT&& value) {
116 m_subnetsHasBeenSet = true;
117 m_subnets.emplace_back(std::forward<SubnetsT>(value));
118 return *this;
119 }
121
123
129 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
130 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
131 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
132 void SetSecurityGroups(SecurityGroupsT&& value) {
133 m_securityGroupsHasBeenSet = true;
134 m_securityGroups = std::forward<SecurityGroupsT>(value);
135 }
136 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
137 VpcConnector& WithSecurityGroups(SecurityGroupsT&& value) {
138 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
139 return *this;
140 }
141 template <typename SecurityGroupsT = Aws::String>
142 VpcConnector& AddSecurityGroups(SecurityGroupsT&& value) {
143 m_securityGroupsHasBeenSet = true;
144 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
145 return *this;
146 }
148
150
155 inline VpcConnectorStatus GetStatus() const { return m_status; }
156 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
157 inline void SetStatus(VpcConnectorStatus value) {
158 m_statusHasBeenSet = true;
159 m_status = value;
160 }
162 SetStatus(value);
163 return *this;
164 }
166
168
172 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
173 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
174 template <typename CreatedAtT = Aws::Utils::DateTime>
175 void SetCreatedAt(CreatedAtT&& value) {
176 m_createdAtHasBeenSet = true;
177 m_createdAt = std::forward<CreatedAtT>(value);
178 }
179 template <typename CreatedAtT = Aws::Utils::DateTime>
180 VpcConnector& WithCreatedAt(CreatedAtT&& value) {
181 SetCreatedAt(std::forward<CreatedAtT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::Utils::DateTime& GetDeletedAt() const { return m_deletedAt; }
192 inline bool DeletedAtHasBeenSet() const { return m_deletedAtHasBeenSet; }
193 template <typename DeletedAtT = Aws::Utils::DateTime>
194 void SetDeletedAt(DeletedAtT&& value) {
195 m_deletedAtHasBeenSet = true;
196 m_deletedAt = std::forward<DeletedAtT>(value);
197 }
198 template <typename DeletedAtT = Aws::Utils::DateTime>
199 VpcConnector& WithDeletedAt(DeletedAtT&& value) {
200 SetDeletedAt(std::forward<DeletedAtT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_vpcConnectorName;
206
207 Aws::String m_vpcConnectorArn;
208
209 int m_vpcConnectorRevision{0};
210
211 Aws::Vector<Aws::String> m_subnets;
212
213 Aws::Vector<Aws::String> m_securityGroups;
214
216
217 Aws::Utils::DateTime m_createdAt{};
218
219 Aws::Utils::DateTime m_deletedAt{};
220 bool m_vpcConnectorNameHasBeenSet = false;
221 bool m_vpcConnectorArnHasBeenSet = false;
222 bool m_vpcConnectorRevisionHasBeenSet = false;
223 bool m_subnetsHasBeenSet = false;
224 bool m_securityGroupsHasBeenSet = false;
225 bool m_statusHasBeenSet = false;
226 bool m_createdAtHasBeenSet = false;
227 bool m_deletedAtHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace AppRunner
232} // namespace Aws
void SetSubnets(SubnetsT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetVpcConnectorArn() const
void SetVpcConnectorArn(VpcConnectorArnT &&value)
void SetVpcConnectorName(VpcConnectorNameT &&value)
VpcConnector & AddSecurityGroups(SecurityGroupsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
const Aws::Utils::DateTime & GetDeletedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Aws::String > & GetSubnets() const
VpcConnector & WithVpcConnectorRevision(int value)
VpcConnector & WithVpcConnectorArn(VpcConnectorArnT &&value)
void SetSecurityGroups(SecurityGroupsT &&value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(VpcConnectorStatus value)
void SetDeletedAt(DeletedAtT &&value)
VpcConnector & WithStatus(VpcConnectorStatus value)
VpcConnectorStatus GetStatus() const
AWS_APPRUNNER_API VpcConnector()=default
VpcConnector & WithCreatedAt(CreatedAtT &&value)
AWS_APPRUNNER_API VpcConnector(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API VpcConnector & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConnector & WithSubnets(SubnetsT &&value)
VpcConnector & AddSubnets(SubnetsT &&value)
VpcConnector & WithVpcConnectorName(VpcConnectorNameT &&value)
VpcConnector & WithDeletedAt(DeletedAtT &&value)
const Aws::String & GetVpcConnectorName() const
VpcConnector & WithSecurityGroups(SecurityGroupsT &&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