Interface GetCampaignAssetExportTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCampaignAssetExportTaskResponse.Builder,,GetCampaignAssetExportTaskResponse> PartnerCentralMarketingResponse.Builder,SdkBuilder<GetCampaignAssetExportTaskResponse.Builder,,GetCampaignAssetExportTaskResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCampaignAssetExportTaskResponse
@Mutable
@NotThreadSafe
public static interface GetCampaignAssetExportTaskResponse.Builder
extends PartnerCentralMarketingResponse.Builder, SdkPojo, CopyableBuilder<GetCampaignAssetExportTaskResponse.Builder,GetCampaignAssetExportTaskResponse>
-
Method Summary
Modifier and TypeMethodDescriptionWhen the task was created.downloadUrl(String downloadUrl) Presigned GET URL for the ZIP archive.When DownloadUrl expires.failureReason(Consumer<CampaignAssetExportFailureReason.Builder> failureReason) Why the task failed.failureReason(CampaignAssetExportFailureReason failureReason) Why the task failed.The export task identifier.The task's state.status(CampaignAssetExportTaskStatus status) The task's state.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
-
id
The export task identifier.
- Parameters:
id- The export task identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The task's state.
- Parameters:
status- The task's state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The task's state.
- Parameters:
status- The task's state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
When the task was created.
- Parameters:
createdAt- When the task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
downloadUrl
Presigned GET URL for the ZIP archive. Present only when status is COMPLETED. Freshly minted on each call and short-lived (<=15 minutes).
- Parameters:
downloadUrl- Presigned GET URL for the ZIP archive. Present only when status is COMPLETED. Freshly minted on each call and short-lived (<=15 minutes).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresAt
When DownloadUrl expires. Present only when status is COMPLETED.
- Parameters:
expiresAt- When DownloadUrl expires. Present only when status is COMPLETED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReason
GetCampaignAssetExportTaskResponse.Builder failureReason(CampaignAssetExportFailureReason failureReason) Why the task failed. Present only when status is FAILED.
- Parameters:
failureReason- Why the task failed. Present only when status is FAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReason
default GetCampaignAssetExportTaskResponse.Builder failureReason(Consumer<CampaignAssetExportFailureReason.Builder> failureReason) Why the task failed. Present only when status is FAILED.
This is a convenience method that creates an instance of theCampaignAssetExportFailureReason.Builderavoiding the need to create one manually viaCampaignAssetExportFailureReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailureReason(CampaignAssetExportFailureReason).- Parameters:
failureReason- a consumer that will call methods onCampaignAssetExportFailureReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-