/** * 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 AWS_PERSONALIZE_API CreateCampaignRequest : public PersonalizeRequest { public: 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::String SerializePayload() const override; 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.

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

Specifies the requested minimum provisioned transactions (recommendations) * per second that Amazon Personalize will support.

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

Specifies the requested minimum provisioned transactions (recommendations) * per second that Amazon Personalize will support.

*/ 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.

*/ 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;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_solutionVersionArn; bool m_solutionVersionArnHasBeenSet; int m_minProvisionedTPS; bool m_minProvisionedTPSHasBeenSet; CampaignConfig m_campaignConfig; bool m_campaignConfigHasBeenSet; }; } // namespace Model } // namespace Personalize } // namespace Aws