AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Node.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/Endpoint.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace MemoryDB {
22namespace Model {
23
31class Node {
32 public:
33 AWS_MEMORYDB_API Node() = default;
34 AWS_MEMORYDB_API Node(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_MEMORYDB_API Node& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 Node& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 template <typename StatusT = Aws::String>
65 void SetStatus(StatusT&& value) {
66 m_statusHasBeenSet = true;
67 m_status = std::forward<StatusT>(value);
68 }
69 template <typename StatusT = Aws::String>
70 Node& WithStatus(StatusT&& value) {
71 SetStatus(std::forward<StatusT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
81 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
82 template <typename AvailabilityZoneT = Aws::String>
83 void SetAvailabilityZone(AvailabilityZoneT&& value) {
84 m_availabilityZoneHasBeenSet = true;
85 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
86 }
87 template <typename AvailabilityZoneT = Aws::String>
88 Node& WithAvailabilityZone(AvailabilityZoneT&& value) {
89 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
99 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
100 template <typename CreateTimeT = Aws::Utils::DateTime>
101 void SetCreateTime(CreateTimeT&& value) {
102 m_createTimeHasBeenSet = true;
103 m_createTime = std::forward<CreateTimeT>(value);
104 }
105 template <typename CreateTimeT = Aws::Utils::DateTime>
106 Node& WithCreateTime(CreateTimeT&& value) {
107 SetCreateTime(std::forward<CreateTimeT>(value));
108 return *this;
109 }
111
113
116 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
117 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
118 template <typename EndpointT = Endpoint>
119 void SetEndpoint(EndpointT&& value) {
120 m_endpointHasBeenSet = true;
121 m_endpoint = std::forward<EndpointT>(value);
122 }
123 template <typename EndpointT = Endpoint>
124 Node& WithEndpoint(EndpointT&& value) {
125 SetEndpoint(std::forward<EndpointT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_name;
131
132 Aws::String m_status;
133
134 Aws::String m_availabilityZone;
135
136 Aws::Utils::DateTime m_createTime{};
137
138 Endpoint m_endpoint;
139 bool m_nameHasBeenSet = false;
140 bool m_statusHasBeenSet = false;
141 bool m_availabilityZoneHasBeenSet = false;
142 bool m_createTimeHasBeenSet = false;
143 bool m_endpointHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace MemoryDB
148} // namespace Aws
const Aws::Utils::DateTime & GetCreateTime() const
Definition Node.h:98
bool NameHasBeenSet() const
Definition Node.h:45
bool CreateTimeHasBeenSet() const
Definition Node.h:99
Node & WithName(NameT &&value)
Definition Node.h:52
void SetCreateTime(CreateTimeT &&value)
Definition Node.h:101
bool StatusHasBeenSet() const
Definition Node.h:63
Node & WithEndpoint(EndpointT &&value)
Definition Node.h:124
Node & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Node.h:88
bool EndpointHasBeenSet() const
Definition Node.h:117
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetStatus() const
Definition Node.h:62
Node & WithCreateTime(CreateTimeT &&value)
Definition Node.h:106
const Aws::String & GetName() const
Definition Node.h:44
AWS_MEMORYDB_API Node(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API Node & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Endpoint & GetEndpoint() const
Definition Node.h:116
AWS_MEMORYDB_API Node()=default
bool AvailabilityZoneHasBeenSet() const
Definition Node.h:81
const Aws::String & GetAvailabilityZone() const
Definition Node.h:80
void SetName(NameT &&value)
Definition Node.h:47
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Node.h:83
void SetEndpoint(EndpointT &&value)
Definition Node.h:119
void SetStatus(StatusT &&value)
Definition Node.h:65
Node & WithStatus(StatusT &&value)
Definition Node.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String