AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Subnet.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/AvailabilityZone.h>
12#include <aws/memorydb/model/NetworkType.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
32class Subnet {
33 public:
34 AWS_MEMORYDB_API Subnet() = default;
35 AWS_MEMORYDB_API Subnet(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MEMORYDB_API Subnet& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline const Aws::String& GetIdentifier() const { return m_identifier; }
44 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
45 template <typename IdentifierT = Aws::String>
46 void SetIdentifier(IdentifierT&& value) {
47 m_identifierHasBeenSet = true;
48 m_identifier = std::forward<IdentifierT>(value);
49 }
50 template <typename IdentifierT = Aws::String>
51 Subnet& WithIdentifier(IdentifierT&& value) {
52 SetIdentifier(std::forward<IdentifierT>(value));
53 return *this;
54 }
56
58
61 inline const AvailabilityZone& GetAvailabilityZone() const { return m_availabilityZone; }
62 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
63 template <typename AvailabilityZoneT = AvailabilityZone>
64 void SetAvailabilityZone(AvailabilityZoneT&& value) {
65 m_availabilityZoneHasBeenSet = true;
66 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
67 }
68 template <typename AvailabilityZoneT = AvailabilityZone>
69 Subnet& WithAvailabilityZone(AvailabilityZoneT&& value) {
70 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::Vector<NetworkType>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
82 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
83 template <typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
84 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
85 m_supportedNetworkTypesHasBeenSet = true;
86 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
87 }
88 template <typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
89 Subnet& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
90 SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value));
91 return *this;
92 }
94 m_supportedNetworkTypesHasBeenSet = true;
95 m_supportedNetworkTypes.push_back(value);
96 return *this;
97 }
99 private:
100 Aws::String m_identifier;
101
102 AvailabilityZone m_availabilityZone;
103
104 Aws::Vector<NetworkType> m_supportedNetworkTypes;
105 bool m_identifierHasBeenSet = false;
106 bool m_availabilityZoneHasBeenSet = false;
107 bool m_supportedNetworkTypesHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace MemoryDB
112} // namespace Aws
AWS_MEMORYDB_API Subnet()=default
Subnet & AddSupportedNetworkTypes(NetworkType value)
Definition Subnet.h:93
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Subnet & WithIdentifier(IdentifierT &&value)
Definition Subnet.h:51
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
Definition Subnet.h:81
bool SupportedNetworkTypesHasBeenSet() const
Definition Subnet.h:82
bool AvailabilityZoneHasBeenSet() const
Definition Subnet.h:62
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Subnet.h:64
AWS_MEMORYDB_API Subnet & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Subnet & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
Definition Subnet.h:89
void SetIdentifier(IdentifierT &&value)
Definition Subnet.h:46
bool IdentifierHasBeenSet() const
Definition Subnet.h:44
AWS_MEMORYDB_API Subnet(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetIdentifier() const
Definition Subnet.h:43
const AvailabilityZone & GetAvailabilityZone() const
Definition Subnet.h:61
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
Definition Subnet.h:84
Subnet & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Subnet.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector