/* * 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.redshift.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Returns information about an HSM configuration, which is an object that describes to Amazon Redshift clusters the * information they require to connect to an HSM where they can store database encryption keys. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HsmConfiguration implements Serializable, Cloneable { /** ** The name of the Amazon Redshift HSM configuration. *
*/ private String hsmConfigurationIdentifier; /** ** A text description of the HSM configuration. *
*/ private String description; /** ** The IP address that the Amazon Redshift cluster must use to access the HSM. *
*/ private String hsmIpAddress; /** ** The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption * keys. *
*/ private String hsmPartitionName; /** ** The list of tags for the HSM configuration. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the Amazon Redshift HSM configuration. *
* * @param hsmConfigurationIdentifier * The name of the Amazon Redshift HSM configuration. */ public void setHsmConfigurationIdentifier(String hsmConfigurationIdentifier) { this.hsmConfigurationIdentifier = hsmConfigurationIdentifier; } /** ** The name of the Amazon Redshift HSM configuration. *
* * @return The name of the Amazon Redshift HSM configuration. */ public String getHsmConfigurationIdentifier() { return this.hsmConfigurationIdentifier; } /** ** The name of the Amazon Redshift HSM configuration. *
* * @param hsmConfigurationIdentifier * The name of the Amazon Redshift HSM configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withHsmConfigurationIdentifier(String hsmConfigurationIdentifier) { setHsmConfigurationIdentifier(hsmConfigurationIdentifier); return this; } /** ** A text description of the HSM configuration. *
* * @param description * A text description of the HSM configuration. */ public void setDescription(String description) { this.description = description; } /** ** A text description of the HSM configuration. *
* * @return A text description of the HSM configuration. */ public String getDescription() { return this.description; } /** ** A text description of the HSM configuration. *
* * @param description * A text description of the HSM configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withDescription(String description) { setDescription(description); return this; } /** ** The IP address that the Amazon Redshift cluster must use to access the HSM. *
* * @param hsmIpAddress * The IP address that the Amazon Redshift cluster must use to access the HSM. */ public void setHsmIpAddress(String hsmIpAddress) { this.hsmIpAddress = hsmIpAddress; } /** ** The IP address that the Amazon Redshift cluster must use to access the HSM. *
* * @return The IP address that the Amazon Redshift cluster must use to access the HSM. */ public String getHsmIpAddress() { return this.hsmIpAddress; } /** ** The IP address that the Amazon Redshift cluster must use to access the HSM. *
* * @param hsmIpAddress * The IP address that the Amazon Redshift cluster must use to access the HSM. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withHsmIpAddress(String hsmIpAddress) { setHsmIpAddress(hsmIpAddress); return this; } /** ** The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption * keys. *
* * @param hsmPartitionName * The name of the partition in the HSM where the Amazon Redshift clusters will store their database * encryption keys. */ public void setHsmPartitionName(String hsmPartitionName) { this.hsmPartitionName = hsmPartitionName; } /** ** The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption * keys. *
* * @return The name of the partition in the HSM where the Amazon Redshift clusters will store their database * encryption keys. */ public String getHsmPartitionName() { return this.hsmPartitionName; } /** ** The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption * keys. *
* * @param hsmPartitionName * The name of the partition in the HSM where the Amazon Redshift clusters will store their database * encryption keys. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withHsmPartitionName(String hsmPartitionName) { setHsmPartitionName(hsmPartitionName); return this; } /** ** The list of tags for the HSM configuration. *
* * @return The list of tags for the HSM configuration. */ public java.util.List* The list of tags for the HSM configuration. *
* * @param tags * The list of tags for the HSM configuration. */ public void setTags(java.util.Collection* The list of tags for the HSM configuration. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The list of tags for the HSM configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The list of tags for the HSM configuration. *
* * @param tags * The list of tags for the HSM configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public HsmConfiguration withTags(java.util.Collection