@Generated(value="software.amazon.awssdk:codegen") public final 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 and Description |
---|---|
static interface |
Attachment.Builder |
Modifier and Type | Method and Description |
---|---|
static Attachment.Builder |
builder() |
SdkBytes |
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(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() |
copy
public String fileName()
The name of the attachment file.
public SdkBytes data()
The content of the attachment file.
public Attachment.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Attachment.Builder,Attachment>
public static Attachment.Builder builder()
public static Class<? extends Attachment.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.