AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateVpcLinkResult.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 {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ApiGatewayV2 {
27namespace Model {
29 public:
30 AWS_APIGATEWAYV2_API CreateVpcLinkResult() = default;
33
35
38 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
39 template <typename CreatedDateT = Aws::Utils::DateTime>
40 void SetCreatedDate(CreatedDateT&& value) {
41 m_createdDateHasBeenSet = true;
42 m_createdDate = std::forward<CreatedDateT>(value);
43 }
44 template <typename CreatedDateT = Aws::Utils::DateTime>
45 CreateVpcLinkResult& WithCreatedDate(CreatedDateT&& value) {
46 SetCreatedDate(std::forward<CreatedDateT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
62 CreateVpcLinkResult& WithName(NameT&& value) {
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
73 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
74 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
75 m_securityGroupIdsHasBeenSet = true;
76 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
77 }
78 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
79 CreateVpcLinkResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
80 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
81 return *this;
82 }
83 template <typename SecurityGroupIdsT = Aws::String>
84 CreateVpcLinkResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
85 m_securityGroupIdsHasBeenSet = true;
86 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
96 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
97 void SetSubnetIds(SubnetIdsT&& value) {
98 m_subnetIdsHasBeenSet = true;
99 m_subnetIds = std::forward<SubnetIdsT>(value);
100 }
101 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
102 CreateVpcLinkResult& WithSubnetIds(SubnetIdsT&& value) {
103 SetSubnetIds(std::forward<SubnetIdsT>(value));
104 return *this;
105 }
106 template <typename SubnetIdsT = Aws::String>
107 CreateVpcLinkResult& AddSubnetIds(SubnetIdsT&& value) {
108 m_subnetIdsHasBeenSet = true;
109 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 void SetTags(TagsT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags = std::forward<TagsT>(value);
123 }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 SetTags(std::forward<TagsT>(value));
127 return *this;
128 }
129 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
130 CreateVpcLinkResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetVpcLinkId() const { return m_vpcLinkId; }
142 template <typename VpcLinkIdT = Aws::String>
143 void SetVpcLinkId(VpcLinkIdT&& value) {
144 m_vpcLinkIdHasBeenSet = true;
145 m_vpcLinkId = std::forward<VpcLinkIdT>(value);
146 }
147 template <typename VpcLinkIdT = Aws::String>
148 CreateVpcLinkResult& WithVpcLinkId(VpcLinkIdT&& value) {
149 SetVpcLinkId(std::forward<VpcLinkIdT>(value));
150 return *this;
151 }
153
155
158 inline VpcLinkStatus GetVpcLinkStatus() const { return m_vpcLinkStatus; }
159 inline void SetVpcLinkStatus(VpcLinkStatus value) {
160 m_vpcLinkStatusHasBeenSet = true;
161 m_vpcLinkStatus = value;
162 }
164 SetVpcLinkStatus(value);
165 return *this;
166 }
168
170
173 inline const Aws::String& GetVpcLinkStatusMessage() const { return m_vpcLinkStatusMessage; }
174 template <typename VpcLinkStatusMessageT = Aws::String>
175 void SetVpcLinkStatusMessage(VpcLinkStatusMessageT&& value) {
176 m_vpcLinkStatusMessageHasBeenSet = true;
177 m_vpcLinkStatusMessage = std::forward<VpcLinkStatusMessageT>(value);
178 }
179 template <typename VpcLinkStatusMessageT = Aws::String>
180 CreateVpcLinkResult& WithVpcLinkStatusMessage(VpcLinkStatusMessageT&& value) {
181 SetVpcLinkStatusMessage(std::forward<VpcLinkStatusMessageT>(value));
182 return *this;
183 }
185
187
190 inline VpcLinkVersion GetVpcLinkVersion() const { return m_vpcLinkVersion; }
192 m_vpcLinkVersionHasBeenSet = true;
193 m_vpcLinkVersion = value;
194 }
196 SetVpcLinkVersion(value);
197 return *this;
198 }
200
202
203 inline const Aws::String& GetRequestId() const { return m_requestId; }
204 template <typename RequestIdT = Aws::String>
205 void SetRequestId(RequestIdT&& value) {
206 m_requestIdHasBeenSet = true;
207 m_requestId = std::forward<RequestIdT>(value);
208 }
209 template <typename RequestIdT = Aws::String>
210 CreateVpcLinkResult& WithRequestId(RequestIdT&& value) {
211 SetRequestId(std::forward<RequestIdT>(value));
212 return *this;
213 }
215 private:
216 Aws::Utils::DateTime m_createdDate{};
217
218 Aws::String m_name;
219
220 Aws::Vector<Aws::String> m_securityGroupIds;
221
222 Aws::Vector<Aws::String> m_subnetIds;
223
225
226 Aws::String m_vpcLinkId;
227
228 VpcLinkStatus m_vpcLinkStatus{VpcLinkStatus::NOT_SET};
229
230 Aws::String m_vpcLinkStatusMessage;
231
232 VpcLinkVersion m_vpcLinkVersion{VpcLinkVersion::NOT_SET};
233
234 Aws::String m_requestId;
235 bool m_createdDateHasBeenSet = false;
236 bool m_nameHasBeenSet = false;
237 bool m_securityGroupIdsHasBeenSet = false;
238 bool m_subnetIdsHasBeenSet = false;
239 bool m_tagsHasBeenSet = false;
240 bool m_vpcLinkIdHasBeenSet = false;
241 bool m_vpcLinkStatusHasBeenSet = false;
242 bool m_vpcLinkStatusMessageHasBeenSet = false;
243 bool m_vpcLinkVersionHasBeenSet = false;
244 bool m_requestIdHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace ApiGatewayV2
249} // 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