@Generated(value="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.
Modifier and Type | Class and Description |
---|---|
static interface |
Encryption.Builder |
Modifier and Type | Method and Description |
---|---|
static Encryption.Builder |
builder() |
EncryptionType |
encryptionType()
The server-side encryption algorithm used when storing job results in Amazon S3, for example
AES256
or aws:kms . |
String |
encryptionTypeAsString()
The server-side encryption algorithm used when storing job results in Amazon S3, for example
AES256
or aws:kms . |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
kmsContext()
Optional.
|
String |
kmsKeyId()
The AWS KMS key ID to use for object encryption.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Encryption.Builder> |
serializableBuilderClass() |
Encryption.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final EncryptionType encryptionType()
The server-side encryption algorithm used when storing job results in Amazon S3, for example AES256
or aws:kms
.
If the service returns an enum value that is not available in the current SDK version, encryptionType
will return EncryptionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from encryptionTypeAsString()
.
AES256
or aws:kms
.EncryptionType
public final String encryptionTypeAsString()
The server-side encryption algorithm used when storing job results in Amazon S3, for example AES256
or aws:kms
.
If the service returns an enum value that is not available in the current SDK version, encryptionType
will return EncryptionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from encryptionTypeAsString()
.
AES256
or aws:kms
.EncryptionType
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.
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.
aws:kms
, you can use this value to specify the
encryption context for the job results.public Encryption.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Encryption.Builder,Encryption>
public static Encryption.Builder builder()
public static Class<? extends Encryption.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.