AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
VpcConfigOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/synthetics/Synthetics_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Synthetics {
21namespace Model {
22
33 public:
34 AWS_SYNTHETICS_API VpcConfigOutput() = default;
35 AWS_SYNTHETICS_API VpcConfigOutput(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetVpcId() const { return m_vpcId; }
44 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
45 template <typename VpcIdT = Aws::String>
46 void SetVpcId(VpcIdT&& value) {
47 m_vpcIdHasBeenSet = true;
48 m_vpcId = std::forward<VpcIdT>(value);
49 }
50 template <typename VpcIdT = Aws::String>
51 VpcConfigOutput& WithVpcId(VpcIdT&& value) {
52 SetVpcId(std::forward<VpcIdT>(value));
53 return *this;
54 }
56
58
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 VpcConfigOutput& WithSubnetIds(SubnetIdsT&& value) {
70 SetSubnetIds(std::forward<SubnetIdsT>(value));
71 return *this;
72 }
73 template <typename SubnetIdsT = Aws::String>
74 VpcConfigOutput& AddSubnetIds(SubnetIdsT&& value) {
75 m_subnetIdsHasBeenSet = true;
76 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
86 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
87 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
88 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
89 m_securityGroupIdsHasBeenSet = true;
90 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
91 }
92 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
93 VpcConfigOutput& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
94 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
95 return *this;
96 }
97 template <typename SecurityGroupIdsT = Aws::String>
98 VpcConfigOutput& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
99 m_securityGroupIdsHasBeenSet = true;
100 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
101 return *this;
102 }
104
106
110 inline bool GetIpv6AllowedForDualStack() const { return m_ipv6AllowedForDualStack; }
111 inline bool Ipv6AllowedForDualStackHasBeenSet() const { return m_ipv6AllowedForDualStackHasBeenSet; }
112 inline void SetIpv6AllowedForDualStack(bool value) {
113 m_ipv6AllowedForDualStackHasBeenSet = true;
114 m_ipv6AllowedForDualStack = value;
115 }
118 return *this;
119 }
121 private:
122 Aws::String m_vpcId;
123
124 Aws::Vector<Aws::String> m_subnetIds;
125
126 Aws::Vector<Aws::String> m_securityGroupIds;
127
128 bool m_ipv6AllowedForDualStack{false};
129 bool m_vpcIdHasBeenSet = false;
130 bool m_subnetIdsHasBeenSet = false;
131 bool m_securityGroupIdsHasBeenSet = false;
132 bool m_ipv6AllowedForDualStackHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace Synthetics
137} // namespace Aws
AWS_SYNTHETICS_API VpcConfigOutput()=default
VpcConfigOutput & AddSubnetIds(SubnetIdsT &&value)
AWS_SYNTHETICS_API VpcConfigOutput(Aws::Utils::Json::JsonView jsonValue)
VpcConfigOutput & WithIpv6AllowedForDualStack(bool value)
VpcConfigOutput & WithSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfigOutput & WithVpcId(VpcIdT &&value)
VpcConfigOutput & WithSubnetIds(SubnetIdsT &&value)
const Aws::String & GetVpcId() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_SYNTHETICS_API VpcConfigOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConfigOutput & AddSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue