AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateVpcLinkResult.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/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ApiGatewayV2 {
28namespace Model {
30 public:
31 AWS_APIGATEWAYV2_API UpdateVpcLinkResult() = default;
34
36
39 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
40 template <typename CreatedDateT = Aws::Utils::DateTime>
41 void SetCreatedDate(CreatedDateT&& value) {
42 m_createdDateHasBeenSet = true;
43 m_createdDate = std::forward<CreatedDateT>(value);
44 }
45 template <typename CreatedDateT = Aws::Utils::DateTime>
46 UpdateVpcLinkResult& WithCreatedDate(CreatedDateT&& value) {
47 SetCreatedDate(std::forward<CreatedDateT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
63 UpdateVpcLinkResult& WithName(NameT&& value) {
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
74 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
75 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
76 m_securityGroupIdsHasBeenSet = true;
77 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
78 }
79 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
80 UpdateVpcLinkResult& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
81 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
82 return *this;
83 }
84 template <typename SecurityGroupIdsT = Aws::String>
85 UpdateVpcLinkResult& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
86 m_securityGroupIdsHasBeenSet = true;
87 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
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 UpdateVpcLinkResult& WithSubnetIds(SubnetIdsT&& value) {
104 SetSubnetIds(std::forward<SubnetIdsT>(value));
105 return *this;
106 }
107 template <typename SubnetIdsT = Aws::String>
108 UpdateVpcLinkResult& AddSubnetIds(SubnetIdsT&& value) {
109 m_subnetIdsHasBeenSet = true;
110 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 UpdateVpcLinkResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetVpcLinkId() const { return m_vpcLinkId; }
143 template <typename VpcLinkIdT = Aws::String>
144 void SetVpcLinkId(VpcLinkIdT&& value) {
145 m_vpcLinkIdHasBeenSet = true;
146 m_vpcLinkId = std::forward<VpcLinkIdT>(value);
147 }
148 template <typename VpcLinkIdT = Aws::String>
149 UpdateVpcLinkResult& WithVpcLinkId(VpcLinkIdT&& value) {
150 SetVpcLinkId(std::forward<VpcLinkIdT>(value));
151 return *this;
152 }
154
156
159 inline VpcLinkStatus GetVpcLinkStatus() const { return m_vpcLinkStatus; }
160 inline void SetVpcLinkStatus(VpcLinkStatus value) {
161 m_vpcLinkStatusHasBeenSet = true;
162 m_vpcLinkStatus = value;
163 }
165 SetVpcLinkStatus(value);
166 return *this;
167 }
169
171
174 inline const Aws::String& GetVpcLinkStatusMessage() const { return m_vpcLinkStatusMessage; }
175 template <typename VpcLinkStatusMessageT = Aws::String>
176 void SetVpcLinkStatusMessage(VpcLinkStatusMessageT&& value) {
177 m_vpcLinkStatusMessageHasBeenSet = true;
178 m_vpcLinkStatusMessage = std::forward<VpcLinkStatusMessageT>(value);
179 }
180 template <typename VpcLinkStatusMessageT = Aws::String>
181 UpdateVpcLinkResult& WithVpcLinkStatusMessage(VpcLinkStatusMessageT&& value) {
182 SetVpcLinkStatusMessage(std::forward<VpcLinkStatusMessageT>(value));
183 return *this;
184 }
186
188
191 inline VpcLinkVersion GetVpcLinkVersion() const { return m_vpcLinkVersion; }
193 m_vpcLinkVersionHasBeenSet = true;
194 m_vpcLinkVersion = value;
195 }
197 SetVpcLinkVersion(value);
198 return *this;
199 }
201
203
204 inline const Aws::String& GetRequestId() const { return m_requestId; }
205 template <typename RequestIdT = Aws::String>
206 void SetRequestId(RequestIdT&& value) {
207 m_requestIdHasBeenSet = true;
208 m_requestId = std::forward<RequestIdT>(value);
209 }
210 template <typename RequestIdT = Aws::String>
211 UpdateVpcLinkResult& WithRequestId(RequestIdT&& value) {
212 SetRequestId(std::forward<RequestIdT>(value));
213 return *this;
214 }
216 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
217
218 private:
219 Aws::Utils::DateTime m_createdDate{};
220
221 Aws::String m_name;
222
223 Aws::Vector<Aws::String> m_securityGroupIds;
224
225 Aws::Vector<Aws::String> m_subnetIds;
226
228
229 Aws::String m_vpcLinkId;
230
231 VpcLinkStatus m_vpcLinkStatus{VpcLinkStatus::NOT_SET};
232
233 Aws::String m_vpcLinkStatusMessage;
234
235 VpcLinkVersion m_vpcLinkVersion{VpcLinkVersion::NOT_SET};
236
237 Aws::String m_requestId;
238 Aws::Http::HttpResponseCode m_HttpResponseCode;
239 bool m_createdDateHasBeenSet = false;
240 bool m_nameHasBeenSet = false;
241 bool m_securityGroupIdsHasBeenSet = false;
242 bool m_subnetIdsHasBeenSet = false;
243 bool m_tagsHasBeenSet = false;
244 bool m_vpcLinkIdHasBeenSet = false;
245 bool m_vpcLinkStatusHasBeenSet = false;
246 bool m_vpcLinkStatusMessageHasBeenSet = false;
247 bool m_vpcLinkVersionHasBeenSet = false;
248 bool m_requestIdHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace ApiGatewayV2
253} // 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