Class BucketServerSideEncryption

    • Method Detail

      • kmsMasterKeyId

        public final String kmsMasterKeyId()

        The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an Amazon S3 managed key to encrypt new objects.

        Returns:
        The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an Amazon S3 managed key to encrypt new objects.
      • type

        public final Type type()

        The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:

        • AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.

        • aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.

        • aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.

        • NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.

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

        Returns:
        The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:

        • AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.

        • aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.

        • aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.

        • NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.

        See Also:
        Type
      • typeAsString

        public final String typeAsString()

        The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:

        • AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.

        • aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.

        • aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.

        • NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.

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

        Returns:
        The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:

        • AES256 - New objects use SSE-S3 encryption. They're encrypted with an Amazon S3 managed key.

        • aws:kms - New objects use SSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.

        • aws:kms:dsse - New objects use DSSE-KMS encryption. They're encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key.

        • NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.

        See Also:
        Type
      • hashCode

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

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