AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AvailabilityZoneInfo.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/model/ZoneStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo();
37 AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAvailabilityZoneName() const{ return m_availabilityZoneName; }
47 inline bool AvailabilityZoneNameHasBeenSet() const { return m_availabilityZoneNameHasBeenSet; }
48 inline void SetAvailabilityZoneName(const Aws::String& value) { m_availabilityZoneNameHasBeenSet = true; m_availabilityZoneName = value; }
49 inline void SetAvailabilityZoneName(Aws::String&& value) { m_availabilityZoneNameHasBeenSet = true; m_availabilityZoneName = std::move(value); }
50 inline void SetAvailabilityZoneName(const char* value) { m_availabilityZoneNameHasBeenSet = true; m_availabilityZoneName.assign(value); }
52 inline AvailabilityZoneInfo& WithAvailabilityZoneName(Aws::String&& value) { SetAvailabilityZoneName(std::move(value)); return *this;}
53 inline AvailabilityZoneInfo& WithAvailabilityZoneName(const char* value) { SetAvailabilityZoneName(value); return *this;}
55
57
65 inline const ZoneStatus& GetZoneStatus() const{ return m_zoneStatus; }
66 inline bool ZoneStatusHasBeenSet() const { return m_zoneStatusHasBeenSet; }
67 inline void SetZoneStatus(const ZoneStatus& value) { m_zoneStatusHasBeenSet = true; m_zoneStatus = value; }
68 inline void SetZoneStatus(ZoneStatus&& value) { m_zoneStatusHasBeenSet = true; m_zoneStatus = std::move(value); }
69 inline AvailabilityZoneInfo& WithZoneStatus(const ZoneStatus& value) { SetZoneStatus(value); return *this;}
70 inline AvailabilityZoneInfo& WithZoneStatus(ZoneStatus&& value) { SetZoneStatus(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetConfiguredDataNodeCount() const{ return m_configuredDataNodeCount; }
78 inline bool ConfiguredDataNodeCountHasBeenSet() const { return m_configuredDataNodeCountHasBeenSet; }
79 inline void SetConfiguredDataNodeCount(const Aws::String& value) { m_configuredDataNodeCountHasBeenSet = true; m_configuredDataNodeCount = value; }
80 inline void SetConfiguredDataNodeCount(Aws::String&& value) { m_configuredDataNodeCountHasBeenSet = true; m_configuredDataNodeCount = std::move(value); }
81 inline void SetConfiguredDataNodeCount(const char* value) { m_configuredDataNodeCountHasBeenSet = true; m_configuredDataNodeCount.assign(value); }
84 inline AvailabilityZoneInfo& WithConfiguredDataNodeCount(const char* value) { SetConfiguredDataNodeCount(value); return *this;}
86
88
91 inline const Aws::String& GetAvailableDataNodeCount() const{ return m_availableDataNodeCount; }
92 inline bool AvailableDataNodeCountHasBeenSet() const { return m_availableDataNodeCountHasBeenSet; }
93 inline void SetAvailableDataNodeCount(const Aws::String& value) { m_availableDataNodeCountHasBeenSet = true; m_availableDataNodeCount = value; }
94 inline void SetAvailableDataNodeCount(Aws::String&& value) { m_availableDataNodeCountHasBeenSet = true; m_availableDataNodeCount = std::move(value); }
95 inline void SetAvailableDataNodeCount(const char* value) { m_availableDataNodeCountHasBeenSet = true; m_availableDataNodeCount.assign(value); }
97 inline AvailabilityZoneInfo& WithAvailableDataNodeCount(Aws::String&& value) { SetAvailableDataNodeCount(std::move(value)); return *this;}
98 inline AvailabilityZoneInfo& WithAvailableDataNodeCount(const char* value) { SetAvailableDataNodeCount(value); return *this;}
100
102
105 inline const Aws::String& GetTotalShards() const{ return m_totalShards; }
106 inline bool TotalShardsHasBeenSet() const { return m_totalShardsHasBeenSet; }
107 inline void SetTotalShards(const Aws::String& value) { m_totalShardsHasBeenSet = true; m_totalShards = value; }
108 inline void SetTotalShards(Aws::String&& value) { m_totalShardsHasBeenSet = true; m_totalShards = std::move(value); }
109 inline void SetTotalShards(const char* value) { m_totalShardsHasBeenSet = true; m_totalShards.assign(value); }
110 inline AvailabilityZoneInfo& WithTotalShards(const Aws::String& value) { SetTotalShards(value); return *this;}
111 inline AvailabilityZoneInfo& WithTotalShards(Aws::String&& value) { SetTotalShards(std::move(value)); return *this;}
112 inline AvailabilityZoneInfo& WithTotalShards(const char* value) { SetTotalShards(value); return *this;}
114
116
120 inline const Aws::String& GetTotalUnAssignedShards() const{ return m_totalUnAssignedShards; }
121 inline bool TotalUnAssignedShardsHasBeenSet() const { return m_totalUnAssignedShardsHasBeenSet; }
122 inline void SetTotalUnAssignedShards(const Aws::String& value) { m_totalUnAssignedShardsHasBeenSet = true; m_totalUnAssignedShards = value; }
123 inline void SetTotalUnAssignedShards(Aws::String&& value) { m_totalUnAssignedShardsHasBeenSet = true; m_totalUnAssignedShards = std::move(value); }
124 inline void SetTotalUnAssignedShards(const char* value) { m_totalUnAssignedShardsHasBeenSet = true; m_totalUnAssignedShards.assign(value); }
126 inline AvailabilityZoneInfo& WithTotalUnAssignedShards(Aws::String&& value) { SetTotalUnAssignedShards(std::move(value)); return *this;}
127 inline AvailabilityZoneInfo& WithTotalUnAssignedShards(const char* value) { SetTotalUnAssignedShards(value); return *this;}
129 private:
130
131 Aws::String m_availabilityZoneName;
132 bool m_availabilityZoneNameHasBeenSet = false;
133
134 ZoneStatus m_zoneStatus;
135 bool m_zoneStatusHasBeenSet = false;
136
137 Aws::String m_configuredDataNodeCount;
138 bool m_configuredDataNodeCountHasBeenSet = false;
139
140 Aws::String m_availableDataNodeCount;
141 bool m_availableDataNodeCountHasBeenSet = false;
142
143 Aws::String m_totalShards;
144 bool m_totalShardsHasBeenSet = false;
145
146 Aws::String m_totalUnAssignedShards;
147 bool m_totalUnAssignedShardsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace OpenSearchService
152} // namespace Aws
AvailabilityZoneInfo & WithAvailabilityZoneName(const char *value)
AvailabilityZoneInfo & WithConfiguredDataNodeCount(Aws::String &&value)
AvailabilityZoneInfo & WithTotalUnAssignedShards(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API AvailabilityZoneInfo(Aws::Utils::Json::JsonView jsonValue)
AvailabilityZoneInfo & WithTotalUnAssignedShards(const char *value)
AvailabilityZoneInfo & WithAvailableDataNodeCount(const char *value)
AvailabilityZoneInfo & WithAvailabilityZoneName(Aws::String &&value)
AvailabilityZoneInfo & WithTotalShards(Aws::String &&value)
AvailabilityZoneInfo & WithZoneStatus(const ZoneStatus &value)
AvailabilityZoneInfo & WithConfiguredDataNodeCount(const Aws::String &value)
AvailabilityZoneInfo & WithZoneStatus(ZoneStatus &&value)
AvailabilityZoneInfo & WithTotalShards(const char *value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AvailabilityZoneInfo & WithTotalShards(const Aws::String &value)
AvailabilityZoneInfo & WithAvailableDataNodeCount(const Aws::String &value)
AvailabilityZoneInfo & WithAvailableDataNodeCount(Aws::String &&value)
AvailabilityZoneInfo & WithTotalUnAssignedShards(Aws::String &&value)
AvailabilityZoneInfo & WithConfiguredDataNodeCount(const char *value)
AvailabilityZoneInfo & WithAvailabilityZoneName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue