Interface AttachmentInput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AttachmentInput.Builder,
,AttachmentInput> SdkBuilder<AttachmentInput.Builder,
,AttachmentInput> SdkPojo
- Enclosing class:
AttachmentInput
@Mutable
@NotThreadSafe
public static interface AttachmentInput.Builder
extends SdkPojo, CopyableBuilder<AttachmentInput.Builder,AttachmentInput>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AttachmentInput.Builder
copyFrom
(Consumer<CopyFromSource.Builder> copyFrom) A reference to an existing attachment.copyFrom
(CopyFromSource copyFrom) A reference to an existing attachment.The contents of the attachment.The filename of the attachment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
data
The contents of the attachment.
- Parameters:
data
- The contents of the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The filename of the attachment.
- Parameters:
name
- The filename of the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyFrom
A reference to an existing attachment.
- Parameters:
copyFrom
- A reference to an existing attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyFrom
A reference to an existing attachment.
This is a convenience method that creates an instance of theCopyFromSource.Builder
avoiding the need to create one manually viaCopyFromSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocopyFrom(CopyFromSource)
.- Parameters:
copyFrom
- a consumer that will call methods onCopyFromSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-