/* * 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.qldb.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Information about the encryption of data at rest in an Amazon QLDB ledger. This includes the current status, the key * in Key Management Service (KMS), and when the key became inaccessible (in the case of an error). *

*

* For more information, see Encryption at rest in the * Amazon QLDB Developer Guide. *

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

* The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for encryption at rest. If * this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption. *

*/ private String kmsKeyArn; /** *

* The current state of encryption at rest for the ledger. This can be one of the following values: *

* */ private String encryptionStatus; /** *

* The date and time, in epoch time format, when the KMS key first became inaccessible, in the case of an error. * (Epoch time format is the number of seconds that have elapsed since 12:00:00 AM January 1, 1970 UTC.) *

*

* This parameter is undefined if the KMS key is accessible. *

*/ private java.util.Date inaccessibleKmsKeyDateTime; /** *

* The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for encryption at rest. If * this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption. *

* * @param kmsKeyArn * The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for encryption at * rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption. */ public void setKmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; } /** *

* The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for encryption at rest. If * this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption. *

* * @return The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for encryption at * rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for * encryption. */ public String getKmsKeyArn() { return this.kmsKeyArn; } /** *

* The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for encryption at rest. If * this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption. *

* * @param kmsKeyArn * The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for encryption at * rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption. * @return Returns a reference to this object so that method calls can be chained together. */ public LedgerEncryptionDescription withKmsKeyArn(String kmsKeyArn) { setKmsKeyArn(kmsKeyArn); return this; } /** *

* The current state of encryption at rest for the ledger. This can be one of the following values: *

* * * @param encryptionStatus * The current state of encryption at rest for the ledger. This can be one of the following values:

*