AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DirectoryConnectSettings.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/ds/DirectoryService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DirectoryService {
21namespace Model {
22
30 public:
31 AWS_DIRECTORYSERVICE_API DirectoryConnectSettings() = default;
32 AWS_DIRECTORYSERVICE_API DirectoryConnectSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetVpcId() const { return m_vpcId; }
41 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
42 template <typename VpcIdT = Aws::String>
43 void SetVpcId(VpcIdT&& value) {
44 m_vpcIdHasBeenSet = true;
45 m_vpcId = std::forward<VpcIdT>(value);
46 }
47 template <typename VpcIdT = Aws::String>
49 SetVpcId(std::forward<VpcIdT>(value));
50 return *this;
51 }
53
55
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>>
68 SetSubnetIds(std::forward<SubnetIdsT>(value));
69 return *this;
70 }
71 template <typename SubnetIdsT = Aws::String>
73 m_subnetIdsHasBeenSet = true;
74 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Vector<Aws::String>& GetCustomerDnsIps() const { return m_customerDnsIps; }
85 inline bool CustomerDnsIpsHasBeenSet() const { return m_customerDnsIpsHasBeenSet; }
86 template <typename CustomerDnsIpsT = Aws::Vector<Aws::String>>
87 void SetCustomerDnsIps(CustomerDnsIpsT&& value) {
88 m_customerDnsIpsHasBeenSet = true;
89 m_customerDnsIps = std::forward<CustomerDnsIpsT>(value);
90 }
91 template <typename CustomerDnsIpsT = Aws::Vector<Aws::String>>
92 DirectoryConnectSettings& WithCustomerDnsIps(CustomerDnsIpsT&& value) {
93 SetCustomerDnsIps(std::forward<CustomerDnsIpsT>(value));
94 return *this;
95 }
96 template <typename CustomerDnsIpsT = Aws::String>
97 DirectoryConnectSettings& AddCustomerDnsIps(CustomerDnsIpsT&& value) {
98 m_customerDnsIpsHasBeenSet = true;
99 m_customerDnsIps.emplace_back(std::forward<CustomerDnsIpsT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::Vector<Aws::String>& GetCustomerDnsIpsV6() const { return m_customerDnsIpsV6; }
110 inline bool CustomerDnsIpsV6HasBeenSet() const { return m_customerDnsIpsV6HasBeenSet; }
111 template <typename CustomerDnsIpsV6T = Aws::Vector<Aws::String>>
112 void SetCustomerDnsIpsV6(CustomerDnsIpsV6T&& value) {
113 m_customerDnsIpsV6HasBeenSet = true;
114 m_customerDnsIpsV6 = std::forward<CustomerDnsIpsV6T>(value);
115 }
116 template <typename CustomerDnsIpsV6T = Aws::Vector<Aws::String>>
117 DirectoryConnectSettings& WithCustomerDnsIpsV6(CustomerDnsIpsV6T&& value) {
118 SetCustomerDnsIpsV6(std::forward<CustomerDnsIpsV6T>(value));
119 return *this;
120 }
121 template <typename CustomerDnsIpsV6T = Aws::String>
122 DirectoryConnectSettings& AddCustomerDnsIpsV6(CustomerDnsIpsV6T&& value) {
123 m_customerDnsIpsV6HasBeenSet = true;
124 m_customerDnsIpsV6.emplace_back(std::forward<CustomerDnsIpsV6T>(value));
125 return *this;
126 }
128
130
136 inline const Aws::String& GetCustomerUserName() const { return m_customerUserName; }
137 inline bool CustomerUserNameHasBeenSet() const { return m_customerUserNameHasBeenSet; }
138 template <typename CustomerUserNameT = Aws::String>
139 void SetCustomerUserName(CustomerUserNameT&& value) {
140 m_customerUserNameHasBeenSet = true;
141 m_customerUserName = std::forward<CustomerUserNameT>(value);
142 }
143 template <typename CustomerUserNameT = Aws::String>
144 DirectoryConnectSettings& WithCustomerUserName(CustomerUserNameT&& value) {
145 SetCustomerUserName(std::forward<CustomerUserNameT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_vpcId;
151
152 Aws::Vector<Aws::String> m_subnetIds;
153
154 Aws::Vector<Aws::String> m_customerDnsIps;
155
156 Aws::Vector<Aws::String> m_customerDnsIpsV6;
157
158 Aws::String m_customerUserName;
159 bool m_vpcIdHasBeenSet = false;
160 bool m_subnetIdsHasBeenSet = false;
161 bool m_customerDnsIpsHasBeenSet = false;
162 bool m_customerDnsIpsV6HasBeenSet = false;
163 bool m_customerUserNameHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace DirectoryService
168} // namespace Aws
DirectoryConnectSettings & WithCustomerUserName(CustomerUserNameT &&value)
DirectoryConnectSettings & WithSubnetIds(SubnetIdsT &&value)
AWS_DIRECTORYSERVICE_API DirectoryConnectSettings()=default
DirectoryConnectSettings & WithCustomerDnsIpsV6(CustomerDnsIpsV6T &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DIRECTORYSERVICE_API DirectoryConnectSettings(Aws::Utils::Json::JsonView jsonValue)
DirectoryConnectSettings & AddSubnetIds(SubnetIdsT &&value)
DirectoryConnectSettings & AddCustomerDnsIpsV6(CustomerDnsIpsV6T &&value)
DirectoryConnectSettings & WithVpcId(VpcIdT &&value)
DirectoryConnectSettings & AddCustomerDnsIps(CustomerDnsIpsT &&value)
DirectoryConnectSettings & WithCustomerDnsIps(CustomerDnsIpsT &&value)
const Aws::Vector< Aws::String > & GetCustomerDnsIps() const
AWS_DIRECTORYSERVICE_API DirectoryConnectSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetCustomerDnsIpsV6() 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