Interface Campaign.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Campaign.Builder,
,Campaign> SdkBuilder<Campaign.Builder,
,Campaign> SdkPojo
- Enclosing class:
Campaign
-
Method Summary
Modifier and TypeMethodDescriptioncampaignArn
(String campaignArn) The Amazon Resource Name (ARN) of the campaign.default Campaign.Builder
campaignConfig
(Consumer<CampaignConfig.Builder> campaignConfig) The configuration details of a campaign.campaignConfig
(CampaignConfig campaignConfig) The configuration details of a campaign.creationDateTime
(Instant creationDateTime) The date and time (in Unix format) that the campaign was created.failureReason
(String failureReason) If a campaign fails, the reason behind the failure.lastUpdatedDateTime
(Instant lastUpdatedDateTime) The date and time (in Unix format) that the campaign was last updated.default Campaign.Builder
latestCampaignUpdate
(Consumer<CampaignUpdateSummary.Builder> latestCampaignUpdate) Sets the value of the LatestCampaignUpdate property for this object.latestCampaignUpdate
(CampaignUpdateSummary latestCampaignUpdate) Sets the value of the LatestCampaignUpdate property for this object.minProvisionedTPS
(Integer minProvisionedTPS) Specifies the requested minimum provisioned transactions (recommendations) per second.The name of the campaign.solutionVersionArn
(String solutionVersionArn) The Amazon Resource Name (ARN) of the solution version the campaign uses.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 Details
-
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
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
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
Specifies the requested minimum provisioned transactions (recommendations) per second. 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. 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
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:
-
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
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
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
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
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.Builder
avoiding the need to create one manually viaCampaignUpdateSummary.builder()
.When the
Consumer
completes,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:
-