AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DirectoryVpcSettingsDescription.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
29 public:
30 AWS_DIRECTORYSERVICE_API DirectoryVpcSettingsDescription() = default;
33 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetVpcId() const { return m_vpcId; }
40 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
41 template <typename VpcIdT = Aws::String>
42 void SetVpcId(VpcIdT&& value) {
43 m_vpcIdHasBeenSet = true;
44 m_vpcId = std::forward<VpcIdT>(value);
45 }
46 template <typename VpcIdT = Aws::String>
48 SetVpcId(std::forward<VpcIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
58 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
59 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
60 void SetSubnetIds(SubnetIdsT&& value) {
61 m_subnetIdsHasBeenSet = true;
62 m_subnetIds = std::forward<SubnetIdsT>(value);
63 }
64 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
66 SetSubnetIds(std::forward<SubnetIdsT>(value));
67 return *this;
68 }
69 template <typename SubnetIdsT = Aws::String>
71 m_subnetIdsHasBeenSet = true;
72 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
82 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
83 template <typename SecurityGroupIdT = Aws::String>
84 void SetSecurityGroupId(SecurityGroupIdT&& value) {
85 m_securityGroupIdHasBeenSet = true;
86 m_securityGroupId = std::forward<SecurityGroupIdT>(value);
87 }
88 template <typename SecurityGroupIdT = Aws::String>
90 SetSecurityGroupId(std::forward<SecurityGroupIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
100 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
101 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
102 void SetAvailabilityZones(AvailabilityZonesT&& value) {
103 m_availabilityZonesHasBeenSet = true;
104 m_availabilityZones = std::forward<AvailabilityZonesT>(value);
105 }
106 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
108 SetAvailabilityZones(std::forward<AvailabilityZonesT>(value));
109 return *this;
110 }
111 template <typename AvailabilityZonesT = Aws::String>
113 m_availabilityZonesHasBeenSet = true;
114 m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_vpcId;
120
121 Aws::Vector<Aws::String> m_subnetIds;
122
123 Aws::String m_securityGroupId;
124
125 Aws::Vector<Aws::String> m_availabilityZones;
126 bool m_vpcIdHasBeenSet = false;
127 bool m_subnetIdsHasBeenSet = false;
128 bool m_securityGroupIdHasBeenSet = false;
129 bool m_availabilityZonesHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace DirectoryService
134} // namespace Aws
DirectoryVpcSettingsDescription & WithAvailabilityZones(AvailabilityZonesT &&value)
DirectoryVpcSettingsDescription & AddSubnetIds(SubnetIdsT &&value)
DirectoryVpcSettingsDescription & AddAvailabilityZones(AvailabilityZonesT &&value)
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DirectoryVpcSettingsDescription & WithSubnetIds(SubnetIdsT &&value)
AWS_DIRECTORYSERVICE_API DirectoryVpcSettingsDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTORYSERVICE_API DirectoryVpcSettingsDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTORYSERVICE_API DirectoryVpcSettingsDescription()=default
DirectoryVpcSettingsDescription & 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