AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
CollectionGroupSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9#include <aws/opensearchserverless/model/CollectionGroupCapacityLimits.h>
10#include <aws/opensearchserverless/model/ServerlessGeneration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchServerless {
22namespace Model {
23
30 public:
31 AWS_OPENSEARCHSERVERLESS_API CollectionGroupSummary() = default;
32 AWS_OPENSEARCHSERVERLESS_API CollectionGroupSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API CollectionGroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline int GetNumberOfCollections() const { return m_numberOfCollections; }
95 inline bool NumberOfCollectionsHasBeenSet() const { return m_numberOfCollectionsHasBeenSet; }
96 inline void SetNumberOfCollections(int value) {
97 m_numberOfCollectionsHasBeenSet = true;
98 m_numberOfCollections = value;
99 }
102 return *this;
103 }
105
107
110 inline long long GetCreatedDate() const { return m_createdDate; }
111 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
112 inline void SetCreatedDate(long long value) {
113 m_createdDateHasBeenSet = true;
114 m_createdDate = value;
115 }
116 inline CollectionGroupSummary& WithCreatedDate(long long value) {
117 SetCreatedDate(value);
118 return *this;
119 }
121
123
124 inline const CollectionGroupCapacityLimits& GetCapacityLimits() const { return m_capacityLimits; }
125 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
126 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
127 void SetCapacityLimits(CapacityLimitsT&& value) {
128 m_capacityLimitsHasBeenSet = true;
129 m_capacityLimits = std::forward<CapacityLimitsT>(value);
130 }
131 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
132 CollectionGroupSummary& WithCapacityLimits(CapacityLimitsT&& value) {
133 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
134 return *this;
135 }
137
139
142 inline ServerlessGeneration GetGeneration() const { return m_generation; }
143 inline bool GenerationHasBeenSet() const { return m_generationHasBeenSet; }
145 m_generationHasBeenSet = true;
146 m_generation = value;
147 }
149 SetGeneration(value);
150 return *this;
151 }
153 private:
154 Aws::String m_id;
155
156 Aws::String m_arn;
157
158 Aws::String m_name;
159
160 int m_numberOfCollections{0};
161
162 long long m_createdDate{0};
163
164 CollectionGroupCapacityLimits m_capacityLimits;
165
167 bool m_idHasBeenSet = false;
168 bool m_arnHasBeenSet = false;
169 bool m_nameHasBeenSet = false;
170 bool m_numberOfCollectionsHasBeenSet = false;
171 bool m_createdDateHasBeenSet = false;
172 bool m_capacityLimitsHasBeenSet = false;
173 bool m_generationHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace OpenSearchServerless
178} // namespace Aws
const CollectionGroupCapacityLimits & GetCapacityLimits() const
AWS_OPENSEARCHSERVERLESS_API CollectionGroupSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API CollectionGroupSummary()=default
AWS_OPENSEARCHSERVERLESS_API CollectionGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CollectionGroupSummary & WithCreatedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CollectionGroupSummary & WithGeneration(ServerlessGeneration value)
CollectionGroupSummary & WithCapacityLimits(CapacityLimitsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue