AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AvailabilityZoneInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/ZoneStatus.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
30 public:
31 AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo() = default;
32 AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAvailabilityZoneName() const { return m_availabilityZoneName; }
41 inline bool AvailabilityZoneNameHasBeenSet() const { return m_availabilityZoneNameHasBeenSet; }
42 template <typename AvailabilityZoneNameT = Aws::String>
43 void SetAvailabilityZoneName(AvailabilityZoneNameT&& value) {
44 m_availabilityZoneNameHasBeenSet = true;
45 m_availabilityZoneName = std::forward<AvailabilityZoneNameT>(value);
46 }
47 template <typename AvailabilityZoneNameT = Aws::String>
48 AvailabilityZoneInfo& WithAvailabilityZoneName(AvailabilityZoneNameT&& value) {
49 SetAvailabilityZoneName(std::forward<AvailabilityZoneNameT>(value));
50 return *this;
51 }
53
55
63 inline ZoneStatus GetZoneStatus() const { return m_zoneStatus; }
64 inline bool ZoneStatusHasBeenSet() const { return m_zoneStatusHasBeenSet; }
65 inline void SetZoneStatus(ZoneStatus value) {
66 m_zoneStatusHasBeenSet = true;
67 m_zoneStatus = value;
68 }
70 SetZoneStatus(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetConfiguredDataNodeCount() const { return m_configuredDataNodeCount; }
80 inline bool ConfiguredDataNodeCountHasBeenSet() const { return m_configuredDataNodeCountHasBeenSet; }
81 template <typename ConfiguredDataNodeCountT = Aws::String>
82 void SetConfiguredDataNodeCount(ConfiguredDataNodeCountT&& value) {
83 m_configuredDataNodeCountHasBeenSet = true;
84 m_configuredDataNodeCount = std::forward<ConfiguredDataNodeCountT>(value);
85 }
86 template <typename ConfiguredDataNodeCountT = Aws::String>
87 AvailabilityZoneInfo& WithConfiguredDataNodeCount(ConfiguredDataNodeCountT&& value) {
88 SetConfiguredDataNodeCount(std::forward<ConfiguredDataNodeCountT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetAvailableDataNodeCount() const { return m_availableDataNodeCount; }
98 inline bool AvailableDataNodeCountHasBeenSet() const { return m_availableDataNodeCountHasBeenSet; }
99 template <typename AvailableDataNodeCountT = Aws::String>
100 void SetAvailableDataNodeCount(AvailableDataNodeCountT&& value) {
101 m_availableDataNodeCountHasBeenSet = true;
102 m_availableDataNodeCount = std::forward<AvailableDataNodeCountT>(value);
103 }
104 template <typename AvailableDataNodeCountT = Aws::String>
105 AvailabilityZoneInfo& WithAvailableDataNodeCount(AvailableDataNodeCountT&& value) {
106 SetAvailableDataNodeCount(std::forward<AvailableDataNodeCountT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTotalShards() const { return m_totalShards; }
116 inline bool TotalShardsHasBeenSet() const { return m_totalShardsHasBeenSet; }
117 template <typename TotalShardsT = Aws::String>
118 void SetTotalShards(TotalShardsT&& value) {
119 m_totalShardsHasBeenSet = true;
120 m_totalShards = std::forward<TotalShardsT>(value);
121 }
122 template <typename TotalShardsT = Aws::String>
123 AvailabilityZoneInfo& WithTotalShards(TotalShardsT&& value) {
124 SetTotalShards(std::forward<TotalShardsT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetTotalUnAssignedShards() const { return m_totalUnAssignedShards; }
135 inline bool TotalUnAssignedShardsHasBeenSet() const { return m_totalUnAssignedShardsHasBeenSet; }
136 template <typename TotalUnAssignedShardsT = Aws::String>
137 void SetTotalUnAssignedShards(TotalUnAssignedShardsT&& value) {
138 m_totalUnAssignedShardsHasBeenSet = true;
139 m_totalUnAssignedShards = std::forward<TotalUnAssignedShardsT>(value);
140 }
141 template <typename TotalUnAssignedShardsT = Aws::String>
142 AvailabilityZoneInfo& WithTotalUnAssignedShards(TotalUnAssignedShardsT&& value) {
143 SetTotalUnAssignedShards(std::forward<TotalUnAssignedShardsT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_availabilityZoneName;
149
150 ZoneStatus m_zoneStatus{ZoneStatus::NOT_SET};
151
152 Aws::String m_configuredDataNodeCount;
153
154 Aws::String m_availableDataNodeCount;
155
156 Aws::String m_totalShards;
157
158 Aws::String m_totalUnAssignedShards;
159 bool m_availabilityZoneNameHasBeenSet = false;
160 bool m_zoneStatusHasBeenSet = false;
161 bool m_configuredDataNodeCountHasBeenSet = false;
162 bool m_availableDataNodeCountHasBeenSet = false;
163 bool m_totalShardsHasBeenSet = false;
164 bool m_totalUnAssignedShardsHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace OpenSearchService
169} // namespace Aws
AvailabilityZoneInfo & WithTotalShards(TotalShardsT &&value)
AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo(Aws::Utils::Json::JsonView jsonValue)
void SetAvailableDataNodeCount(AvailableDataNodeCountT &&value)
AvailabilityZoneInfo & WithTotalUnAssignedShards(TotalUnAssignedShardsT &&value)
void SetAvailabilityZoneName(AvailabilityZoneNameT &&value)
void SetConfiguredDataNodeCount(ConfiguredDataNodeCountT &&value)
void SetTotalUnAssignedShards(TotalUnAssignedShardsT &&value)
AvailabilityZoneInfo & WithZoneStatus(ZoneStatus value)
AvailabilityZoneInfo & WithAvailabilityZoneName(AvailabilityZoneNameT &&value)
AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo()=default
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AvailabilityZoneInfo & WithAvailableDataNodeCount(AvailableDataNodeCountT &&value)
AvailabilityZoneInfo & WithConfiguredDataNodeCount(ConfiguredDataNodeCountT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue