AWS SDK for C++

AWS SDK for C++ Version 1.11.807

Loading...
Searching...
No Matches
NetworkConfig.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/NetworkAccessType.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 NetworkConfig() = default;
33 AWS_DATAZONE_API NetworkConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline NetworkAccessType GetNetworkAccessType() const { return m_networkAccessType; }
43 inline bool NetworkAccessTypeHasBeenSet() const { return m_networkAccessTypeHasBeenSet; }
45 m_networkAccessTypeHasBeenSet = true;
46 m_networkAccessType = value;
47 }
50 return *this;
51 }
53
55
59 inline const Aws::String& GetVpcId() const { return m_vpcId; }
60 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
61 template <typename VpcIdT = Aws::String>
62 void SetVpcId(VpcIdT&& value) {
63 m_vpcIdHasBeenSet = true;
64 m_vpcId = std::forward<VpcIdT>(value);
65 }
66 template <typename VpcIdT = Aws::String>
67 NetworkConfig& WithVpcId(VpcIdT&& value) {
68 SetVpcId(std::forward<VpcIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
79 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
80 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
81 void SetSubnetIds(SubnetIdsT&& value) {
82 m_subnetIdsHasBeenSet = true;
83 m_subnetIds = std::forward<SubnetIdsT>(value);
84 }
85 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
86 NetworkConfig& WithSubnetIds(SubnetIdsT&& value) {
87 SetSubnetIds(std::forward<SubnetIdsT>(value));
88 return *this;
89 }
90 template <typename SubnetIdsT = Aws::String>
91 NetworkConfig& AddSubnetIds(SubnetIdsT&& value) {
92 m_subnetIdsHasBeenSet = true;
93 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
104 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
105 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
106 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
107 m_securityGroupIdsHasBeenSet = true;
108 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
109 }
110 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
111 NetworkConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
112 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
113 return *this;
114 }
115 template <typename SecurityGroupIdsT = Aws::String>
116 NetworkConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
117 m_securityGroupIdsHasBeenSet = true;
118 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
119 return *this;
120 }
122 private:
124
125 Aws::String m_vpcId;
126
127 Aws::Vector<Aws::String> m_subnetIds;
128
129 Aws::Vector<Aws::String> m_securityGroupIds;
130 bool m_networkAccessTypeHasBeenSet = false;
131 bool m_vpcIdHasBeenSet = false;
132 bool m_subnetIdsHasBeenSet = false;
133 bool m_securityGroupIdsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace DataZone
138} // namespace Aws
NetworkConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
NetworkAccessType GetNetworkAccessType() const
NetworkConfig & WithSubnetIds(SubnetIdsT &&value)
AWS_DATAZONE_API NetworkConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkConfig & WithNetworkAccessType(NetworkAccessType value)
void SetNetworkAccessType(NetworkAccessType value)
const Aws::String & GetVpcId() const
NetworkConfig & AddSubnetIds(SubnetIdsT &&value)
AWS_DATAZONE_API NetworkConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API NetworkConfig()=default
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubnetIds(SubnetIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
NetworkConfig & WithVpcId(VpcIdT &&value)
NetworkConfig & 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