Interface CreateCampaignRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateCampaignRequest.Builder,
,CreateCampaignRequest> PersonalizeRequest.Builder
,SdkBuilder<CreateCampaignRequest.Builder,
,CreateCampaignRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateCampaignRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateCampaignRequest.Builder
campaignConfig
(Consumer<CampaignConfig.Builder> campaignConfig) The configuration details of a campaign.campaignConfig
(CampaignConfig campaignConfig) The configuration details of a campaign.minProvisionedTPS
(Integer minProvisionedTPS) Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support.A name for the new campaign.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.solutionVersionArn
(String solutionVersionArn) The Amazon Resource Name (ARN) of the solution version to deploy.tags
(Collection<Tag> tags) A list of tags to apply to the campaign.tags
(Consumer<Tag.Builder>... tags) A list of tags to apply to the campaign.A list of tags to apply to the campaign.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.personalize.model.PersonalizeRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
A name for the new campaign. The campaign name must be unique within your account.
- Parameters:
name
- A name for the new campaign. The campaign name must be unique within your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
solutionVersionArn
The Amazon Resource Name (ARN) of the solution version to deploy.
- Parameters:
solutionVersionArn
- The Amazon Resource Name (ARN) of the solution version to deploy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 forminProvisionedTPS
(the default). Track your usage using Amazon CloudWatch metrics, and increase theminProvisionedTPS
as necessary.- Parameters:
minProvisionedTPS
- Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support. A highminProvisionedTPS
will increase your bill. We recommend starting with 1 forminProvisionedTPS
(the default). Track your usage using Amazon CloudWatch metrics, and increase theminProvisionedTPS
as necessary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
campaignConfig
The configuration details of a campaign.
- Parameters:
campaignConfig
- The configuration details of a campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
campaignConfig
default CreateCampaignRequest.Builder campaignConfig(Consumer<CampaignConfig.Builder> campaignConfig) The configuration details of a campaign.
This is a convenience method that creates an instance of theCampaignConfig.Builder
avoiding the need to create one manually viaCampaignConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocampaignConfig(CampaignConfig)
.- Parameters:
campaignConfig
- a consumer that will call methods onCampaignConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A list of tags to apply to the campaign.
- Parameters:
tags
- A list of tags to apply to the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to apply to the campaign.
- Parameters:
tags
- A list of tags to apply to the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to apply to the campaign.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateCampaignRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateCampaignRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-