/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Personalize { namespace Model { /** */ class CreateCampaignRequest : public PersonalizeRequest { public: AWS_PERSONALIZE_API CreateCampaignRequest(); // 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 "CreateCampaign"; } AWS_PERSONALIZE_API Aws::String SerializePayload() const override; AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for the new campaign. The campaign name must be unique within your * account.

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

A name for the new campaign. The campaign name must be unique within your * account.

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

A name for the new campaign. The campaign name must be unique within your * account.

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

A name for the new campaign. The campaign name must be unique within your * account.

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

A name for the new campaign. The campaign name must be unique within your * account.

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

A name for the new campaign. The campaign name must be unique within your * account.

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

A name for the new campaign. The campaign name must be unique within your * account.

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

A name for the new campaign. The campaign name must be unique within your * account.

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

The Amazon Resource Name (ARN) of the solution version to deploy.

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

The Amazon Resource Name (ARN) of the solution version to deploy.

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

The Amazon Resource Name (ARN) of the solution version to deploy.

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

The Amazon Resource Name (ARN) of the solution version to deploy.

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

The Amazon Resource Name (ARN) of the solution version to deploy.

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

The Amazon Resource Name (ARN) of the solution version to deploy.

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

The Amazon Resource Name (ARN) of the solution version to deploy.

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

The Amazon Resource Name (ARN) of the solution version to deploy.

*/ inline CreateCampaignRequest& 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 CreateCampaignRequest& 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 CreateCampaignRequest& WithCampaignConfig(const CampaignConfig& value) { SetCampaignConfig(value); return *this;} /** *

The configuration details of a campaign.

*/ inline CreateCampaignRequest& WithCampaignConfig(CampaignConfig&& value) { SetCampaignConfig(std::move(value)); return *this;} /** *

A list of tags * to apply to the campaign.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags * to apply to the campaign.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags * to apply to the campaign.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags * to apply to the campaign.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags * to apply to the campaign.

*/ inline CreateCampaignRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags * to apply to the campaign.

*/ inline CreateCampaignRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags * to apply to the campaign.

*/ inline CreateCampaignRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags * to apply to the campaign.

*/ inline CreateCampaignRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_solutionVersionArn; bool m_solutionVersionArnHasBeenSet = false; int m_minProvisionedTPS; bool m_minProvisionedTPSHasBeenSet = false; CampaignConfig m_campaignConfig; bool m_campaignConfigHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws