Interface Campaign.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Campaign.Builder,Campaign>,SdkBuilder<Campaign.Builder,Campaign>,SdkPojo
- Enclosing class:
- Campaign
public static interface Campaign.Builder extends SdkPojo, CopyableBuilder<Campaign.Builder,Campaign>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Campaign.BuildercampaignArn(String campaignArn)The Amazon Resource Name (ARN) of the campaign.default Campaign.BuildercampaignConfig(Consumer<CampaignConfig.Builder> campaignConfig)The configuration details of a campaign.Campaign.BuildercampaignConfig(CampaignConfig campaignConfig)The configuration details of a campaign.Campaign.BuildercreationDateTime(Instant creationDateTime)The date and time (in Unix format) that the campaign was created.Campaign.BuilderfailureReason(String failureReason)If a campaign fails, the reason behind the failure.Campaign.BuilderlastUpdatedDateTime(Instant lastUpdatedDateTime)The date and time (in Unix format) that the campaign was last updated.default Campaign.BuilderlatestCampaignUpdate(Consumer<CampaignUpdateSummary.Builder> latestCampaignUpdate)Sets the value of the LatestCampaignUpdate property for this object.Campaign.BuilderlatestCampaignUpdate(CampaignUpdateSummary latestCampaignUpdate)Sets the value of the LatestCampaignUpdate property for this object.Campaign.BuilderminProvisionedTPS(Integer minProvisionedTPS)Specifies the requested minimum provisioned transactions (recommendations) per second.Campaign.Buildername(String name)The name of the campaign.Campaign.BuildersolutionVersionArn(String solutionVersionArn)The Amazon Resource Name (ARN) of the solution version the campaign uses.Campaign.Builderstatus(String status)The status of the campaign.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
Campaign.Builder name(String name)
The name of the campaign.
- Parameters:
name- The name of the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
campaignArn
Campaign.Builder campaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign.
- Parameters:
campaignArn- The Amazon Resource Name (ARN) of the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
solutionVersionArn
Campaign.Builder solutionVersionArn(String solutionVersionArn)
The Amazon Resource Name (ARN) of the solution version the campaign uses.
- Parameters:
solutionVersionArn- The Amazon Resource Name (ARN) of the solution version the campaign uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minProvisionedTPS
Campaign.Builder minProvisionedTPS(Integer minProvisionedTPS)
Specifies the requested minimum provisioned transactions (recommendations) per second. A high
minProvisionedTPSwill increase your bill. We recommend starting with 1 forminProvisionedTPS(the default). Track your usage using Amazon CloudWatch metrics, and increase theminProvisionedTPSas necessary.- Parameters:
minProvisionedTPS- Specifies the requested minimum provisioned transactions (recommendations) per second. A highminProvisionedTPSwill increase your bill. We recommend starting with 1 forminProvisionedTPS(the default). Track your usage using Amazon CloudWatch metrics, and increase theminProvisionedTPSas necessary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
campaignConfig
Campaign.Builder campaignConfig(CampaignConfig 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 Campaign.Builder campaignConfig(Consumer<CampaignConfig.Builder> campaignConfig)
The configuration details of a campaign.
This is a convenience method that creates an instance of theCampaignConfig.Builderavoiding the need to create one manually viaCampaignConfig.builder().When the
Consumercompletes,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:
campaignConfig(CampaignConfig)
-
status
Campaign.Builder status(String status)
The status of the campaign.
A campaign can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
- Parameters:
status- The status of the campaign.A campaign can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
failureReason
Campaign.Builder failureReason(String failureReason)
If a campaign fails, the reason behind the failure.
- Parameters:
failureReason- If a campaign fails, the reason behind the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDateTime
Campaign.Builder creationDateTime(Instant creationDateTime)
The date and time (in Unix format) that the campaign was created.
- Parameters:
creationDateTime- The date and time (in Unix format) that the campaign was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDateTime
Campaign.Builder lastUpdatedDateTime(Instant lastUpdatedDateTime)
The date and time (in Unix format) that the campaign was last updated.
- Parameters:
lastUpdatedDateTime- The date and time (in Unix format) that the campaign was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestCampaignUpdate
Campaign.Builder latestCampaignUpdate(CampaignUpdateSummary latestCampaignUpdate)
Sets the value of the LatestCampaignUpdate property for this object.- Parameters:
latestCampaignUpdate- The new value for the LatestCampaignUpdate property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestCampaignUpdate
default Campaign.Builder latestCampaignUpdate(Consumer<CampaignUpdateSummary.Builder> latestCampaignUpdate)
Sets the value of the LatestCampaignUpdate property for this object. This is a convenience method that creates an instance of theCampaignUpdateSummary.Builderavoiding the need to create one manually viaCampaignUpdateSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolatestCampaignUpdate(CampaignUpdateSummary).- Parameters:
latestCampaignUpdate- a consumer that will call methods onCampaignUpdateSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
latestCampaignUpdate(CampaignUpdateSummary)
-
-