Class DeleteObjectAnnotationRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<DeleteObjectAnnotationRequest.Builder,DeleteObjectAnnotationRequest>

@Generated("software.amazon.awssdk:codegen") public final class DeleteObjectAnnotationRequest extends S3Request implements ToCopyableBuilder<DeleteObjectAnnotationRequest.Builder,DeleteObjectAnnotationRequest>
  • Method Details

    • bucket

      public final String bucket()

      The name of the bucket that contains the object.

      Returns:
      The name of the bucket that contains the object.
    • key

      public final String key()

      The object key.

      Returns:
      The object key.
    • annotationName

      public final String annotationName()

      The name of the annotation to delete. Annotation names are UTF-8 encoded and cannot start with aws or s3 (case-insensitive).

      Length Constraints: Minimum length of 1. Maximum length of 512 bytes.

      Returns:
      The name of the annotation to delete. Annotation names are UTF-8 encoded and cannot start with aws or s3 (case-insensitive).

      Length Constraints: Minimum length of 1. Maximum length of 512 bytes.

    • versionId

      public final String versionId()

      The version ID of the object.

      Returns:
      The version ID of the object.
    • requestPayer

      public final RequestPayer requestPayer()
      Returns the value of the RequestPayer property for this object.

      If the service returns an enum value that is not available in the current SDK version, requestPayer will return RequestPayer.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from requestPayerAsString().

      Returns:
      The value of the RequestPayer property for this object.
      See Also:
    • requestPayerAsString

      public final String requestPayerAsString()
      Returns the value of the RequestPayer property for this object.

      If the service returns an enum value that is not available in the current SDK version, requestPayer will return RequestPayer.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from requestPayerAsString().

      Returns:
      The value of the RequestPayer property for this object.
      See Also:
    • expectedBucketOwner

      public final String expectedBucketOwner()

      The account ID of the expected bucket owner.

      Returns:
      The account ID of the expected bucket owner.
    • objectIfMatch

      public final String objectIfMatch()

      If specified, the operation only succeeds if the object's ETag matches the provided value.

      Returns:
      If specified, the operation only succeeds if the object's ETag matches the provided value.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<DeleteObjectAnnotationRequest.Builder,DeleteObjectAnnotationRequest>
      Specified by:
      toBuilder in class S3Request
    • builder

      public static DeleteObjectAnnotationRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends DeleteObjectAnnotationRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo