AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/StandbyReplicas.h>
10#include <aws/opensearchserverless/model/CollectionStatus.h>
11#include <aws/opensearchserverless/model/CollectionType.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();
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& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline CreateCollectionDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline CreateCollectionDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline CreateCollectionDetail& WithArn(const char* value) { SetArn(value); return *this;}
57
59
62 inline long long GetCreatedDate() const{ return m_createdDate; }
63 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
64 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
65 inline CreateCollectionDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline CreateCollectionDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline CreateCollectionDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline CreateCollectionDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const Aws::String& GetId() const{ return m_id; }
87 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
89 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
90 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
91 inline CreateCollectionDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
92 inline CreateCollectionDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
93 inline CreateCollectionDetail& WithId(const char* value) { SetId(value); return *this;}
95
97
101 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
102 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
103 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
104 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
105 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
106 inline CreateCollectionDetail& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
107 inline CreateCollectionDetail& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
108 inline CreateCollectionDetail& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
110
112
115 inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; }
116 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
117 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
118 inline CreateCollectionDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
120
122
125 inline const Aws::String& GetName() const{ return m_name; }
126 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
127 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
128 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
129 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
130 inline CreateCollectionDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
131 inline CreateCollectionDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
132 inline CreateCollectionDetail& WithName(const char* value) { SetName(value); return *this;}
134
136
139 inline const StandbyReplicas& GetStandbyReplicas() const{ return m_standbyReplicas; }
140 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
141 inline void SetStandbyReplicas(const StandbyReplicas& value) { m_standbyReplicasHasBeenSet = true; m_standbyReplicas = value; }
142 inline void SetStandbyReplicas(StandbyReplicas&& value) { m_standbyReplicasHasBeenSet = true; m_standbyReplicas = std::move(value); }
144 inline CreateCollectionDetail& WithStandbyReplicas(StandbyReplicas&& value) { SetStandbyReplicas(std::move(value)); return *this;}
146
148
151 inline const CollectionStatus& GetStatus() const{ return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
153 inline void SetStatus(const CollectionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
154 inline void SetStatus(CollectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
155 inline CreateCollectionDetail& WithStatus(const CollectionStatus& value) { SetStatus(value); return *this;}
156 inline CreateCollectionDetail& WithStatus(CollectionStatus&& value) { SetStatus(std::move(value)); return *this;}
158
160
163 inline const CollectionType& GetType() const{ return m_type; }
164 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
165 inline void SetType(const CollectionType& value) { m_typeHasBeenSet = true; m_type = value; }
166 inline void SetType(CollectionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
167 inline CreateCollectionDetail& WithType(const CollectionType& value) { SetType(value); return *this;}
168 inline CreateCollectionDetail& WithType(CollectionType&& value) { SetType(std::move(value)); return *this;}
170 private:
171
172 Aws::String m_arn;
173 bool m_arnHasBeenSet = false;
174
175 long long m_createdDate;
176 bool m_createdDateHasBeenSet = false;
177
178 Aws::String m_description;
179 bool m_descriptionHasBeenSet = false;
180
181 Aws::String m_id;
182 bool m_idHasBeenSet = false;
183
184 Aws::String m_kmsKeyArn;
185 bool m_kmsKeyArnHasBeenSet = false;
186
187 long long m_lastModifiedDate;
188 bool m_lastModifiedDateHasBeenSet = false;
189
190 Aws::String m_name;
191 bool m_nameHasBeenSet = false;
192
193 StandbyReplicas m_standbyReplicas;
194 bool m_standbyReplicasHasBeenSet = false;
195
196 CollectionStatus m_status;
197 bool m_statusHasBeenSet = false;
198
199 CollectionType m_type;
200 bool m_typeHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace OpenSearchServerless
205} // namespace Aws
CreateCollectionDetail & WithName(const Aws::String &value)
CreateCollectionDetail & WithKmsKeyArn(Aws::String &&value)
CreateCollectionDetail & WithLastModifiedDate(long long value)
CreateCollectionDetail & WithArn(const char *value)
CreateCollectionDetail & WithKmsKeyArn(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateCollectionDetail & WithStandbyReplicas(StandbyReplicas &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CreateCollectionDetail & WithName(Aws::String &&value)
CreateCollectionDetail & WithArn(Aws::String &&value)
CreateCollectionDetail & WithType(const CollectionType &value)
CreateCollectionDetail & WithStandbyReplicas(const StandbyReplicas &value)
CreateCollectionDetail & WithDescription(const char *value)
CreateCollectionDetail & WithType(CollectionType &&value)
CreateCollectionDetail & WithDescription(Aws::String &&value)
CreateCollectionDetail & WithCreatedDate(long long value)
CreateCollectionDetail & WithKmsKeyArn(const char *value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail(Aws::Utils::Json::JsonView jsonValue)
CreateCollectionDetail & WithStatus(CollectionStatus &&value)
CreateCollectionDetail & WithId(Aws::String &&value)
CreateCollectionDetail & WithId(const Aws::String &value)
CreateCollectionDetail & WithDescription(const Aws::String &value)
CreateCollectionDetail & WithId(const char *value)
CreateCollectionDetail & WithName(const char *value)
CreateCollectionDetail & WithArn(const Aws::String &value)
CreateCollectionDetail & WithStatus(const CollectionStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue