Class CreateBucketResponse

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

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

    • location

      public final String location()

      A forward slash followed by the name of the bucket for all account regional namespace buckets and all global general purpose buckets created in us-east-1. For example, /amzn-s3-demo-bucket. For global general purpose buckets created in other Amazon Web Services Regions, the Location field is the global endpoint URL. For example, http://amzn-s3-demo-bucket.s3.amazonaws.com/.

      Returns:
      A forward slash followed by the name of the bucket for all account regional namespace buckets and all global general purpose buckets created in us-east-1. For example, /amzn-s3-demo-bucket. For global general purpose buckets created in other Amazon Web Services Regions, the Location field is the global endpoint URL. For example, http://amzn-s3-demo-bucket.s3.amazonaws.com/.
    • bucketArn

      public final String bucketArn()

      The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.

      This parameter is only supported for S3 directory buckets. For more information, see Using tags with directory buckets.

      Returns:
      The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.

      This parameter is only supported for S3 directory buckets. For more information, see Using tags with directory buckets.

    • toBuilder

      public CreateBucketResponse.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<CreateBucketResponse.Builder,CreateBucketResponse>
      Specified by:
      toBuilder in class AwsResponse
    • builder

      public static CreateBucketResponse.Builder builder()
    • serializableBuilderClass

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

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

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsResponse
    • 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 SdkResponse
    • 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