@Generated(value="software.amazon.awssdk:codegen") public class Attachment extends Object implements software.amazon.awssdk.core.protocol.StructuredPojo, software.amazon.awssdk.utils.builder.ToCopyableBuilder<Attachment.Builder,Attachment>
An attachment to a case communication. The attachment consists of the file name and the content of the file.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Attachment.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Attachment.Builder |
builder() |
ByteBuffer |
data()
The content of the attachment file.
|
boolean |
equals(Object obj) |
String |
fileName()
The name of the attachment file.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(software.amazon.awssdk.core.protocol.ProtocolMarshaller protocolMarshaller) |
static Class<? extends Attachment.Builder> |
serializableBuilderClass() |
Attachment.Builder |
toBuilder() |
String |
toString() |
public String fileName()
The name of the attachment file.
public ByteBuffer data()
The content of the attachment file.
This method will return a new read-only ByteBuffer each time it is invoked.
public Attachment.Builder toBuilder()
toBuilder in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<Attachment.Builder,Attachment>public static Attachment.Builder builder()
public static Class<? extends Attachment.Builder> serializableBuilderClass()
public void marshall(software.amazon.awssdk.core.protocol.ProtocolMarshaller protocolMarshaller)
marshall in interface software.amazon.awssdk.core.protocol.StructuredPojoCopyright © 2018. All rights reserved.