/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace KendraRanking { namespace Model { class DescribeRescoreExecutionPlanResult { public: AWS_KENDRARANKING_API DescribeRescoreExecutionPlanResult(); AWS_KENDRARANKING_API DescribeRescoreExecutionPlanResult(const Aws::AmazonWebServiceResult& result); AWS_KENDRARANKING_API DescribeRescoreExecutionPlanResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The identifier of the rescore execution plan.

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

The Amazon Resource Name (ARN) of the rescore execution plan.

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

The Amazon Resource Name (ARN) of the rescore execution plan.

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

The Amazon Resource Name (ARN) of the rescore execution plan.

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

The Amazon Resource Name (ARN) of the rescore execution plan.

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

The Amazon Resource Name (ARN) of the rescore execution plan.

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

The Amazon Resource Name (ARN) of the rescore execution plan.

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

The Amazon Resource Name (ARN) of the rescore execution plan.

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

The name for the rescore execution plan.

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

The name for the rescore execution plan.

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

The name for the rescore execution plan.

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

The name for the rescore execution plan.

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

The name for the rescore execution plan.

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

The name for the rescore execution plan.

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

The name for the rescore execution plan.

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

The description for the rescore execution plan.

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

The description for the rescore execution plan.

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

The description for the rescore execution plan.

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

The description for the rescore execution plan.

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

The description for the rescore execution plan.

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

The description for the rescore execution plan.

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

The description for the rescore execution plan.

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

The capacity units set for the rescore execution plan. A capacity of zero * indicates that the rescore execution plan is using the default capacity. For * more information on the default capacity and additional capacity units, see Adjusting * capacity.

*/ inline const CapacityUnitsConfiguration& GetCapacityUnits() const{ return m_capacityUnits; } /** *

The capacity units set for the rescore execution plan. A capacity of zero * indicates that the rescore execution plan is using the default capacity. For * more information on the default capacity and additional capacity units, see Adjusting * capacity.

*/ inline void SetCapacityUnits(const CapacityUnitsConfiguration& value) { m_capacityUnits = value; } /** *

The capacity units set for the rescore execution plan. A capacity of zero * indicates that the rescore execution plan is using the default capacity. For * more information on the default capacity and additional capacity units, see Adjusting * capacity.

*/ inline void SetCapacityUnits(CapacityUnitsConfiguration&& value) { m_capacityUnits = std::move(value); } /** *

The capacity units set for the rescore execution plan. A capacity of zero * indicates that the rescore execution plan is using the default capacity. For * more information on the default capacity and additional capacity units, see Adjusting * capacity.

*/ inline DescribeRescoreExecutionPlanResult& WithCapacityUnits(const CapacityUnitsConfiguration& value) { SetCapacityUnits(value); return *this;} /** *

The capacity units set for the rescore execution plan. A capacity of zero * indicates that the rescore execution plan is using the default capacity. For * more information on the default capacity and additional capacity units, see Adjusting * capacity.

*/ inline DescribeRescoreExecutionPlanResult& WithCapacityUnits(CapacityUnitsConfiguration&& value) { SetCapacityUnits(std::move(value)); return *this;} /** *

The Unix timestamp of when the rescore execution plan was created.

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

The Unix timestamp of when the rescore execution plan was created.

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

The Unix timestamp of when the rescore execution plan was created.

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

The Unix timestamp of when the rescore execution plan was created.

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

The Unix timestamp of when the rescore execution plan was created.

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

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

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

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

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

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

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

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

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

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

*/ inline DescribeRescoreExecutionPlanResult& 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. If the * Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ 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. If the * Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

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

The current status of the rescore execution plan. When the value is * ACTIVE, the rescore execution plan is ready for use. If the * Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ inline void SetStatus(RescoreExecutionPlanStatus&& value) { 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. If the * Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ inline DescribeRescoreExecutionPlanResult& 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. If the * Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

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

When the Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

When the Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; } /** *

When the Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); } /** *

When the Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); } /** *

When the Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ inline DescribeRescoreExecutionPlanResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

When the Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ inline DescribeRescoreExecutionPlanResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

When the Status field value is FAILED, the * ErrorMessage field contains a message that explains why.

*/ inline DescribeRescoreExecutionPlanResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeRescoreExecutionPlanResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeRescoreExecutionPlanResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeRescoreExecutionPlanResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_id; Aws::String m_arn; Aws::String m_name; Aws::String m_description; CapacityUnitsConfiguration m_capacityUnits; Aws::Utils::DateTime m_createdAt; Aws::Utils::DateTime m_updatedAt; RescoreExecutionPlanStatus m_status; Aws::String m_errorMessage; Aws::String m_requestId; }; } // namespace Model } // namespace KendraRanking } // namespace Aws