AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateCollectionDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/model/CollectionStatus.h>
10#include <aws/opensearchserverless/model/CollectionType.h>
11#include <aws/opensearchserverless/model/StandbyReplicas.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace OpenSearchServerless
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail() = default;
39 AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 CreateCollectionDetail& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 CreateCollectionDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline CollectionStatus GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(CollectionStatus value) { m_statusHasBeenSet = true; m_status = value; }
75 inline CreateCollectionDetail& WithStatus(CollectionStatus value) { SetStatus(value); return *this;}
77
79
82 inline CollectionType GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 inline void SetType(CollectionType value) { m_typeHasBeenSet = true; m_type = value; }
85 inline CreateCollectionDetail& WithType(CollectionType value) { SetType(value); return *this;}
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template<typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
96 template<typename DescriptionT = Aws::String>
97 CreateCollectionDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
99
101
104 inline const Aws::String& GetArn() const { return m_arn; }
105 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
106 template<typename ArnT = Aws::String>
107 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
108 template<typename ArnT = Aws::String>
109 CreateCollectionDetail& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
111
113
117 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
118 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
119 template<typename KmsKeyArnT = Aws::String>
120 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
121 template<typename KmsKeyArnT = Aws::String>
122 CreateCollectionDetail& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
124
126
129 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
130 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
131 inline void SetStandbyReplicas(StandbyReplicas value) { m_standbyReplicasHasBeenSet = true; m_standbyReplicas = value; }
134
136
139 inline long long GetCreatedDate() const { return m_createdDate; }
140 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
141 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
142 inline CreateCollectionDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
144
146
149 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
150 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
151 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
152 inline CreateCollectionDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
154 private:
155
156 Aws::String m_id;
157 bool m_idHasBeenSet = false;
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
163 bool m_statusHasBeenSet = false;
164
166 bool m_typeHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::String m_arn;
172 bool m_arnHasBeenSet = false;
173
174 Aws::String m_kmsKeyArn;
175 bool m_kmsKeyArnHasBeenSet = false;
176
177 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
178 bool m_standbyReplicasHasBeenSet = false;
179
180 long long m_createdDate{0};
181 bool m_createdDateHasBeenSet = false;
182
183 long long m_lastModifiedDate{0};
184 bool m_lastModifiedDateHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace OpenSearchServerless
189} // namespace Aws
CreateCollectionDetail & WithKmsKeyArn(KmsKeyArnT &&value)
CreateCollectionDetail & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateCollectionDetail & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CreateCollectionDetail & WithStandbyReplicas(StandbyReplicas value)
CreateCollectionDetail & WithCreatedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail()=default
CreateCollectionDetail & WithType(CollectionType value)
CreateCollectionDetail & WithStatus(CollectionStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue