AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CollectionSummary.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/CollectionStatus.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
30 public:
31 AWS_OPENSEARCHSERVERLESS_API CollectionSummary() = default;
32 AWS_OPENSEARCHSERVERLESS_API CollectionSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API CollectionSummary& 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>
48 CollectionSummary& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 CollectionSummary& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline CollectionStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(CollectionStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetArn() const { return m_arn; }
93 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
94 template <typename ArnT = Aws::String>
95 void SetArn(ArnT&& value) {
96 m_arnHasBeenSet = true;
97 m_arn = std::forward<ArnT>(value);
98 }
99 template <typename ArnT = Aws::String>
100 CollectionSummary& WithArn(ArnT&& value) {
101 SetArn(std::forward<ArnT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
112 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
113 template <typename KmsKeyArnT = Aws::String>
114 void SetKmsKeyArn(KmsKeyArnT&& value) {
115 m_kmsKeyArnHasBeenSet = true;
116 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
117 }
118 template <typename KmsKeyArnT = Aws::String>
119 CollectionSummary& WithKmsKeyArn(KmsKeyArnT&& value) {
120 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetCollectionGroupName() const { return m_collectionGroupName; }
130 inline bool CollectionGroupNameHasBeenSet() const { return m_collectionGroupNameHasBeenSet; }
131 template <typename CollectionGroupNameT = Aws::String>
132 void SetCollectionGroupName(CollectionGroupNameT&& value) {
133 m_collectionGroupNameHasBeenSet = true;
134 m_collectionGroupName = std::forward<CollectionGroupNameT>(value);
135 }
136 template <typename CollectionGroupNameT = Aws::String>
137 CollectionSummary& WithCollectionGroupName(CollectionGroupNameT&& value) {
138 SetCollectionGroupName(std::forward<CollectionGroupNameT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_id;
144
145 Aws::String m_name;
146
148
149 Aws::String m_arn;
150
151 Aws::String m_kmsKeyArn;
152
153 Aws::String m_collectionGroupName;
154 bool m_idHasBeenSet = false;
155 bool m_nameHasBeenSet = false;
156 bool m_statusHasBeenSet = false;
157 bool m_arnHasBeenSet = false;
158 bool m_kmsKeyArnHasBeenSet = false;
159 bool m_collectionGroupNameHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace OpenSearchServerless
164} // namespace Aws
CollectionSummary & WithCollectionGroupName(CollectionGroupNameT &&value)
CollectionSummary & WithStatus(CollectionStatus value)
AWS_OPENSEARCHSERVERLESS_API CollectionSummary()=default
CollectionSummary & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCollectionGroupName(CollectionGroupNameT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API CollectionSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue