AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
VpcConfiguration.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/finspace/Finspace_EXPORTS.h>
10#include <aws/finspace/model/IPAddressType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace finspace {
22namespace Model {
23
31 public:
32 AWS_FINSPACE_API VpcConfiguration() = default;
33 AWS_FINSPACE_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetVpcId() const { return m_vpcId; }
42 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
43 template <typename VpcIdT = Aws::String>
44 void SetVpcId(VpcIdT&& value) {
45 m_vpcIdHasBeenSet = true;
46 m_vpcId = std::forward<VpcIdT>(value);
47 }
48 template <typename VpcIdT = Aws::String>
49 VpcConfiguration& WithVpcId(VpcIdT&& value) {
50 SetVpcId(std::forward<VpcIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
61 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
62 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
63 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
64 m_securityGroupIdsHasBeenSet = true;
65 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
66 }
67 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
68 VpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
69 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
70 return *this;
71 }
72 template <typename SecurityGroupIdsT = Aws::String>
73 VpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
74 m_securityGroupIdsHasBeenSet = true;
75 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
86 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
87 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
88 void SetSubnetIds(SubnetIdsT&& value) {
89 m_subnetIdsHasBeenSet = true;
90 m_subnetIds = std::forward<SubnetIdsT>(value);
91 }
92 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
93 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) {
94 SetSubnetIds(std::forward<SubnetIdsT>(value));
95 return *this;
96 }
97 template <typename SubnetIdsT = Aws::String>
98 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) {
99 m_subnetIdsHasBeenSet = true;
100 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
101 return *this;
102 }
104
106
111 inline IPAddressType GetIpAddressType() const { return m_ipAddressType; }
112 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
113 inline void SetIpAddressType(IPAddressType value) {
114 m_ipAddressTypeHasBeenSet = true;
115 m_ipAddressType = value;
116 }
118 SetIpAddressType(value);
119 return *this;
120 }
122 private:
123 Aws::String m_vpcId;
124 bool m_vpcIdHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_securityGroupIds;
127 bool m_securityGroupIdsHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_subnetIds;
130 bool m_subnetIdsHasBeenSet = false;
131
132 IPAddressType m_ipAddressType{IPAddressType::NOT_SET};
133 bool m_ipAddressTypeHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace finspace
138} // namespace Aws
AWS_FINSPACE_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcConfiguration & WithSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VpcConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_FINSPACE_API VpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetVpcId() const
VpcConfiguration & WithVpcId(VpcIdT &&value)
VpcConfiguration & AddSubnetIds(SubnetIdsT &&value)
void SetIpAddressType(IPAddressType value)
AWS_FINSPACE_API VpcConfiguration()=default
VpcConfiguration & WithIpAddressType(IPAddressType value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue