/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.dynamodbv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents the settings used to enable server-side encryption. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SSESpecification implements Serializable, Cloneable, StructuredPojo { /** *

* Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web * Services owned key. If enabled (true), server-side encryption type is set to KMS and an Amazon Web * Services managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is * set to Amazon Web Services owned key. *

*/ private Boolean enabled; /** *

* Server-side encryption type. The only supported value is: *

* */ private String sSEType; /** *

* The KMS key that should be used for the KMS encryption. To specify a key, use its key ID, Amazon Resource Name * (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from * the default DynamoDB key alias/aws/dynamodb. *

*/ private String kMSMasterKeyId; /** *

* Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web * Services owned key. If enabled (true), server-side encryption type is set to KMS and an Amazon Web * Services managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is * set to Amazon Web Services owned key. *

* * @param enabled * Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web * Services owned key. If enabled (true), server-side encryption type is set to KMS and an * Amazon Web Services managed key is used (KMS charges apply). If disabled (false) or not specified, * server-side encryption is set to Amazon Web Services owned key. */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** *

* Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web * Services owned key. If enabled (true), server-side encryption type is set to KMS and an Amazon Web * Services managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is * set to Amazon Web Services owned key. *

* * @return Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon * Web Services owned key. If enabled (true), server-side encryption type is set to KMS and an * Amazon Web Services managed key is used (KMS charges apply). If disabled (false) or not specified, * server-side encryption is set to Amazon Web Services owned key. */ public Boolean getEnabled() { return this.enabled; } /** *

* Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web * Services owned key. If enabled (true), server-side encryption type is set to KMS and an Amazon Web * Services managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is * set to Amazon Web Services owned key. *

* * @param enabled * Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web * Services owned key. If enabled (true), server-side encryption type is set to KMS and an * Amazon Web Services managed key is used (KMS charges apply). If disabled (false) or not specified, * server-side encryption is set to Amazon Web Services owned key. * @return Returns a reference to this object so that method calls can be chained together. */ public SSESpecification withEnabled(Boolean enabled) { setEnabled(enabled); return this; } /** *

* Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web * Services owned key. If enabled (true), server-side encryption type is set to KMS and an Amazon Web * Services managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is * set to Amazon Web Services owned key. *

* * @return Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon * Web Services owned key. If enabled (true), server-side encryption type is set to KMS and an * Amazon Web Services managed key is used (KMS charges apply). If disabled (false) or not specified, * server-side encryption is set to Amazon Web Services owned key. */ public Boolean isEnabled() { return this.enabled; } /** *

* Server-side encryption type. The only supported value is: *

* * * @param sSEType * Server-side encryption type. The only supported value is:

*