Interface GetAttachmentDownloadLinkResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetAttachmentDownloadLinkResponse.Builder,,GetAttachmentDownloadLinkResponse> SdkBuilder<GetAttachmentDownloadLinkResponse.Builder,,GetAttachmentDownloadLinkResponse> SdkPojo,SdkResponse.Builder,SupportResponse.Builder
- Enclosing class:
GetAttachmentDownloadLinkResponse
@Mutable
@NotThreadSafe
public static interface GetAttachmentDownloadLinkResponse.Builder
extends SupportResponse.Builder, SdkPojo, CopyableBuilder<GetAttachmentDownloadLinkResponse.Builder,GetAttachmentDownloadLinkResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondownloadUrl(Consumer<DownloadUrl.Builder> downloadUrl) The presigned download URL and the date and time the URL expires.downloadUrl(DownloadUrl downloadUrl) The presigned download URL and the date and time the URL expires.The name of the attachment file, including the file extension.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.support.model.SupportResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
fileName
The name of the attachment file, including the file extension.
- Parameters:
fileName- The name of the attachment file, including the file extension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
downloadUrl
The presigned download URL and the date and time the URL expires.
- Parameters:
downloadUrl- The presigned download URL and the date and time the URL expires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
downloadUrl
default GetAttachmentDownloadLinkResponse.Builder downloadUrl(Consumer<DownloadUrl.Builder> downloadUrl) The presigned download URL and the date and time the URL expires.
This is a convenience method that creates an instance of theDownloadUrl.Builderavoiding the need to create one manually viaDownloadUrl.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todownloadUrl(DownloadUrl).- Parameters:
downloadUrl- a consumer that will call methods onDownloadUrl.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-