/** * 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 KendraRanking { namespace Model { /** */ class UpdateRescoreExecutionPlanRequest : public KendraRankingRequest { public: AWS_KENDRARANKING_API UpdateRescoreExecutionPlanRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateRescoreExecutionPlan"; } AWS_KENDRARANKING_API Aws::String SerializePayload() const override; AWS_KENDRARANKING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the rescore execution plan that you want to update.

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

The identifier of the rescore execution plan that you want to update.

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

The identifier of the rescore execution plan that you want to update.

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

The identifier of the rescore execution plan that you want to update.

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

The identifier of the rescore execution plan that you want to update.

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

The identifier of the rescore execution plan that you want to update.

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

The identifier of the rescore execution plan that you want to update.

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

The identifier of the rescore execution plan that you want to update.

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

A new name for the rescore execution plan.

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

A new name for the rescore execution plan.

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

A new name for the rescore execution plan.

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

A new name for the rescore execution plan.

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

A new name for the rescore execution plan.

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

A new name for the rescore execution plan.

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

A new name for the rescore execution plan.

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

A new name for the rescore execution plan.

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

A new description for the rescore execution plan.

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

A new description for the rescore execution plan.

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

A new description for the rescore execution plan.

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

A new description for the rescore execution plan.

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

A new description for the rescore execution plan.

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

A new description for the rescore execution plan.

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

A new description for the rescore execution plan.

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

A new description for the rescore execution plan.

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

You can set additional capacity units to meet the needs of your rescore * execution plan. You are given a single capacity unit by default. If you want to * use the default capacity, you don't set additional capacity units. For more * information on the default capacity and additional capacity units, see Adjusting * capacity.

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

You can set additional capacity units to meet the needs of your rescore * execution plan. You are given a single capacity unit by default. If you want to * use the default capacity, you don't set additional capacity units. For more * information on the default capacity and additional capacity units, see Adjusting * capacity.

*/ inline bool CapacityUnitsHasBeenSet() const { return m_capacityUnitsHasBeenSet; } /** *

You can set additional capacity units to meet the needs of your rescore * execution plan. You are given a single capacity unit by default. If you want to * use the default capacity, you don't set additional capacity units. For more * information on the default capacity and additional capacity units, see Adjusting * capacity.

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

You can set additional capacity units to meet the needs of your rescore * execution plan. You are given a single capacity unit by default. If you want to * use the default capacity, you don't set additional capacity units. For more * information on the default capacity and additional capacity units, see Adjusting * capacity.

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

You can set additional capacity units to meet the needs of your rescore * execution plan. You are given a single capacity unit by default. If you want to * use the default capacity, you don't set additional capacity units. For more * information on the default capacity and additional capacity units, see Adjusting * capacity.

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

You can set additional capacity units to meet the needs of your rescore * execution plan. You are given a single capacity unit by default. If you want to * use the default capacity, you don't set additional capacity units. For more * information on the default capacity and additional capacity units, see Adjusting * capacity.

*/ inline UpdateRescoreExecutionPlanRequest& WithCapacityUnits(CapacityUnitsConfiguration&& value) { SetCapacityUnits(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; CapacityUnitsConfiguration m_capacityUnits; bool m_capacityUnitsHasBeenSet = false; }; } // namespace Model } // namespace KendraRanking } // namespace Aws