/** * 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 KendraRanking { namespace Model { /** *

Summary information for a rescore execution plan. A rescore execution plan is * an Amazon Kendra Intelligent Ranking resource used for provisioning the * Rescore API.

See Also:

AWS * API Reference

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

The name of the rescore execution plan.

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

The name of the rescore execution plan.

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

The name of the rescore execution plan.

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

The name of the rescore execution plan.

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

The name of the rescore execution plan.

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

The name of the rescore execution plan.

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

The name of the rescore execution plan.

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

The name of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The Unix timestamp when the rescore execution plan was created.

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

The Unix timestamp when the rescore execution plan was created.

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

The Unix timestamp when the rescore execution plan was created.

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

The Unix timestamp when the rescore execution plan was created.

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

The Unix timestamp when the rescore execution plan was created.

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

The Unix timestamp when the rescore execution plan was created.

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

The Unix timestamp when the rescore execution plan was last updated.

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

The Unix timestamp when the rescore execution plan was last updated.

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

The Unix timestamp when the rescore execution plan was last updated.

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

The Unix timestamp when the rescore execution plan was last updated.

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

The Unix timestamp when the rescore execution plan was last updated.

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

The Unix timestamp when the rescore execution plan was last updated.

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

The current status of the rescore execution plan. When the value is * ACTIVE, the rescore execution plan is ready for use.

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

The current status of the rescore execution plan. When the value is * ACTIVE, the rescore execution plan is ready for use.

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

The current status of the rescore execution plan. When the value is * ACTIVE, the rescore execution plan is ready for use.

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

The current status of the rescore execution plan. When the value is * ACTIVE, the rescore execution plan is ready for use.

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

The current status of the rescore execution plan. When the value is * ACTIVE, the rescore execution plan is ready for use.

*/ inline RescoreExecutionPlanSummary& WithStatus(const RescoreExecutionPlanStatus& value) { SetStatus(value); return *this;} /** *

The current status of the rescore execution plan. When the value is * ACTIVE, the rescore execution plan is ready for use.

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