AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SubnetGroup.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/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/NetworkType.h>
12#include <aws/memorydb/model/Subnet.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace MemoryDB {
23namespace Model {
24
35 public:
36 AWS_MEMORYDB_API SubnetGroup() = default;
37 AWS_MEMORYDB_API SubnetGroup(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_MEMORYDB_API SubnetGroup& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 SubnetGroup& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 SubnetGroup& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetVpcId() const { return m_vpcId; }
82 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
83 template <typename VpcIdT = Aws::String>
84 void SetVpcId(VpcIdT&& value) {
85 m_vpcIdHasBeenSet = true;
86 m_vpcId = std::forward<VpcIdT>(value);
87 }
88 template <typename VpcIdT = Aws::String>
89 SubnetGroup& WithVpcId(VpcIdT&& value) {
90 SetVpcId(std::forward<VpcIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
100 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
101 template <typename SubnetsT = Aws::Vector<Subnet>>
102 void SetSubnets(SubnetsT&& value) {
103 m_subnetsHasBeenSet = true;
104 m_subnets = std::forward<SubnetsT>(value);
105 }
106 template <typename SubnetsT = Aws::Vector<Subnet>>
107 SubnetGroup& WithSubnets(SubnetsT&& value) {
108 SetSubnets(std::forward<SubnetsT>(value));
109 return *this;
110 }
111 template <typename SubnetsT = Subnet>
112 SubnetGroup& AddSubnets(SubnetsT&& value) {
113 m_subnetsHasBeenSet = true;
114 m_subnets.emplace_back(std::forward<SubnetsT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetARN() const { return m_aRN; }
124 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
125 template <typename ARNT = Aws::String>
126 void SetARN(ARNT&& value) {
127 m_aRNHasBeenSet = true;
128 m_aRN = std::forward<ARNT>(value);
129 }
130 template <typename ARNT = Aws::String>
131 SubnetGroup& WithARN(ARNT&& value) {
132 SetARN(std::forward<ARNT>(value));
133 return *this;
134 }
136
138
143 inline const Aws::Vector<NetworkType>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
144 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
145 template <typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
146 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
147 m_supportedNetworkTypesHasBeenSet = true;
148 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
149 }
150 template <typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
151 SubnetGroup& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
152 SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value));
153 return *this;
154 }
156 m_supportedNetworkTypesHasBeenSet = true;
157 m_supportedNetworkTypes.push_back(value);
158 return *this;
159 }
161 private:
162 Aws::String m_name;
163
164 Aws::String m_description;
165
166 Aws::String m_vpcId;
167
168 Aws::Vector<Subnet> m_subnets;
169
170 Aws::String m_aRN;
171
172 Aws::Vector<NetworkType> m_supportedNetworkTypes;
173 bool m_nameHasBeenSet = false;
174 bool m_descriptionHasBeenSet = false;
175 bool m_vpcIdHasBeenSet = false;
176 bool m_subnetsHasBeenSet = false;
177 bool m_aRNHasBeenSet = false;
178 bool m_supportedNetworkTypesHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace MemoryDB
183} // namespace Aws
const Aws::String & GetName() const
Definition SubnetGroup.h:45
AWS_MEMORYDB_API SubnetGroup(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SubnetGroup & WithVpcId(VpcIdT &&value)
Definition SubnetGroup.h:89
AWS_MEMORYDB_API SubnetGroup & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SubnetGroup & AddSubnets(SubnetsT &&value)
SubnetGroup & WithDescription(DescriptionT &&value)
Definition SubnetGroup.h:71
void SetSubnets(SubnetsT &&value)
const Aws::String & GetARN() const
SubnetGroup & WithName(NameT &&value)
Definition SubnetGroup.h:53
SubnetGroup & AddSupportedNetworkTypes(NetworkType value)
SubnetGroup & WithSubnets(SubnetsT &&value)
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetVpcId(VpcIdT &&value)
Definition SubnetGroup.h:84
SubnetGroup & WithARN(ARNT &&value)
const Aws::String & GetDescription() const
Definition SubnetGroup.h:63
const Aws::String & GetVpcId() const
Definition SubnetGroup.h:81
const Aws::Vector< Subnet > & GetSubnets() const
Definition SubnetGroup.h:99
SubnetGroup & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
void SetDescription(DescriptionT &&value)
Definition SubnetGroup.h:66
AWS_MEMORYDB_API SubnetGroup()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector