Interface StartCampaignAssetActivationTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<StartCampaignAssetActivationTaskResponse.Builder,,StartCampaignAssetActivationTaskResponse> PartnerCentralMarketingResponse.Builder,SdkBuilder<StartCampaignAssetActivationTaskResponse.Builder,,StartCampaignAssetActivationTaskResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
StartCampaignAssetActivationTaskResponse
-
Method Summary
Modifier and TypeMethodDescriptionOne entry per asset the request named, in the order named.assets(Consumer<CampaignAssetActivationOutcome.Builder>... assets) One entry per asset the request named, in the order named.assets(CampaignAssetActivationOutcome... assets) One entry per asset the request named, in the order named.campaignId(String campaignId) The campaign's id.When the task reached a terminal status.When the task was created.Opaque correlation value for the task.taskStatus(String taskStatus) The task's status over every asset it names, refused ones included: one refused and one succeeded is PARTIAL_FAILURE.taskStatus(CampaignAssetActivationTaskStatus taskStatus) The task's status over every asset it names, refused ones included: one refused and one succeeded is PARTIAL_FAILURE.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.partnercentralmarketing.model.PartnerCentralMarketingResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
campaignId
The campaign's id. Canonical: because
CampaignIdentifieraccepts an id or an ARN, echoing this tells a caller who passed an ARN what the id is. The task's own id isTaskId.- Parameters:
campaignId- The campaign's id. Canonical: becauseCampaignIdentifieraccepts an id or an ARN, echoing this tells a caller who passed an ARN what the id is. The task's own id isTaskId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskId
Opaque correlation value for the task. Echoed so a caller can tell the task it started from a later one that superseded it. Never an input: the campaign is what addresses a task, because a campaign has at most one.
- Parameters:
taskId- Opaque correlation value for the task. Echoed so a caller can tell the task it started from a later one that superseded it. Never an input: the campaign is what addresses a task, because a campaign has at most one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskStatus
The task's status over every asset it names, refused ones included: one refused and one succeeded is PARTIAL_FAILURE.
- Parameters:
taskStatus- The task's status over every asset it names, refused ones included: one refused and one succeeded is PARTIAL_FAILURE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
taskStatus
StartCampaignAssetActivationTaskResponse.Builder taskStatus(CampaignAssetActivationTaskStatus taskStatus) The task's status over every asset it names, refused ones included: one refused and one succeeded is PARTIAL_FAILURE.
- Parameters:
taskStatus- The task's status over every asset it names, refused ones included: one refused and one succeeded is PARTIAL_FAILURE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startedAt
When the task was created.
- Parameters:
startedAt- When the task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endedAt
When the task reached a terminal status. Absent while IN_PROGRESS.
- Parameters:
endedAt- When the task reached a terminal status. Absent while IN_PROGRESS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
StartCampaignAssetActivationTaskResponse.Builder assets(Collection<CampaignAssetActivationOutcome> assets) One entry per asset the request named, in the order named. An asset refused up front is FAILED from the first response, with its reason.
- Parameters:
assets- One entry per asset the request named, in the order named. An asset refused up front is FAILED from the first response, with its reason.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
One entry per asset the request named, in the order named. An asset refused up front is FAILED from the first response, with its reason.
- Parameters:
assets- One entry per asset the request named, in the order named. An asset refused up front is FAILED from the first response, with its reason.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
StartCampaignAssetActivationTaskResponse.Builder assets(Consumer<CampaignAssetActivationOutcome.Builder>... assets) One entry per asset the request named, in the order named. An asset refused up front is FAILED from the first response, with its reason.
This is a convenience method that creates an instance of theCampaignAssetActivationOutcome.Builderavoiding the need to create one manually viaCampaignAssetActivationOutcome.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassets(List<CampaignAssetActivationOutcome>).- Parameters:
assets- a consumer that will call methods onCampaignAssetActivationOutcome.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-