AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DirectoryConnectSettings.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DirectoryService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DIRECTORYSERVICE_API DirectoryConnectSettings() = default;
37 AWS_DIRECTORYSERVICE_API DirectoryConnectSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetVpcId() const { return m_vpcId; }
47 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
48 template<typename VpcIdT = Aws::String>
49 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
50 template<typename VpcIdT = Aws::String>
51 DirectoryConnectSettings& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
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) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
63 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
64 DirectoryConnectSettings& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
65 template<typename SubnetIdsT = Aws::String>
66 DirectoryConnectSettings& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
68
70
74 inline const Aws::Vector<Aws::String>& GetCustomerDnsIps() const { return m_customerDnsIps; }
75 inline bool CustomerDnsIpsHasBeenSet() const { return m_customerDnsIpsHasBeenSet; }
76 template<typename CustomerDnsIpsT = Aws::Vector<Aws::String>>
77 void SetCustomerDnsIps(CustomerDnsIpsT&& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps = std::forward<CustomerDnsIpsT>(value); }
78 template<typename CustomerDnsIpsT = Aws::Vector<Aws::String>>
79 DirectoryConnectSettings& WithCustomerDnsIps(CustomerDnsIpsT&& value) { SetCustomerDnsIps(std::forward<CustomerDnsIpsT>(value)); return *this;}
80 template<typename CustomerDnsIpsT = Aws::String>
81 DirectoryConnectSettings& AddCustomerDnsIps(CustomerDnsIpsT&& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps.emplace_back(std::forward<CustomerDnsIpsT>(value)); return *this; }
83
85
91 inline const Aws::String& GetCustomerUserName() const { return m_customerUserName; }
92 inline bool CustomerUserNameHasBeenSet() const { return m_customerUserNameHasBeenSet; }
93 template<typename CustomerUserNameT = Aws::String>
94 void SetCustomerUserName(CustomerUserNameT&& value) { m_customerUserNameHasBeenSet = true; m_customerUserName = std::forward<CustomerUserNameT>(value); }
95 template<typename CustomerUserNameT = Aws::String>
96 DirectoryConnectSettings& WithCustomerUserName(CustomerUserNameT&& value) { SetCustomerUserName(std::forward<CustomerUserNameT>(value)); return *this;}
98 private:
99
100 Aws::String m_vpcId;
101 bool m_vpcIdHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_subnetIds;
104 bool m_subnetIdsHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_customerDnsIps;
107 bool m_customerDnsIpsHasBeenSet = false;
108
109 Aws::String m_customerUserName;
110 bool m_customerUserNameHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace DirectoryService
115} // namespace Aws
DirectoryConnectSettings & WithCustomerUserName(CustomerUserNameT &&value)
DirectoryConnectSettings & WithSubnetIds(SubnetIdsT &&value)
AWS_DIRECTORYSERVICE_API DirectoryConnectSettings()=default
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 & 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue