/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about each OpenSearch Serverless collection, including the collection
* endpoint and the OpenSearch Dashboards endpoint.See Also:
AWS
* API Reference
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 CollectionDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the collection.
*/ inline CollectionDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the collection.
*/ inline CollectionDetail& WithArn(const char* value) { SetArn(value); return *this;} /** *Collection-specific endpoint used to submit index, search, and data upload * requests to an OpenSearch Serverless collection.
*/ inline const Aws::String& GetCollectionEndpoint() const{ return m_collectionEndpoint; } /** *Collection-specific endpoint used to submit index, search, and data upload * requests to an OpenSearch Serverless collection.
*/ inline bool CollectionEndpointHasBeenSet() const { return m_collectionEndpointHasBeenSet; } /** *Collection-specific endpoint used to submit index, search, and data upload * requests to an OpenSearch Serverless collection.
*/ inline void SetCollectionEndpoint(const Aws::String& value) { m_collectionEndpointHasBeenSet = true; m_collectionEndpoint = value; } /** *Collection-specific endpoint used to submit index, search, and data upload * requests to an OpenSearch Serverless collection.
*/ inline void SetCollectionEndpoint(Aws::String&& value) { m_collectionEndpointHasBeenSet = true; m_collectionEndpoint = std::move(value); } /** *Collection-specific endpoint used to submit index, search, and data upload * requests to an OpenSearch Serverless collection.
*/ inline void SetCollectionEndpoint(const char* value) { m_collectionEndpointHasBeenSet = true; m_collectionEndpoint.assign(value); } /** *Collection-specific endpoint used to submit index, search, and data upload * requests to an OpenSearch Serverless collection.
*/ inline CollectionDetail& WithCollectionEndpoint(const Aws::String& value) { SetCollectionEndpoint(value); return *this;} /** *Collection-specific endpoint used to submit index, search, and data upload * requests to an OpenSearch Serverless collection.
*/ inline CollectionDetail& WithCollectionEndpoint(Aws::String&& value) { SetCollectionEndpoint(std::move(value)); return *this;} /** *Collection-specific endpoint used to submit index, search, and data upload * requests to an OpenSearch Serverless collection.
*/ inline CollectionDetail& WithCollectionEndpoint(const char* value) { SetCollectionEndpoint(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 CollectionDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;} /** *Collection-specific endpoint used to access OpenSearch Dashboards.
*/ inline const Aws::String& GetDashboardEndpoint() const{ return m_dashboardEndpoint; } /** *Collection-specific endpoint used to access OpenSearch Dashboards.
*/ inline bool DashboardEndpointHasBeenSet() const { return m_dashboardEndpointHasBeenSet; } /** *Collection-specific endpoint used to access OpenSearch Dashboards.
*/ inline void SetDashboardEndpoint(const Aws::String& value) { m_dashboardEndpointHasBeenSet = true; m_dashboardEndpoint = value; } /** *Collection-specific endpoint used to access OpenSearch Dashboards.
*/ inline void SetDashboardEndpoint(Aws::String&& value) { m_dashboardEndpointHasBeenSet = true; m_dashboardEndpoint = std::move(value); } /** *Collection-specific endpoint used to access OpenSearch Dashboards.
*/ inline void SetDashboardEndpoint(const char* value) { m_dashboardEndpointHasBeenSet = true; m_dashboardEndpoint.assign(value); } /** *Collection-specific endpoint used to access OpenSearch Dashboards.
*/ inline CollectionDetail& WithDashboardEndpoint(const Aws::String& value) { SetDashboardEndpoint(value); return *this;} /** *Collection-specific endpoint used to access OpenSearch Dashboards.
*/ inline CollectionDetail& WithDashboardEndpoint(Aws::String&& value) { SetDashboardEndpoint(std::move(value)); return *this;} /** *Collection-specific endpoint used to access OpenSearch Dashboards.
*/ inline CollectionDetail& WithDashboardEndpoint(const char* value) { SetDashboardEndpoint(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 CollectionDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the collection.
*/ inline CollectionDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the collection.
*/ inline CollectionDetail& WithDescription(const char* value) { SetDescription(value); return *this;} /** *A unique identifier for the collection.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *A unique identifier for the collection.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *A unique identifier for the collection.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *A unique identifier for the collection.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *A unique identifier for the collection.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *A unique identifier for the collection.
*/ inline CollectionDetail& WithId(const Aws::String& value) { SetId(value); return *this;} /** *A unique identifier for the collection.
*/ inline CollectionDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *A unique identifier for the collection.
*/ inline CollectionDetail& WithId(const char* value) { SetId(value); return *this;} /** *The ARN of the Amazon Web Services KMS key used to encrypt the * collection.
*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *The ARN of the Amazon Web Services KMS key used to encrypt the * collection.
*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *The ARN of the Amazon Web Services KMS key used to encrypt the * collection.
*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *The ARN of the Amazon Web Services KMS key used to encrypt the * collection.
*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *The ARN of the Amazon Web Services KMS key used to encrypt the * collection.
*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *The ARN of the Amazon Web Services KMS key used to encrypt the * collection.
*/ inline CollectionDetail& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *The ARN of the Amazon Web Services KMS key used to encrypt the * collection.
*/ inline CollectionDetail& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *The ARN of the Amazon Web Services KMS key used to encrypt the * collection.
*/ inline CollectionDetail& 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 CollectionDetail& 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 CollectionDetail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the collection.
*/ inline CollectionDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the collection.
*/ inline CollectionDetail& 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 CollectionDetail& WithStatus(const CollectionStatus& value) { SetStatus(value); return *this;} /** *The current status of the collection.
*/ inline CollectionDetail& 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 CollectionDetail& WithType(const CollectionType& value) { SetType(value); return *this;} /** *The type of collection.
*/ inline CollectionDetail& WithType(CollectionType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_collectionEndpoint; bool m_collectionEndpointHasBeenSet = false; long long m_createdDate; bool m_createdDateHasBeenSet = false; Aws::String m_dashboardEndpoint; bool m_dashboardEndpointHasBeenSet = 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