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

Summary information on the configuration of an index.

See * Also:

AWS * API Reference

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

A identifier for the index. Use this to identify the index when you are using * APIs such as Query, DescribeIndex, * UpdateIndex, and DeleteIndex.

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

A identifier for the index. Use this to identify the index when you are using * APIs such as Query, DescribeIndex, * UpdateIndex, and DeleteIndex.

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

A identifier for the index. Use this to identify the index when you are using * APIs such as Query, DescribeIndex, * UpdateIndex, and DeleteIndex.

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

A identifier for the index. Use this to identify the index when you are using * APIs such as Query, DescribeIndex, * UpdateIndex, and DeleteIndex.

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

A identifier for the index. Use this to identify the index when you are using * APIs such as Query, DescribeIndex, * UpdateIndex, and DeleteIndex.

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

A identifier for the index. Use this to identify the index when you are using * APIs such as Query, DescribeIndex, * UpdateIndex, and DeleteIndex.

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

A identifier for the index. Use this to identify the index when you are using * APIs such as Query, DescribeIndex, * UpdateIndex, and DeleteIndex.

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

A identifier for the index. Use this to identify the index when you are using * APIs such as Query, DescribeIndex, * UpdateIndex, and DeleteIndex.

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

Indicates whether the index is a Enterprise Edition index or a Developer * Edition index.

*/ inline const IndexEdition& GetEdition() const{ return m_edition; } /** *

Indicates whether the index is a Enterprise Edition index or a Developer * Edition index.

*/ inline bool EditionHasBeenSet() const { return m_editionHasBeenSet; } /** *

Indicates whether the index is a Enterprise Edition index or a Developer * Edition index.

*/ inline void SetEdition(const IndexEdition& value) { m_editionHasBeenSet = true; m_edition = value; } /** *

Indicates whether the index is a Enterprise Edition index or a Developer * Edition index.

*/ inline void SetEdition(IndexEdition&& value) { m_editionHasBeenSet = true; m_edition = std::move(value); } /** *

Indicates whether the index is a Enterprise Edition index or a Developer * Edition index.

*/ inline IndexConfigurationSummary& WithEdition(const IndexEdition& value) { SetEdition(value); return *this;} /** *

Indicates whether the index is a Enterprise Edition index or a Developer * Edition index.

*/ inline IndexConfigurationSummary& WithEdition(IndexEdition&& value) { SetEdition(std::move(value)); return *this;} /** *

The Unix timestamp when the index was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The Unix timestamp when the index was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The Unix timestamp when the index was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The Unix timestamp when the index was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The Unix timestamp when the index was created.

*/ inline IndexConfigurationSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The Unix timestamp when the index was created.

*/ inline IndexConfigurationSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The Unix timestamp when the index was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The Unix timestamp when the index was last updated.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The Unix timestamp when the index was last updated.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The Unix timestamp when the index was last updated.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The Unix timestamp when the index was last updated.

*/ inline IndexConfigurationSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The Unix timestamp when the index was last updated.

*/ inline IndexConfigurationSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} /** *

The current status of the index. When the status is ACTIVE, the * index is ready to search.

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

The current status of the index. When the status is ACTIVE, the * index is ready to search.

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

The current status of the index. When the status is ACTIVE, the * index is ready to search.

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

The current status of the index. When the status is ACTIVE, the * index is ready to search.

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

The current status of the index. When the status is ACTIVE, the * index is ready to search.

*/ inline IndexConfigurationSummary& WithStatus(const IndexStatus& value) { SetStatus(value); return *this;} /** *

The current status of the index. When the status is ACTIVE, the * index is ready to search.

*/ inline IndexConfigurationSummary& WithStatus(IndexStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; IndexEdition m_edition; bool m_editionHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; IndexStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws