AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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