AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcConfigOutput.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Synthetics
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_SYNTHETICS_API VpcConfigOutput() = default;
40 AWS_SYNTHETICS_API VpcConfigOutput(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetVpcId() const { return m_vpcId; }
50 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
51 template<typename VpcIdT = Aws::String>
52 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
53 template<typename VpcIdT = Aws::String>
54 VpcConfigOutput& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
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) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
65 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
66 VpcConfigOutput& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
67 template<typename SubnetIdsT = Aws::String>
68 VpcConfigOutput& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
70
72
75 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
76 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
77 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
78 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
79 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
80 VpcConfigOutput& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
81 template<typename SecurityGroupIdsT = Aws::String>
82 VpcConfigOutput& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
84
86
90 inline bool GetIpv6AllowedForDualStack() const { return m_ipv6AllowedForDualStack; }
91 inline bool Ipv6AllowedForDualStackHasBeenSet() const { return m_ipv6AllowedForDualStackHasBeenSet; }
92 inline void SetIpv6AllowedForDualStack(bool value) { m_ipv6AllowedForDualStackHasBeenSet = true; m_ipv6AllowedForDualStack = value; }
93 inline VpcConfigOutput& WithIpv6AllowedForDualStack(bool value) { SetIpv6AllowedForDualStack(value); return *this;}
95 private:
96
97 Aws::String m_vpcId;
98 bool m_vpcIdHasBeenSet = false;
99
100 Aws::Vector<Aws::String> m_subnetIds;
101 bool m_subnetIdsHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_securityGroupIds;
104 bool m_securityGroupIdsHasBeenSet = false;
105
106 bool m_ipv6AllowedForDualStack{false};
107 bool m_ipv6AllowedForDualStackHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Synthetics
112} // 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