Class Encryption
- java.lang.Object
-
- software.amazon.awssdk.services.glacier.model.Encryption
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Encryption.Builder,Encryption>
@Generated("software.amazon.awssdk:codegen") public final class Encryption extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Encryption.Builder,Encryption>
Contains information about the encryption used to store the job results in Amazon S3.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEncryption.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Encryption.Builderbuilder()EncryptionTypeencryptionType()The server-side encryption algorithm used when storing job results in Amazon S3, for exampleAES256oraws:kms.StringencryptionTypeAsString()The server-side encryption algorithm used when storing job results in Amazon S3, for exampleAES256oraws:kms.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkmsContext()Optional.StringkmsKeyId()The AWS KMS key ID to use for object encryption.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Encryption.Builder>serializableBuilderClass()Encryption.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
encryptionType
public final EncryptionType encryptionType()
The server-side encryption algorithm used when storing job results in Amazon S3, for example
AES256oraws:kms.If the service returns an enum value that is not available in the current SDK version,
encryptionTypewill returnEncryptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromencryptionTypeAsString().- Returns:
- The server-side encryption algorithm used when storing job results in Amazon S3, for example
AES256oraws:kms. - See Also:
EncryptionType
-
encryptionTypeAsString
public final String encryptionTypeAsString()
The server-side encryption algorithm used when storing job results in Amazon S3, for example
AES256oraws:kms.If the service returns an enum value that is not available in the current SDK version,
encryptionTypewill returnEncryptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromencryptionTypeAsString().- Returns:
- The server-side encryption algorithm used when storing job results in Amazon S3, for example
AES256oraws:kms. - See Also:
EncryptionType
-
kmsKeyId
public final String kmsKeyId()
The AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS fail if not made by using Secure Sockets Layer (SSL) or Signature Version 4.
- Returns:
- The AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS fail if not made by using Secure Sockets Layer (SSL) or Signature Version 4.
-
kmsContext
public final String kmsContext()
Optional. If the encryption type is
aws:kms, you can use this value to specify the encryption context for the job results.- Returns:
- Optional. If the encryption type is
aws:kms, you can use this value to specify the encryption context for the job results.
-
toBuilder
public Encryption.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Encryption.Builder,Encryption>
-
builder
public static Encryption.Builder builder()
-
serializableBuilderClass
public static Class<? extends Encryption.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
-
-