AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcConnector.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/apprunner/model/VpcConnectorStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppRunner
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_APPRUNNER_API VpcConnector() = default;
43 AWS_APPRUNNER_API VpcConnector(Aws::Utils::Json::JsonView jsonValue);
44 AWS_APPRUNNER_API VpcConnector& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetVpcConnectorName() const { return m_vpcConnectorName; }
53 inline bool VpcConnectorNameHasBeenSet() const { return m_vpcConnectorNameHasBeenSet; }
54 template<typename VpcConnectorNameT = Aws::String>
55 void SetVpcConnectorName(VpcConnectorNameT&& value) { m_vpcConnectorNameHasBeenSet = true; m_vpcConnectorName = std::forward<VpcConnectorNameT>(value); }
56 template<typename VpcConnectorNameT = Aws::String>
57 VpcConnector& WithVpcConnectorName(VpcConnectorNameT&& value) { SetVpcConnectorName(std::forward<VpcConnectorNameT>(value)); return *this;}
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) { m_vpcConnectorArnHasBeenSet = true; m_vpcConnectorArn = std::forward<VpcConnectorArnT>(value); }
68 template<typename VpcConnectorArnT = Aws::String>
69 VpcConnector& WithVpcConnectorArn(VpcConnectorArnT&& value) { SetVpcConnectorArn(std::forward<VpcConnectorArnT>(value)); return *this;}
71
73
79 inline int GetVpcConnectorRevision() const { return m_vpcConnectorRevision; }
80 inline bool VpcConnectorRevisionHasBeenSet() const { return m_vpcConnectorRevisionHasBeenSet; }
81 inline void SetVpcConnectorRevision(int value) { m_vpcConnectorRevisionHasBeenSet = true; m_vpcConnectorRevision = value; }
82 inline VpcConnector& WithVpcConnectorRevision(int value) { SetVpcConnectorRevision(value); return *this;}
84
86
90 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
91 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
92 template<typename SubnetsT = Aws::Vector<Aws::String>>
93 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
94 template<typename SubnetsT = Aws::Vector<Aws::String>>
95 VpcConnector& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
96 template<typename SubnetsT = Aws::String>
97 VpcConnector& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
99
101
107 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
108 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
109 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
110 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
111 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
112 VpcConnector& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
113 template<typename SecurityGroupsT = Aws::String>
114 VpcConnector& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
116
118
123 inline VpcConnectorStatus GetStatus() const { return m_status; }
124 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 inline void SetStatus(VpcConnectorStatus value) { m_statusHasBeenSet = true; m_status = value; }
126 inline VpcConnector& WithStatus(VpcConnectorStatus value) { SetStatus(value); return *this;}
128
130
134 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
135 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
136 template<typename CreatedAtT = Aws::Utils::DateTime>
137 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
138 template<typename CreatedAtT = Aws::Utils::DateTime>
139 VpcConnector& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
141
143
147 inline const Aws::Utils::DateTime& GetDeletedAt() const { return m_deletedAt; }
148 inline bool DeletedAtHasBeenSet() const { return m_deletedAtHasBeenSet; }
149 template<typename DeletedAtT = Aws::Utils::DateTime>
150 void SetDeletedAt(DeletedAtT&& value) { m_deletedAtHasBeenSet = true; m_deletedAt = std::forward<DeletedAtT>(value); }
151 template<typename DeletedAtT = Aws::Utils::DateTime>
152 VpcConnector& WithDeletedAt(DeletedAtT&& value) { SetDeletedAt(std::forward<DeletedAtT>(value)); return *this;}
154 private:
155
156 Aws::String m_vpcConnectorName;
157 bool m_vpcConnectorNameHasBeenSet = false;
158
159 Aws::String m_vpcConnectorArn;
160 bool m_vpcConnectorArnHasBeenSet = false;
161
162 int m_vpcConnectorRevision{0};
163 bool m_vpcConnectorRevisionHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_subnets;
166 bool m_subnetsHasBeenSet = false;
167
168 Aws::Vector<Aws::String> m_securityGroups;
169 bool m_securityGroupsHasBeenSet = false;
170
172 bool m_statusHasBeenSet = false;
173
174 Aws::Utils::DateTime m_createdAt{};
175 bool m_createdAtHasBeenSet = false;
176
177 Aws::Utils::DateTime m_deletedAt{};
178 bool m_deletedAtHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace AppRunner
183} // 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