/* * Copyright 2010-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.connect.model; import java.io.Serializable; /** *
* The encryption configuration. *
*/ public class EncryptionConfig implements Serializable { /** ** The type of encryption. *
*
* Constraints:
* Allowed Values: KMS
*/
private String encryptionType;
/**
*
* The full ARN of the encryption key. *
** Be sure to provide the full ARN of the encryption key, not just the ID. *
*
* Amazon Connect supports only KMS keys with the default key spec of SYMMETRIC_DEFAULT
.
*
* Constraints:
* Length: 1 - 128
*/
private String keyId;
/**
*
* The type of encryption. *
*
* Constraints:
* Allowed Values: KMS
*
* @return
* The type of encryption. *
* @see EncryptionType */ public String getEncryptionType() { return encryptionType; } /** ** The type of encryption. *
*
* Constraints:
* Allowed Values: KMS
*
* @param encryptionType
* The type of encryption. *
* @see EncryptionType */ public void setEncryptionType(String encryptionType) { this.encryptionType = encryptionType; } /** ** The type of encryption. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: KMS
*
* @param encryptionType
* The type of encryption. *
* @return A reference to this updated object so that method calls can be * chained together. * @see EncryptionType */ public EncryptionConfig withEncryptionType(String encryptionType) { this.encryptionType = encryptionType; return this; } /** ** The type of encryption. *
*
* Constraints:
* Allowed Values: KMS
*
* @param encryptionType
* The type of encryption. *
* @see EncryptionType */ public void setEncryptionType(EncryptionType encryptionType) { this.encryptionType = encryptionType.toString(); } /** ** The type of encryption. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: KMS
*
* @param encryptionType
* The type of encryption. *
* @return A reference to this updated object so that method calls can be * chained together. * @see EncryptionType */ public EncryptionConfig withEncryptionType(EncryptionType encryptionType) { this.encryptionType = encryptionType.toString(); return this; } /** ** The full ARN of the encryption key. *
** Be sure to provide the full ARN of the encryption key, not just the ID. *
*
* Amazon Connect supports only KMS keys with the default key spec of SYMMETRIC_DEFAULT
.
*
* Constraints:
* Length: 1 - 128
*
* @return
* The full ARN of the encryption key. *
** Be sure to provide the full ARN of the encryption key, not just * the ID. *
*
* Amazon Connect supports only KMS keys with the default key spec
* of SYMMETRIC_DEFAULT
.
*
* The full ARN of the encryption key. *
** Be sure to provide the full ARN of the encryption key, not just the ID. *
*
* Amazon Connect supports only KMS keys with the default key spec of SYMMETRIC_DEFAULT
.
*
* Constraints:
* Length: 1 - 128
*
* @param keyId
* The full ARN of the encryption key. *
** Be sure to provide the full ARN of the encryption key, not * just the ID. *
*
* Amazon Connect supports only KMS keys with the default key
* spec of SYMMETRIC_DEFAULT
.
*
* The full ARN of the encryption key. *
** Be sure to provide the full ARN of the encryption key, not just the ID. *
*
* Amazon Connect supports only KMS keys with the default key spec of SYMMETRIC_DEFAULT
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 128
*
* @param keyId
* The full ARN of the encryption key. *
** Be sure to provide the full ARN of the encryption key, not * just the ID. *
*
* Amazon Connect supports only KMS keys with the default key
* spec of SYMMETRIC_DEFAULT
.
*