Class Attachment
- java.lang.Object
-
- software.amazon.awssdk.services.support.model.Attachment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Attachment.Builder,Attachment>
@Generated("software.amazon.awssdk:codegen") public final class Attachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Attachment.Builder,Attachment>
An attachment to a case communication. The attachment consists of the file name and the content of the file.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAttachment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Attachment.Builderbuilder()SdkBytesdata()The content of the attachment file.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfileName()The name of the attachment file.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Attachment.Builder>serializableBuilderClass()Attachment.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
fileName
public final String fileName()
The name of the attachment file.
- Returns:
- The name of the attachment file.
-
data
public final SdkBytes data()
The content of the attachment file.
- Returns:
- The content of the attachment file.
-
toBuilder
public Attachment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Attachment.Builder,Attachment>
-
builder
public static Attachment.Builder builder()
-
serializableBuilderClass
public static Class<? extends Attachment.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-