AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcLink.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/apigatewayv2/model/VpcLinkStatus.h>
13#include <aws/apigatewayv2/model/VpcLinkVersion.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ApiGatewayV2
27{
28namespace Model
29{
30
36 class VpcLink
37 {
38 public:
39 AWS_APIGATEWAYV2_API VpcLink() = default;
40 AWS_APIGATEWAYV2_API VpcLink(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APIGATEWAYV2_API VpcLink& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
50 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
51 template<typename CreatedDateT = Aws::Utils::DateTime>
52 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
53 template<typename CreatedDateT = Aws::Utils::DateTime>
54 VpcLink& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 VpcLink& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
74 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
75 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
76 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
77 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
78 VpcLink& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
79 template<typename SecurityGroupIdsT = Aws::String>
80 VpcLink& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
82
84
87 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
88 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
89 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
90 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
91 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
92 VpcLink& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
93 template<typename SubnetIdsT = Aws::String>
94 VpcLink& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
105 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 VpcLink& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
107 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
108 VpcLink& AddTags(TagsKeyT&& key, TagsValueT&& value) {
109 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
110 }
112
114
117 inline const Aws::String& GetVpcLinkId() const { return m_vpcLinkId; }
118 inline bool VpcLinkIdHasBeenSet() const { return m_vpcLinkIdHasBeenSet; }
119 template<typename VpcLinkIdT = Aws::String>
120 void SetVpcLinkId(VpcLinkIdT&& value) { m_vpcLinkIdHasBeenSet = true; m_vpcLinkId = std::forward<VpcLinkIdT>(value); }
121 template<typename VpcLinkIdT = Aws::String>
122 VpcLink& WithVpcLinkId(VpcLinkIdT&& value) { SetVpcLinkId(std::forward<VpcLinkIdT>(value)); return *this;}
124
126
129 inline VpcLinkStatus GetVpcLinkStatus() const { return m_vpcLinkStatus; }
130 inline bool VpcLinkStatusHasBeenSet() const { return m_vpcLinkStatusHasBeenSet; }
131 inline void SetVpcLinkStatus(VpcLinkStatus value) { m_vpcLinkStatusHasBeenSet = true; m_vpcLinkStatus = value; }
132 inline VpcLink& WithVpcLinkStatus(VpcLinkStatus value) { SetVpcLinkStatus(value); return *this;}
134
136
139 inline const Aws::String& GetVpcLinkStatusMessage() const { return m_vpcLinkStatusMessage; }
140 inline bool VpcLinkStatusMessageHasBeenSet() const { return m_vpcLinkStatusMessageHasBeenSet; }
141 template<typename VpcLinkStatusMessageT = Aws::String>
142 void SetVpcLinkStatusMessage(VpcLinkStatusMessageT&& value) { m_vpcLinkStatusMessageHasBeenSet = true; m_vpcLinkStatusMessage = std::forward<VpcLinkStatusMessageT>(value); }
143 template<typename VpcLinkStatusMessageT = Aws::String>
144 VpcLink& WithVpcLinkStatusMessage(VpcLinkStatusMessageT&& value) { SetVpcLinkStatusMessage(std::forward<VpcLinkStatusMessageT>(value)); return *this;}
146
148
151 inline VpcLinkVersion GetVpcLinkVersion() const { return m_vpcLinkVersion; }
152 inline bool VpcLinkVersionHasBeenSet() const { return m_vpcLinkVersionHasBeenSet; }
153 inline void SetVpcLinkVersion(VpcLinkVersion value) { m_vpcLinkVersionHasBeenSet = true; m_vpcLinkVersion = value; }
154 inline VpcLink& WithVpcLinkVersion(VpcLinkVersion value) { SetVpcLinkVersion(value); return *this;}
156 private:
157
158 Aws::Utils::DateTime m_createdDate{};
159 bool m_createdDateHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::Vector<Aws::String> m_securityGroupIds;
165 bool m_securityGroupIdsHasBeenSet = false;
166
167 Aws::Vector<Aws::String> m_subnetIds;
168 bool m_subnetIdsHasBeenSet = false;
169
171 bool m_tagsHasBeenSet = false;
172
173 Aws::String m_vpcLinkId;
174 bool m_vpcLinkIdHasBeenSet = false;
175
176 VpcLinkStatus m_vpcLinkStatus{VpcLinkStatus::NOT_SET};
177 bool m_vpcLinkStatusHasBeenSet = false;
178
179 Aws::String m_vpcLinkStatusMessage;
180 bool m_vpcLinkStatusMessageHasBeenSet = false;
181
182 VpcLinkVersion m_vpcLinkVersion{VpcLinkVersion::NOT_SET};
183 bool m_vpcLinkVersionHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace ApiGatewayV2
188} // 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