AWS SDK for C++

AWS SDK for C++ Version 1.11.883

Loading...
Searching...
No Matches
ManagedVpcResource.h
1
6#pragma once
7#include <aws/agent-registry-control/AgentRegistryControl_EXPORTS.h>
8#include <aws/agent-registry-control/model/EndpointIpAddressType.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AgentRegistryControl {
23namespace Model {
24
32 public:
33 AWS_AGENTREGISTRYCONTROL_API ManagedVpcResource() = default;
34 AWS_AGENTREGISTRYCONTROL_API ManagedVpcResource(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AGENTREGISTRYCONTROL_API ManagedVpcResource& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetVpcIdentifier() const { return m_vpcIdentifier; }
43 inline bool VpcIdentifierHasBeenSet() const { return m_vpcIdentifierHasBeenSet; }
44 template <typename VpcIdentifierT = Aws::String>
45 void SetVpcIdentifier(VpcIdentifierT&& value) {
46 m_vpcIdentifierHasBeenSet = true;
47 m_vpcIdentifier = std::forward<VpcIdentifierT>(value);
48 }
49 template <typename VpcIdentifierT = Aws::String>
50 ManagedVpcResource& WithVpcIdentifier(VpcIdentifierT&& value) {
51 SetVpcIdentifier(std::forward<VpcIdentifierT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
62 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
63 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
64 void SetSubnetIds(SubnetIdsT&& value) {
65 m_subnetIdsHasBeenSet = true;
66 m_subnetIds = std::forward<SubnetIdsT>(value);
67 }
68 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
69 ManagedVpcResource& WithSubnetIds(SubnetIdsT&& value) {
70 SetSubnetIds(std::forward<SubnetIdsT>(value));
71 return *this;
72 }
73 template <typename SubnetIdsT = Aws::String>
74 ManagedVpcResource& AddSubnetIds(SubnetIdsT&& value) {
75 m_subnetIdsHasBeenSet = true;
76 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
77 return *this;
78 }
80
82
85 inline EndpointIpAddressType GetEndpointIpAddressType() const { return m_endpointIpAddressType; }
86 inline bool EndpointIpAddressTypeHasBeenSet() const { return m_endpointIpAddressTypeHasBeenSet; }
88 m_endpointIpAddressTypeHasBeenSet = true;
89 m_endpointIpAddressType = value;
90 }
93 return *this;
94 }
96
98
102 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
103 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
104 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
105 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
106 m_securityGroupIdsHasBeenSet = true;
107 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
108 }
109 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
110 ManagedVpcResource& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
111 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
112 return *this;
113 }
114 template <typename SecurityGroupIdsT = Aws::String>
115 ManagedVpcResource& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
116 m_securityGroupIdsHasBeenSet = true;
117 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) {
130 m_tagsHasBeenSet = true;
131 m_tags = std::forward<TagsT>(value);
132 }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 ManagedVpcResource& WithTags(TagsT&& value) {
135 SetTags(std::forward<TagsT>(value));
136 return *this;
137 }
138 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
139 ManagedVpcResource& AddTags(TagsKeyT&& key, TagsValueT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetRoutingDomain() const { return m_routingDomain; }
151 inline bool RoutingDomainHasBeenSet() const { return m_routingDomainHasBeenSet; }
152 template <typename RoutingDomainT = Aws::String>
153 void SetRoutingDomain(RoutingDomainT&& value) {
154 m_routingDomainHasBeenSet = true;
155 m_routingDomain = std::forward<RoutingDomainT>(value);
156 }
157 template <typename RoutingDomainT = Aws::String>
158 ManagedVpcResource& WithRoutingDomain(RoutingDomainT&& value) {
159 SetRoutingDomain(std::forward<RoutingDomainT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_vpcIdentifier;
165
166 Aws::Vector<Aws::String> m_subnetIds;
167
169
170 Aws::Vector<Aws::String> m_securityGroupIds;
171
173
174 Aws::String m_routingDomain;
175 bool m_vpcIdentifierHasBeenSet = false;
176 bool m_subnetIdsHasBeenSet = false;
177 bool m_endpointIpAddressTypeHasBeenSet = false;
178 bool m_securityGroupIdsHasBeenSet = false;
179 bool m_tagsHasBeenSet = false;
180 bool m_routingDomainHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace AgentRegistryControl
185} // namespace Aws
AWS_AGENTREGISTRYCONTROL_API ManagedVpcResource(Aws::Utils::Json::JsonView jsonValue)
AWS_AGENTREGISTRYCONTROL_API ManagedVpcResource & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedVpcResource & WithVpcIdentifier(VpcIdentifierT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
ManagedVpcResource & WithSecurityGroupIds(SecurityGroupIdsT &&value)
ManagedVpcResource & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetEndpointIpAddressType(EndpointIpAddressType value)
ManagedVpcResource & WithRoutingDomain(RoutingDomainT &&value)
ManagedVpcResource & AddSecurityGroupIds(SecurityGroupIdsT &&value)
ManagedVpcResource & AddSubnetIds(SubnetIdsT &&value)
ManagedVpcResource & WithEndpointIpAddressType(EndpointIpAddressType value)
ManagedVpcResource & WithSubnetIds(SubnetIdsT &&value)
AWS_AGENTREGISTRYCONTROL_API ManagedVpcResource()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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