Class S3EncryptionConfig

    • Method Detail

      • encryptionMode

        public final EncryptionMode encryptionMode()

        The encryption method to use for artifacts created by this canary. Specify SSE_S3 to use server-side encryption (SSE) with an Amazon S3-managed key. Specify SSE-KMS to use server-side encryption with a customer-managed KMS key.

        If you omit this parameter, an Amazon Web Services-managed KMS key is used.

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

        Returns:
        The encryption method to use for artifacts created by this canary. Specify SSE_S3 to use server-side encryption (SSE) with an Amazon S3-managed key. Specify SSE-KMS to use server-side encryption with a customer-managed KMS key.

        If you omit this parameter, an Amazon Web Services-managed KMS key is used.

        See Also:
        EncryptionMode
      • encryptionModeAsString

        public final String encryptionModeAsString()

        The encryption method to use for artifacts created by this canary. Specify SSE_S3 to use server-side encryption (SSE) with an Amazon S3-managed key. Specify SSE-KMS to use server-side encryption with a customer-managed KMS key.

        If you omit this parameter, an Amazon Web Services-managed KMS key is used.

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

        Returns:
        The encryption method to use for artifacts created by this canary. Specify SSE_S3 to use server-side encryption (SSE) with an Amazon S3-managed key. Specify SSE-KMS to use server-side encryption with a customer-managed KMS key.

        If you omit this parameter, an Amazon Web Services-managed KMS key is used.

        See Also:
        EncryptionMode
      • kmsKeyArn

        public final String kmsKeyArn()

        The ARN of the customer-managed KMS key to use, if you specify SSE-KMS for EncryptionMode

        Returns:
        The ARN of the customer-managed KMS key to use, if you specify SSE-KMS for EncryptionMode
      • 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)