AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
VpcLink.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/VpcLinkStatus.h>
9#include <aws/apigatewayv2/model/VpcLinkVersion.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ApiGatewayV2 {
25namespace Model {
26
32class VpcLink {
33 public:
34 AWS_APIGATEWAYV2_API VpcLink() = default;
35 AWS_APIGATEWAYV2_API VpcLink(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APIGATEWAYV2_API VpcLink& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
44 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
45 template <typename CreatedDateT = Aws::Utils::DateTime>
46 void SetCreatedDate(CreatedDateT&& value) {
47 m_createdDateHasBeenSet = true;
48 m_createdDate = std::forward<CreatedDateT>(value);
49 }
50 template <typename CreatedDateT = Aws::Utils::DateTime>
51 VpcLink& WithCreatedDate(CreatedDateT&& value) {
52 SetCreatedDate(std::forward<CreatedDateT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 VpcLink& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
80 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
81 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
82 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
83 m_securityGroupIdsHasBeenSet = true;
84 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
85 }
86 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
87 VpcLink& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
88 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
89 return *this;
90 }
91 template <typename SecurityGroupIdsT = Aws::String>
92 VpcLink& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
93 m_securityGroupIdsHasBeenSet = true;
94 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
104 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
105 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
106 void SetSubnetIds(SubnetIdsT&& value) {
107 m_subnetIdsHasBeenSet = true;
108 m_subnetIds = std::forward<SubnetIdsT>(value);
109 }
110 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
111 VpcLink& WithSubnetIds(SubnetIdsT&& value) {
112 SetSubnetIds(std::forward<SubnetIdsT>(value));
113 return *this;
114 }
115 template <typename SubnetIdsT = Aws::String>
116 VpcLink& AddSubnetIds(SubnetIdsT&& value) {
117 m_subnetIdsHasBeenSet = true;
118 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags = std::forward<TagsT>(value);
133 }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 VpcLink& WithTags(TagsT&& value) {
136 SetTags(std::forward<TagsT>(value));
137 return *this;
138 }
139 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 VpcLink& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetVpcLinkId() const { return m_vpcLinkId; }
152 inline bool VpcLinkIdHasBeenSet() const { return m_vpcLinkIdHasBeenSet; }
153 template <typename VpcLinkIdT = Aws::String>
154 void SetVpcLinkId(VpcLinkIdT&& value) {
155 m_vpcLinkIdHasBeenSet = true;
156 m_vpcLinkId = std::forward<VpcLinkIdT>(value);
157 }
158 template <typename VpcLinkIdT = Aws::String>
159 VpcLink& WithVpcLinkId(VpcLinkIdT&& value) {
160 SetVpcLinkId(std::forward<VpcLinkIdT>(value));
161 return *this;
162 }
164
166
169 inline VpcLinkStatus GetVpcLinkStatus() const { return m_vpcLinkStatus; }
170 inline bool VpcLinkStatusHasBeenSet() const { return m_vpcLinkStatusHasBeenSet; }
171 inline void SetVpcLinkStatus(VpcLinkStatus value) {
172 m_vpcLinkStatusHasBeenSet = true;
173 m_vpcLinkStatus = value;
174 }
176 SetVpcLinkStatus(value);
177 return *this;
178 }
180
182
185 inline const Aws::String& GetVpcLinkStatusMessage() const { return m_vpcLinkStatusMessage; }
186 inline bool VpcLinkStatusMessageHasBeenSet() const { return m_vpcLinkStatusMessageHasBeenSet; }
187 template <typename VpcLinkStatusMessageT = Aws::String>
188 void SetVpcLinkStatusMessage(VpcLinkStatusMessageT&& value) {
189 m_vpcLinkStatusMessageHasBeenSet = true;
190 m_vpcLinkStatusMessage = std::forward<VpcLinkStatusMessageT>(value);
191 }
192 template <typename VpcLinkStatusMessageT = Aws::String>
193 VpcLink& WithVpcLinkStatusMessage(VpcLinkStatusMessageT&& value) {
194 SetVpcLinkStatusMessage(std::forward<VpcLinkStatusMessageT>(value));
195 return *this;
196 }
198
200
203 inline VpcLinkVersion GetVpcLinkVersion() const { return m_vpcLinkVersion; }
204 inline bool VpcLinkVersionHasBeenSet() const { return m_vpcLinkVersionHasBeenSet; }
206 m_vpcLinkVersionHasBeenSet = true;
207 m_vpcLinkVersion = value;
208 }
210 SetVpcLinkVersion(value);
211 return *this;
212 }
214 private:
215 Aws::Utils::DateTime m_createdDate{};
216
217 Aws::String m_name;
218
219 Aws::Vector<Aws::String> m_securityGroupIds;
220
221 Aws::Vector<Aws::String> m_subnetIds;
222
224
225 Aws::String m_vpcLinkId;
226
227 VpcLinkStatus m_vpcLinkStatus{VpcLinkStatus::NOT_SET};
228
229 Aws::String m_vpcLinkStatusMessage;
230
231 VpcLinkVersion m_vpcLinkVersion{VpcLinkVersion::NOT_SET};
232 bool m_createdDateHasBeenSet = false;
233 bool m_nameHasBeenSet = false;
234 bool m_securityGroupIdsHasBeenSet = false;
235 bool m_subnetIdsHasBeenSet = false;
236 bool m_tagsHasBeenSet = false;
237 bool m_vpcLinkIdHasBeenSet = false;
238 bool m_vpcLinkStatusHasBeenSet = false;
239 bool m_vpcLinkStatusMessageHasBeenSet = false;
240 bool m_vpcLinkVersionHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace ApiGatewayV2
245} // namespace Aws
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue