Interface GetAttachmentUploadLinksRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetAttachmentUploadLinksRequest.Builder,,GetAttachmentUploadLinksRequest> SdkBuilder<GetAttachmentUploadLinksRequest.Builder,,GetAttachmentUploadLinksRequest> SdkPojo,SdkRequest.Builder,SupportRequest.Builder
- Enclosing class:
GetAttachmentUploadLinksRequest
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether to validate the request without actually generating upload URLs.The name of the file to upload, including the file extension.fileSizeBytes(Long fileSizeBytes) The total size of the file in bytes.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The unique identifier of an in-progress multipart upload, returned by a previous call toGetAttachmentUploadLinks.uploadRange(Consumer<UploadRange.Builder> uploadRange) The range of part indexes for which to return presigned upload URLs.uploadRange(UploadRange uploadRange) The range of part indexes for which to return presigned upload URLs.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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.services.support.model.SupportRequest.Builder
build
-
Method Details
-
fileName
The name of the file to upload, including the file extension. This value is required when you initiate a new upload.
- Parameters:
fileName- The name of the file to upload, including the file extension. This value is required when you initiate a new upload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSizeBytes
The total size of the file in bytes. The service uses this value to calculate the total number of parts and the size of each part. Required when you initiate a new upload (when
uploadIdisn't provided). Valid range: 1 to 157,286,400 bytes (approximately 150 MB).- Parameters:
fileSizeBytes- The total size of the file in bytes. The service uses this value to calculate the total number of parts and the size of each part. Required when you initiate a new upload (whenuploadIdisn't provided). Valid range: 1 to 157,286,400 bytes (approximately 150 MB).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
uploadId
The unique identifier of an in-progress multipart upload, returned by a previous call to
GetAttachmentUploadLinks. SpecifyuploadIdto retrieve additional presigned upload URLs for an upload that has already been initiated. Required whenfileSizeBytesisn't provided. Length: 1 to 2,048 characters.- Parameters:
uploadId- The unique identifier of an in-progress multipart upload, returned by a previous call toGetAttachmentUploadLinks. SpecifyuploadIdto retrieve additional presigned upload URLs for an upload that has already been initiated. Required whenfileSizeBytesisn't provided. Length: 1 to 2,048 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
uploadRange
The range of part indexes for which to return presigned upload URLs. Use this parameter to page through the upload URLs for a large file across multiple calls. If you omit this parameter, the service determines the range to return.
- Parameters:
uploadRange- The range of part indexes for which to return presigned upload URLs. Use this parameter to page through the upload URLs for a large file across multiple calls. If you omit this parameter, the service determines the range to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
uploadRange
default GetAttachmentUploadLinksRequest.Builder uploadRange(Consumer<UploadRange.Builder> uploadRange) The range of part indexes for which to return presigned upload URLs. Use this parameter to page through the upload URLs for a large file across multiple calls. If you omit this parameter, the service determines the range to return.
This is a convenience method that creates an instance of theUploadRange.Builderavoiding the need to create one manually viaUploadRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touploadRange(UploadRange).- Parameters:
uploadRange- a consumer that will call methods onUploadRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Specifies whether to validate the request without actually generating upload URLs. When set to
true, the request is validated but no URLs are returned, and the operation returns aDryRunOperationException. When omitted or set tofalse, the request runs normally.- Parameters:
dryRun- Specifies whether to validate the request without actually generating upload URLs. When set totrue, the request is validated but no URLs are returned, and the operation returns aDryRunOperationException. When omitted or set tofalse, the request runs normally.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetAttachmentUploadLinksRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetAttachmentUploadLinksRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-