/** * 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 Personalize { namespace Model { /** */ class UpdateCampaignRequest : public PersonalizeRequest { public: AWS_PERSONALIZE_API UpdateCampaignRequest(); // 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 "UpdateCampaign"; } AWS_PERSONALIZE_API Aws::String SerializePayload() const override; AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline const Aws::String& GetCampaignArn() const{ return m_campaignArn; } /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline void SetCampaignArn(const Aws::String& value) { m_campaignArnHasBeenSet = true; m_campaignArn = value; } /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline void SetCampaignArn(Aws::String&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline void SetCampaignArn(const char* value) { m_campaignArnHasBeenSet = true; m_campaignArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline UpdateCampaignRequest& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline UpdateCampaignRequest& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline UpdateCampaignRequest& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;} /** *

The ARN of a new solution version to deploy.

*/ inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; } /** *

The ARN of a new solution version to deploy.

*/ inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; } /** *

The ARN of a new solution version to deploy.

*/ inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; } /** *

The ARN of a new solution version to deploy.

*/ inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); } /** *

The ARN of a new solution version to deploy.

*/ inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); } /** *

The ARN of a new solution version to deploy.

*/ inline UpdateCampaignRequest& WithSolutionVersionArn(const Aws::String& value) { SetSolutionVersionArn(value); return *this;} /** *

The ARN of a new solution version to deploy.

*/ inline UpdateCampaignRequest& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;} /** *

The ARN of a new solution version to deploy.

*/ inline UpdateCampaignRequest& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;} /** *

Specifies the requested minimum provisioned transactions (recommendations) * per second that Amazon Personalize will support. A high * minProvisionedTPS will increase your bill. We recommend starting * with 1 for minProvisionedTPS (the default). Track your usage using * Amazon CloudWatch metrics, and increase the minProvisionedTPS as * necessary.

*/ inline int GetMinProvisionedTPS() const{ return m_minProvisionedTPS; } /** *

Specifies the requested minimum provisioned transactions (recommendations) * per second that Amazon Personalize will support. A high * minProvisionedTPS will increase your bill. We recommend starting * with 1 for minProvisionedTPS (the default). Track your usage using * Amazon CloudWatch metrics, and increase the minProvisionedTPS as * necessary.

*/ inline bool MinProvisionedTPSHasBeenSet() const { return m_minProvisionedTPSHasBeenSet; } /** *

Specifies the requested minimum provisioned transactions (recommendations) * per second that Amazon Personalize will support. A high * minProvisionedTPS will increase your bill. We recommend starting * with 1 for minProvisionedTPS (the default). Track your usage using * Amazon CloudWatch metrics, and increase the minProvisionedTPS as * necessary.

*/ inline void SetMinProvisionedTPS(int value) { m_minProvisionedTPSHasBeenSet = true; m_minProvisionedTPS = value; } /** *

Specifies the requested minimum provisioned transactions (recommendations) * per second that Amazon Personalize will support. A high * minProvisionedTPS will increase your bill. We recommend starting * with 1 for minProvisionedTPS (the default). Track your usage using * Amazon CloudWatch metrics, and increase the minProvisionedTPS as * necessary.

*/ inline UpdateCampaignRequest& WithMinProvisionedTPS(int value) { SetMinProvisionedTPS(value); return *this;} /** *

The configuration details of a campaign.

*/ inline const CampaignConfig& GetCampaignConfig() const{ return m_campaignConfig; } /** *

The configuration details of a campaign.

*/ inline bool CampaignConfigHasBeenSet() const { return m_campaignConfigHasBeenSet; } /** *

The configuration details of a campaign.

*/ inline void SetCampaignConfig(const CampaignConfig& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = value; } /** *

The configuration details of a campaign.

*/ inline void SetCampaignConfig(CampaignConfig&& value) { m_campaignConfigHasBeenSet = true; m_campaignConfig = std::move(value); } /** *

The configuration details of a campaign.

*/ inline UpdateCampaignRequest& WithCampaignConfig(const CampaignConfig& value) { SetCampaignConfig(value); return *this;} /** *

The configuration details of a campaign.

*/ inline UpdateCampaignRequest& WithCampaignConfig(CampaignConfig&& value) { SetCampaignConfig(std::move(value)); return *this;} private: Aws::String m_campaignArn; bool m_campaignArnHasBeenSet = false; Aws::String m_solutionVersionArn; bool m_solutionVersionArnHasBeenSet = false; int m_minProvisionedTPS; bool m_minProvisionedTPSHasBeenSet = false; CampaignConfig m_campaignConfig; bool m_campaignConfigHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws