/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpenSearchServerless { namespace Model { /** *

Details about the created OpenSearch Serverless collection.

See * Also:

AWS * API Reference

*/ class CreateCollectionDetail { public: AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail(); AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the collection.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the collection.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the collection.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the collection.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the collection.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the collection.

*/ inline CreateCollectionDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the collection.

*/ inline CreateCollectionDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the collection.

*/ inline CreateCollectionDetail& WithArn(const char* value) { SetArn(value); return *this;} /** *

The Epoch time when the collection was created.

*/ inline long long GetCreatedDate() const{ return m_createdDate; } /** *

The Epoch time when the collection was created.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The Epoch time when the collection was created.

*/ inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The Epoch time when the collection was created.

*/ inline CreateCollectionDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;} /** *

A description of the collection.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the collection.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the collection.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the collection.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the collection.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the collection.

*/ inline CreateCollectionDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the collection.

*/ inline CreateCollectionDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the collection.

*/ inline CreateCollectionDetail& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The unique identifier of the collection.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier of the collection.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier of the collection.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier of the collection.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier of the collection.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier of the collection.

*/ inline CreateCollectionDetail& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier of the collection.

*/ inline CreateCollectionDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier of the collection.

*/ inline CreateCollectionDetail& WithId(const char* value) { SetId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the * collection.

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the * collection.

*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the * collection.

*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the * collection.

*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the * collection.

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the * collection.

*/ inline CreateCollectionDetail& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the * collection.

*/ inline CreateCollectionDetail& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the * collection.

*/ inline CreateCollectionDetail& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} /** *

The date and time when the collection was last modified.

*/ inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The date and time when the collection was last modified.

*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *

The date and time when the collection was last modified.

*/ inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *

The date and time when the collection was last modified.

*/ inline CreateCollectionDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;} /** *

The name of the collection.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the collection.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the collection.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the collection.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the collection.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the collection.

*/ inline CreateCollectionDetail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the collection.

*/ inline CreateCollectionDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the collection.

*/ inline CreateCollectionDetail& WithName(const char* value) { SetName(value); return *this;} /** *

The current status of the collection.

*/ inline const CollectionStatus& GetStatus() const{ return m_status; } /** *

The current status of the collection.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the collection.

*/ inline void SetStatus(const CollectionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the collection.

*/ inline void SetStatus(CollectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the collection.

*/ inline CreateCollectionDetail& WithStatus(const CollectionStatus& value) { SetStatus(value); return *this;} /** *

The current status of the collection.

*/ inline CreateCollectionDetail& WithStatus(CollectionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The type of collection.

*/ inline const CollectionType& GetType() const{ return m_type; } /** *

The type of collection.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of collection.

*/ inline void SetType(const CollectionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of collection.

*/ inline void SetType(CollectionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of collection.

*/ inline CreateCollectionDetail& WithType(const CollectionType& value) { SetType(value); return *this;} /** *

The type of collection.

*/ inline CreateCollectionDetail& WithType(CollectionType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; long long m_createdDate; bool m_createdDateHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; long long m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; CollectionStatus m_status; bool m_statusHasBeenSet = false; CollectionType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws