AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
VPCDerivedInfo.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/opensearch/OpenSearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
35 public:
36 AWS_OPENSEARCHSERVICE_API VPCDerivedInfo() = default;
37 AWS_OPENSEARCHSERVICE_API VPCDerivedInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API VPCDerivedInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
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) {
50 m_vPCIdHasBeenSet = true;
51 m_vPCId = std::forward<VPCIdT>(value);
52 }
53 template <typename VPCIdT = Aws::String>
54 VPCDerivedInfo& WithVPCId(VPCIdT&& value) {
55 SetVPCId(std::forward<VPCIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
65 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
66 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
67 void SetSubnetIds(SubnetIdsT&& value) {
68 m_subnetIdsHasBeenSet = true;
69 m_subnetIds = std::forward<SubnetIdsT>(value);
70 }
71 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
72 VPCDerivedInfo& WithSubnetIds(SubnetIdsT&& value) {
73 SetSubnetIds(std::forward<SubnetIdsT>(value));
74 return *this;
75 }
76 template <typename SubnetIdsT = Aws::String>
77 VPCDerivedInfo& AddSubnetIds(SubnetIdsT&& value) {
78 m_subnetIdsHasBeenSet = true;
79 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
89 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
90 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
91 void SetAvailabilityZones(AvailabilityZonesT&& value) {
92 m_availabilityZonesHasBeenSet = true;
93 m_availabilityZones = std::forward<AvailabilityZonesT>(value);
94 }
95 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
96 VPCDerivedInfo& WithAvailabilityZones(AvailabilityZonesT&& value) {
97 SetAvailabilityZones(std::forward<AvailabilityZonesT>(value));
98 return *this;
99 }
100 template <typename AvailabilityZonesT = Aws::String>
101 VPCDerivedInfo& AddAvailabilityZones(AvailabilityZonesT&& value) {
102 m_availabilityZonesHasBeenSet = true;
103 m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
114 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
115 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
116 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
117 m_securityGroupIdsHasBeenSet = true;
118 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
119 }
120 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
121 VPCDerivedInfo& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
122 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
123 return *this;
124 }
125 template <typename SecurityGroupIdsT = Aws::String>
126 VPCDerivedInfo& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
127 m_securityGroupIdsHasBeenSet = true;
128 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_vPCId;
134
135 Aws::Vector<Aws::String> m_subnetIds;
136
137 Aws::Vector<Aws::String> m_availabilityZones;
138
139 Aws::Vector<Aws::String> m_securityGroupIds;
140 bool m_vPCIdHasBeenSet = false;
141 bool m_subnetIdsHasBeenSet = false;
142 bool m_availabilityZonesHasBeenSet = false;
143 bool m_securityGroupIdsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace OpenSearchService
148} // namespace Aws
VPCDerivedInfo & AddAvailabilityZones(AvailabilityZonesT &&value)
VPCDerivedInfo & WithVPCId(VPCIdT &&value)
VPCDerivedInfo & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_OPENSEARCHSERVICE_API VPCDerivedInfo()=default
void SetAvailabilityZones(AvailabilityZonesT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VPCDerivedInfo & AddSecurityGroupIds(SecurityGroupIdsT &&value)
VPCDerivedInfo & WithSubnetIds(SubnetIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_OPENSEARCHSERVICE_API VPCDerivedInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API VPCDerivedInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
VPCDerivedInfo & WithAvailabilityZones(AvailabilityZonesT &&value)
VPCDerivedInfo & AddSubnetIds(SubnetIdsT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() 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