Class ServerSideEncryption
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.ServerSideEncryption
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServerSideEncryption.Builder,ServerSideEncryption>
@Generated("software.amazon.awssdk:codegen") public final class ServerSideEncryption extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServerSideEncryption.Builder,ServerSideEncryption>
Provides information about the default server-side encryption settings for an S3 bucket or the encryption settings for an S3 object.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServerSideEncryption.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerSideEncryption.Builderbuilder()EncryptionTypeencryptionType()The server-side encryption algorithm that's used when storing data in the bucket or object.StringencryptionTypeAsString()The server-side encryption algorithm that's used when storing data in the bucket or object.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkmsMasterKeyId()The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the bucket or the object.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ServerSideEncryption.Builder>serializableBuilderClass()ServerSideEncryption.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 that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
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 that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
- See Also:
EncryptionType
-
encryptionTypeAsString
public final String encryptionTypeAsString()
The server-side encryption algorithm that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
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 that's used when storing data in the bucket or object. If default encryption settings aren't configured for the bucket or the object isn't encrypted using server-side encryption, this value is NONE.
- See Also:
EncryptionType
-
kmsMasterKeyId
public final String kmsMasterKeyId()
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.
- Returns:
- The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used to encrypt data in the bucket or the object. This value is null if an KMS key isn't used to encrypt the data.
-
toBuilder
public ServerSideEncryption.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServerSideEncryption.Builder,ServerSideEncryption>
-
builder
public static ServerSideEncryption.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServerSideEncryption.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
-
-