AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
VpcConfiguration.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/finspace/model/IPAddressType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace finspace
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_FINSPACE_API VpcConfiguration() = default;
38 AWS_FINSPACE_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetVpcId() const { return m_vpcId; }
48 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
49 template<typename VpcIdT = Aws::String>
50 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
51 template<typename VpcIdT = Aws::String>
52 VpcConfiguration& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
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) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
64 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
65 VpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
66 template<typename SecurityGroupIdsT = Aws::String>
67 VpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
69
71
75 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
76 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
77 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
78 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
79 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
80 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
81 template<typename SubnetIdsT = Aws::String>
82 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
84
86
91 inline IPAddressType GetIpAddressType() const { return m_ipAddressType; }
92 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
93 inline void SetIpAddressType(IPAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
94 inline VpcConfiguration& WithIpAddressType(IPAddressType value) { SetIpAddressType(value); return *this;}
96 private:
97
98 Aws::String m_vpcId;
99 bool m_vpcIdHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_securityGroupIds;
102 bool m_securityGroupIdsHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_subnetIds;
105 bool m_subnetIdsHasBeenSet = false;
106
107 IPAddressType m_ipAddressType{IPAddressType::NOT_SET};
108 bool m_ipAddressTypeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace finspace
113} // 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