AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
VpcPropertiesOutput.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#include <aws/datazone/model/ConnectionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataZone {
22namespace Model {
23
31 public:
32 AWS_DATAZONE_API VpcPropertiesOutput() = default;
35 AWS_DATAZONE_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 VpcPropertiesOutput& WithVpcId(VpcIdT&& value) {
50 SetVpcId(std::forward<VpcIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
60 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
61 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
62 void SetSubnetIds(SubnetIdsT&& value) {
63 m_subnetIdsHasBeenSet = true;
64 m_subnetIds = std::forward<SubnetIdsT>(value);
65 }
66 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
67 VpcPropertiesOutput& WithSubnetIds(SubnetIdsT&& value) {
68 SetSubnetIds(std::forward<SubnetIdsT>(value));
69 return *this;
70 }
71 template <typename SubnetIdsT = Aws::String>
72 VpcPropertiesOutput& AddSubnetIds(SubnetIdsT&& value) {
73 m_subnetIdsHasBeenSet = true;
74 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
75 return *this;
76 }
78
80
83 inline ConnectionStatus GetStatus() const { return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(ConnectionStatus value) {
86 m_statusHasBeenSet = true;
87 m_status = value;
88 }
90 SetStatus(value);
91 return *this;
92 }
94
96
99 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
100 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
101 template <typename SecurityGroupIdT = Aws::String>
102 void SetSecurityGroupId(SecurityGroupIdT&& value) {
103 m_securityGroupIdHasBeenSet = true;
104 m_securityGroupId = std::forward<SecurityGroupIdT>(value);
105 }
106 template <typename SecurityGroupIdT = Aws::String>
107 VpcPropertiesOutput& WithSecurityGroupId(SecurityGroupIdT&& value) {
108 SetSecurityGroupId(std::forward<SecurityGroupIdT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Vector<Aws::String>& GetGlueConnectionNames() const { return m_glueConnectionNames; }
119 inline bool GlueConnectionNamesHasBeenSet() const { return m_glueConnectionNamesHasBeenSet; }
120 template <typename GlueConnectionNamesT = Aws::Vector<Aws::String>>
121 void SetGlueConnectionNames(GlueConnectionNamesT&& value) {
122 m_glueConnectionNamesHasBeenSet = true;
123 m_glueConnectionNames = std::forward<GlueConnectionNamesT>(value);
124 }
125 template <typename GlueConnectionNamesT = Aws::Vector<Aws::String>>
126 VpcPropertiesOutput& WithGlueConnectionNames(GlueConnectionNamesT&& value) {
127 SetGlueConnectionNames(std::forward<GlueConnectionNamesT>(value));
128 return *this;
129 }
130 template <typename GlueConnectionNamesT = Aws::String>
131 VpcPropertiesOutput& AddGlueConnectionNames(GlueConnectionNamesT&& value) {
132 m_glueConnectionNamesHasBeenSet = true;
133 m_glueConnectionNames.emplace_back(std::forward<GlueConnectionNamesT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_vpcId;
139
140 Aws::Vector<Aws::String> m_subnetIds;
141
143
144 Aws::String m_securityGroupId;
145
146 Aws::Vector<Aws::String> m_glueConnectionNames;
147 bool m_vpcIdHasBeenSet = false;
148 bool m_subnetIdsHasBeenSet = false;
149 bool m_statusHasBeenSet = false;
150 bool m_securityGroupIdHasBeenSet = false;
151 bool m_glueConnectionNamesHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace DataZone
156} // namespace Aws
AWS_DATAZONE_API VpcPropertiesOutput(Aws::Utils::Json::JsonView jsonValue)
VpcPropertiesOutput & WithStatus(ConnectionStatus value)
VpcPropertiesOutput & WithVpcId(VpcIdT &&value)
AWS_DATAZONE_API VpcPropertiesOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
VpcPropertiesOutput & AddGlueConnectionNames(GlueConnectionNamesT &&value)
AWS_DATAZONE_API VpcPropertiesOutput()=default
const Aws::Vector< Aws::String > & GetGlueConnectionNames() const
VpcPropertiesOutput & WithSubnetIds(SubnetIdsT &&value)
void SetGlueConnectionNames(GlueConnectionNamesT &&value)
VpcPropertiesOutput & AddSubnetIds(SubnetIdsT &&value)
void SetSecurityGroupId(SecurityGroupIdT &&value)
const Aws::String & GetSecurityGroupId() const
VpcPropertiesOutput & WithGlueConnectionNames(GlueConnectionNamesT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcPropertiesOutput & WithSecurityGroupId(SecurityGroupIdT &&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