Class AttachmentContent
- java.lang.Object
-
- software.amazon.awssdk.services.ssm.model.AttachmentContent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AttachmentContent.Builder,AttachmentContent>
@Generated("software.amazon.awssdk:codegen") public final class AttachmentContent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AttachmentContent.Builder,AttachmentContent>
A structure that includes attributes that describe a document attachment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAttachmentContent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentContent.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)Stringhash()The cryptographic hash value of the document content.inthashCode()AttachmentHashTypehashType()The hash algorithm used to calculate the hash value.StringhashTypeAsString()The hash algorithm used to calculate the hash value.Stringname()The name of an attachment.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AttachmentContent.Builder>serializableBuilderClass()Longsize()The size of an attachment in bytes.AttachmentContent.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringurl()The URL location of the attachment content.-
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
-
name
public final String name()
The name of an attachment.
- Returns:
- The name of an attachment.
-
size
public final Long size()
The size of an attachment in bytes.
- Returns:
- The size of an attachment in bytes.
-
hash
public final String hash()
The cryptographic hash value of the document content.
- Returns:
- The cryptographic hash value of the document content.
-
hashType
public final AttachmentHashType hashType()
The hash algorithm used to calculate the hash value.
If the service returns an enum value that is not available in the current SDK version,
hashTypewill returnAttachmentHashType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhashTypeAsString().- Returns:
- The hash algorithm used to calculate the hash value.
- See Also:
AttachmentHashType
-
hashTypeAsString
public final String hashTypeAsString()
The hash algorithm used to calculate the hash value.
If the service returns an enum value that is not available in the current SDK version,
hashTypewill returnAttachmentHashType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhashTypeAsString().- Returns:
- The hash algorithm used to calculate the hash value.
- See Also:
AttachmentHashType
-
url
public final String url()
The URL location of the attachment content.
- Returns:
- The URL location of the attachment content.
-
toBuilder
public AttachmentContent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AttachmentContent.Builder,AttachmentContent>
-
builder
public static AttachmentContent.Builder builder()
-
serializableBuilderClass
public static Class<? extends AttachmentContent.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-