AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VpcConfigInput.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 VpcConfigInput() = default;
35 AWS_SYNTHETICS_API VpcConfigInput(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SYNTHETICS_API VpcConfigInput& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
44 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
45 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
46 void SetSubnetIds(SubnetIdsT&& value) {
47 m_subnetIdsHasBeenSet = true;
48 m_subnetIds = std::forward<SubnetIdsT>(value);
49 }
50 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
51 VpcConfigInput& WithSubnetIds(SubnetIdsT&& value) {
52 SetSubnetIds(std::forward<SubnetIdsT>(value));
53 return *this;
54 }
55 template <typename SubnetIdsT = Aws::String>
56 VpcConfigInput& AddSubnetIds(SubnetIdsT&& value) {
57 m_subnetIdsHasBeenSet = true;
58 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
68 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
69 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
70 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
71 m_securityGroupIdsHasBeenSet = true;
72 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
73 }
74 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
75 VpcConfigInput& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
76 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
77 return *this;
78 }
79 template <typename SecurityGroupIdsT = Aws::String>
80 VpcConfigInput& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
81 m_securityGroupIdsHasBeenSet = true;
82 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
83 return *this;
84 }
86
88
92 inline bool GetIpv6AllowedForDualStack() const { return m_ipv6AllowedForDualStack; }
93 inline bool Ipv6AllowedForDualStackHasBeenSet() const { return m_ipv6AllowedForDualStackHasBeenSet; }
94 inline void SetIpv6AllowedForDualStack(bool value) {
95 m_ipv6AllowedForDualStackHasBeenSet = true;
96 m_ipv6AllowedForDualStack = value;
97 }
100 return *this;
101 }
103 private:
104 Aws::Vector<Aws::String> m_subnetIds;
105
106 Aws::Vector<Aws::String> m_securityGroupIds;
107
108 bool m_ipv6AllowedForDualStack{false};
109 bool m_subnetIdsHasBeenSet = false;
110 bool m_securityGroupIdsHasBeenSet = false;
111 bool m_ipv6AllowedForDualStackHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace Synthetics
116} // namespace Aws
VpcConfigInput & WithSecurityGroupIds(SecurityGroupIdsT &&value)
void SetSubnetIds(SubnetIdsT &&value)
AWS_SYNTHETICS_API VpcConfigInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_SYNTHETICS_API VpcConfigInput(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfigInput & WithSubnetIds(SubnetIdsT &&value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VpcConfigInput & AddSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfigInput & WithIpv6AllowedForDualStack(bool value)
VpcConfigInput & AddSubnetIds(SubnetIdsT &&value)
AWS_SYNTHETICS_API VpcConfigInput()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue