AWS SDK for C++

AWS SDK for C++ Version 1.11.867

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
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 void SetTags(TagsT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags = std::forward<TagsT>(value);
130 }
131 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 ManagedVpcResource& WithTags(TagsT&& value) {
133 SetTags(std::forward<TagsT>(value));
134 return *this;
135 }
136 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
137 ManagedVpcResource& AddTags(TagsKeyT&& key, TagsValueT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetRoutingDomain() const { return m_routingDomain; }
149 inline bool RoutingDomainHasBeenSet() const { return m_routingDomainHasBeenSet; }
150 template <typename RoutingDomainT = Aws::String>
151 void SetRoutingDomain(RoutingDomainT&& value) {
152 m_routingDomainHasBeenSet = true;
153 m_routingDomain = std::forward<RoutingDomainT>(value);
154 }
155 template <typename RoutingDomainT = Aws::String>
156 ManagedVpcResource& WithRoutingDomain(RoutingDomainT&& value) {
157 SetRoutingDomain(std::forward<RoutingDomainT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_vpcIdentifier;
163
164 Aws::Vector<Aws::String> m_subnetIds;
165
167
168 Aws::Vector<Aws::String> m_securityGroupIds;
169
171
172 Aws::String m_routingDomain;
173 bool m_vpcIdentifierHasBeenSet = false;
174 bool m_subnetIdsHasBeenSet = false;
175 bool m_endpointIpAddressTypeHasBeenSet = false;
176 bool m_securityGroupIdsHasBeenSet = false;
177 bool m_tagsHasBeenSet = false;
178 bool m_routingDomainHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace AgentRegistryControl
183} // 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