AWS SDK for C++

AWS SDK for C++ Version 1.11.758

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchServerless {
21namespace Model {
22
29 public:
30 AWS_OPENSEARCHSERVERLESS_API CollectionGroupSummary() = default;
31 AWS_OPENSEARCHSERVERLESS_API CollectionGroupSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVERLESS_API CollectionGroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
59 template <typename ArnT = Aws::String>
60 void SetArn(ArnT&& value) {
61 m_arnHasBeenSet = true;
62 m_arn = std::forward<ArnT>(value);
63 }
64 template <typename ArnT = Aws::String>
66 SetArn(std::forward<ArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline int GetNumberOfCollections() const { return m_numberOfCollections; }
94 inline bool NumberOfCollectionsHasBeenSet() const { return m_numberOfCollectionsHasBeenSet; }
95 inline void SetNumberOfCollections(int value) {
96 m_numberOfCollectionsHasBeenSet = true;
97 m_numberOfCollections = value;
98 }
101 return *this;
102 }
104
106
109 inline long long GetCreatedDate() const { return m_createdDate; }
110 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
111 inline void SetCreatedDate(long long value) {
112 m_createdDateHasBeenSet = true;
113 m_createdDate = value;
114 }
115 inline CollectionGroupSummary& WithCreatedDate(long long value) {
116 SetCreatedDate(value);
117 return *this;
118 }
120
122
123 inline const CollectionGroupCapacityLimits& GetCapacityLimits() const { return m_capacityLimits; }
124 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
125 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
126 void SetCapacityLimits(CapacityLimitsT&& value) {
127 m_capacityLimitsHasBeenSet = true;
128 m_capacityLimits = std::forward<CapacityLimitsT>(value);
129 }
130 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
131 CollectionGroupSummary& WithCapacityLimits(CapacityLimitsT&& value) {
132 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_id;
138
139 Aws::String m_arn;
140
141 Aws::String m_name;
142
143 int m_numberOfCollections{0};
144
145 long long m_createdDate{0};
146
147 CollectionGroupCapacityLimits m_capacityLimits;
148 bool m_idHasBeenSet = false;
149 bool m_arnHasBeenSet = false;
150 bool m_nameHasBeenSet = false;
151 bool m_numberOfCollectionsHasBeenSet = false;
152 bool m_createdDateHasBeenSet = false;
153 bool m_capacityLimitsHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace OpenSearchServerless
158} // 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 & WithCapacityLimits(CapacityLimitsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue