AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
VpcPropertiesInput.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/datazone/DataZone_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
30 public:
31 AWS_DATAZONE_API VpcPropertiesInput() = default;
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
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 VpcPropertiesInput& WithVpcId(VpcIdT&& value) {
50 SetVpcId(std::forward<VpcIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
61 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
62 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
63 void SetSubnetIds(SubnetIdsT&& value) {
64 m_subnetIdsHasBeenSet = true;
65 m_subnetIds = std::forward<SubnetIdsT>(value);
66 }
67 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
68 VpcPropertiesInput& WithSubnetIds(SubnetIdsT&& value) {
69 SetSubnetIds(std::forward<SubnetIdsT>(value));
70 return *this;
71 }
72 template <typename SubnetIdsT = Aws::String>
73 VpcPropertiesInput& AddSubnetIds(SubnetIdsT&& value) {
74 m_subnetIdsHasBeenSet = true;
75 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
86 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
87 template <typename SecurityGroupIdT = Aws::String>
88 void SetSecurityGroupId(SecurityGroupIdT&& value) {
89 m_securityGroupIdHasBeenSet = true;
90 m_securityGroupId = std::forward<SecurityGroupIdT>(value);
91 }
92 template <typename SecurityGroupIdT = Aws::String>
93 VpcPropertiesInput& WithSecurityGroupId(SecurityGroupIdT&& value) {
94 SetSecurityGroupId(std::forward<SecurityGroupIdT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_vpcId;
100
101 Aws::Vector<Aws::String> m_subnetIds;
102
103 Aws::String m_securityGroupId;
104 bool m_vpcIdHasBeenSet = false;
105 bool m_subnetIdsHasBeenSet = false;
106 bool m_securityGroupIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace DataZone
111} // namespace Aws
AWS_DATAZONE_API VpcPropertiesInput()=default
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcPropertiesInput & AddSubnetIds(SubnetIdsT &&value)
const Aws::String & GetSecurityGroupId() const
void SetSecurityGroupId(SecurityGroupIdT &&value)
AWS_DATAZONE_API VpcPropertiesInput(Aws::Utils::Json::JsonView jsonValue)
VpcPropertiesInput & WithVpcId(VpcIdT &&value)
VpcPropertiesInput & WithSubnetIds(SubnetIdsT &&value)
AWS_DATAZONE_API VpcPropertiesInput & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcPropertiesInput & WithSecurityGroupId(SecurityGroupIdT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() 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