Interface BlobPayload.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BlobPayload.Builder,,BlobPayload> SdkBuilder<BlobPayload.Builder,,BlobPayload> SdkPojo
- Enclosing class:
BlobPayload
@Mutable
@NotThreadSafe
public static interface BlobPayload.Builder
extends SdkPojo, CopyableBuilder<BlobPayload.Builder,BlobPayload>
-
Method Summary
Modifier and TypeMethodDescriptioncontentType(String contentType) The document's media type.contentType(BlobContentType contentType) The document's media type.default BlobPayload.Buildersource(Consumer<BlobSource.Builder> source) The location of the document.source(BlobSource source) The location of the document.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, sdkFields
-
Method Details
-
contentType
The document's media type. Only
application/pdfis supported. Any other value fails withValidationException.- Parameters:
contentType- The document's media type. Onlyapplication/pdfis supported. Any other value fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentType
The document's media type. Only
application/pdfis supported. Any other value fails withValidationException.- Parameters:
contentType- The document's media type. Onlyapplication/pdfis supported. Any other value fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The location of the document.
- Parameters:
source- The location of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The location of the document.
This is a convenience method that creates an instance of theBlobSource.Builderavoiding the need to create one manually viaBlobSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(BlobSource).- Parameters:
source- a consumer that will call methods onBlobSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-