StructuredPojo, ToCopyableBuilder<Attachment.Builder,Attachment>@Generated("software.amazon.awssdk:codegen") public class Attachment extends Object implements StructuredPojo, 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 | Description |
|---|---|---|
static interface |
Attachment.Builder |
| Modifier and Type | Method | 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.
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller. |
static Class<? extends Attachment.Builder> |
serializableBuilderClass() |
|
Attachment.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public String fileName()
The name of the attachment file.
public ByteBuffer data()
The content of the attachment file.
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer
. Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
public Attachment.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Attachment.Builder,Attachment>public static Attachment.Builder builder()
public static Class<? extends Attachment.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.