All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.inlong.sort.filesystem.shaded.com.amazonaws.services.kms.model.UpdateCustomKeyStoreRequest Maven / Gradle / Ivy

There is a newer version: 1.13.0
Show newest version
/*
 * Copyright 2017-2022 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.kms.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the ID of * a custom key store, use the DescribeCustomKeyStores operation. *

*/ private String customKeyStoreId; /** *

* Changes the friendly name of the custom key store to the value that you specify. The custom key store name must * be unique in the Amazon Web Services account. *

*/ private String newCustomKeyStoreName; /** *

* Enter the current password of the kmsuser crypto user (CU) in the CloudHSM cluster that is * associated with the custom key store. *

*

* This parameter tells KMS the current password of the kmsuser crypto user (CU). It does not set or * change the password of any users in the CloudHSM cluster. *

*/ private String keyStorePassword; /** *

* Associates the custom key store with a related CloudHSM cluster. *

*

* Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares a * backup history and has the same cluster certificate as the original cluster. You cannot use this parameter to * associate a custom key store with an unrelated cluster. In addition, the replacement cluster must fulfill the * requirements for a cluster associated with a custom key store. To view the cluster certificate of a cluster, * use the DescribeClusters * operation. *

*/ private String cloudHsmClusterId; /** *

* Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the ID of * a custom key store, use the DescribeCustomKeyStores operation. *

* * @param customKeyStoreId * Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the * ID of a custom key store, use the DescribeCustomKeyStores operation. */ public void setCustomKeyStoreId(String customKeyStoreId) { this.customKeyStoreId = customKeyStoreId; } /** *

* Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the ID of * a custom key store, use the DescribeCustomKeyStores operation. *

* * @return Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find * the ID of a custom key store, use the DescribeCustomKeyStores operation. */ public String getCustomKeyStoreId() { return this.customKeyStoreId; } /** *

* Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the ID of * a custom key store, use the DescribeCustomKeyStores operation. *

* * @param customKeyStoreId * Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the * ID of a custom key store, use the DescribeCustomKeyStores operation. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomKeyStoreRequest withCustomKeyStoreId(String customKeyStoreId) { setCustomKeyStoreId(customKeyStoreId); return this; } /** *

* Changes the friendly name of the custom key store to the value that you specify. The custom key store name must * be unique in the Amazon Web Services account. *

* * @param newCustomKeyStoreName * Changes the friendly name of the custom key store to the value that you specify. The custom key store name * must be unique in the Amazon Web Services account. */ public void setNewCustomKeyStoreName(String newCustomKeyStoreName) { this.newCustomKeyStoreName = newCustomKeyStoreName; } /** *

* Changes the friendly name of the custom key store to the value that you specify. The custom key store name must * be unique in the Amazon Web Services account. *

* * @return Changes the friendly name of the custom key store to the value that you specify. The custom key store * name must be unique in the Amazon Web Services account. */ public String getNewCustomKeyStoreName() { return this.newCustomKeyStoreName; } /** *

* Changes the friendly name of the custom key store to the value that you specify. The custom key store name must * be unique in the Amazon Web Services account. *

* * @param newCustomKeyStoreName * Changes the friendly name of the custom key store to the value that you specify. The custom key store name * must be unique in the Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomKeyStoreRequest withNewCustomKeyStoreName(String newCustomKeyStoreName) { setNewCustomKeyStoreName(newCustomKeyStoreName); return this; } /** *

* Enter the current password of the kmsuser crypto user (CU) in the CloudHSM cluster that is * associated with the custom key store. *

*

* This parameter tells KMS the current password of the kmsuser crypto user (CU). It does not set or * change the password of any users in the CloudHSM cluster. *

* * @param keyStorePassword * Enter the current password of the kmsuser crypto user (CU) in the CloudHSM cluster that is * associated with the custom key store.

*

* This parameter tells KMS the current password of the kmsuser crypto user (CU). It does not * set or change the password of any users in the CloudHSM cluster. */ public void setKeyStorePassword(String keyStorePassword) { this.keyStorePassword = keyStorePassword; } /** *

* Enter the current password of the kmsuser crypto user (CU) in the CloudHSM cluster that is * associated with the custom key store. *

*

* This parameter tells KMS the current password of the kmsuser crypto user (CU). It does not set or * change the password of any users in the CloudHSM cluster. *

* * @return Enter the current password of the kmsuser crypto user (CU) in the CloudHSM cluster that is * associated with the custom key store.

*

* This parameter tells KMS the current password of the kmsuser crypto user (CU). It does not * set or change the password of any users in the CloudHSM cluster. */ public String getKeyStorePassword() { return this.keyStorePassword; } /** *

* Enter the current password of the kmsuser crypto user (CU) in the CloudHSM cluster that is * associated with the custom key store. *

*

* This parameter tells KMS the current password of the kmsuser crypto user (CU). It does not set or * change the password of any users in the CloudHSM cluster. *

* * @param keyStorePassword * Enter the current password of the kmsuser crypto user (CU) in the CloudHSM cluster that is * associated with the custom key store.

*

* This parameter tells KMS the current password of the kmsuser crypto user (CU). It does not * set or change the password of any users in the CloudHSM cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomKeyStoreRequest withKeyStorePassword(String keyStorePassword) { setKeyStorePassword(keyStorePassword); return this; } /** *

* Associates the custom key store with a related CloudHSM cluster. *

*

* Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares a * backup history and has the same cluster certificate as the original cluster. You cannot use this parameter to * associate a custom key store with an unrelated cluster. In addition, the replacement cluster must fulfill the * requirements for a cluster associated with a custom key store. To view the cluster certificate of a cluster, * use the DescribeClusters * operation. *

* * @param cloudHsmClusterId * Associates the custom key store with a related CloudHSM cluster.

*

* Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares * a backup history and has the same cluster certificate as the original cluster. You cannot use this * parameter to associate a custom key store with an unrelated cluster. In addition, the replacement cluster * must * fulfill the requirements for a cluster associated with a custom key store. To view the cluster * certificate of a cluster, use the DescribeClusters operation. */ public void setCloudHsmClusterId(String cloudHsmClusterId) { this.cloudHsmClusterId = cloudHsmClusterId; } /** *

* Associates the custom key store with a related CloudHSM cluster. *

*

* Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares a * backup history and has the same cluster certificate as the original cluster. You cannot use this parameter to * associate a custom key store with an unrelated cluster. In addition, the replacement cluster must fulfill the * requirements for a cluster associated with a custom key store. To view the cluster certificate of a cluster, * use the DescribeClusters * operation. *

* * @return Associates the custom key store with a related CloudHSM cluster.

*

* Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares * a backup history and has the same cluster certificate as the original cluster. You cannot use this * parameter to associate a custom key store with an unrelated cluster. In addition, the replacement cluster * must fulfill * the requirements for a cluster associated with a custom key store. To view the cluster certificate of * a cluster, use the DescribeClusters operation. */ public String getCloudHsmClusterId() { return this.cloudHsmClusterId; } /** *

* Associates the custom key store with a related CloudHSM cluster. *

*

* Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares a * backup history and has the same cluster certificate as the original cluster. You cannot use this parameter to * associate a custom key store with an unrelated cluster. In addition, the replacement cluster must fulfill the * requirements for a cluster associated with a custom key store. To view the cluster certificate of a cluster, * use the DescribeClusters * operation. *

* * @param cloudHsmClusterId * Associates the custom key store with a related CloudHSM cluster.

*

* Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares * a backup history and has the same cluster certificate as the original cluster. You cannot use this * parameter to associate a custom key store with an unrelated cluster. In addition, the replacement cluster * must * fulfill the requirements for a cluster associated with a custom key store. To view the cluster * certificate of a cluster, use the DescribeClusters operation. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCustomKeyStoreRequest withCloudHsmClusterId(String cloudHsmClusterId) { setCloudHsmClusterId(cloudHsmClusterId); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCustomKeyStoreId() != null) sb.append("CustomKeyStoreId: ").append(getCustomKeyStoreId()).append(","); if (getNewCustomKeyStoreName() != null) sb.append("NewCustomKeyStoreName: ").append(getNewCustomKeyStoreName()).append(","); if (getKeyStorePassword() != null) sb.append("KeyStorePassword: ").append("***Sensitive Data Redacted***").append(","); if (getCloudHsmClusterId() != null) sb.append("CloudHsmClusterId: ").append(getCloudHsmClusterId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateCustomKeyStoreRequest == false) return false; UpdateCustomKeyStoreRequest other = (UpdateCustomKeyStoreRequest) obj; if (other.getCustomKeyStoreId() == null ^ this.getCustomKeyStoreId() == null) return false; if (other.getCustomKeyStoreId() != null && other.getCustomKeyStoreId().equals(this.getCustomKeyStoreId()) == false) return false; if (other.getNewCustomKeyStoreName() == null ^ this.getNewCustomKeyStoreName() == null) return false; if (other.getNewCustomKeyStoreName() != null && other.getNewCustomKeyStoreName().equals(this.getNewCustomKeyStoreName()) == false) return false; if (other.getKeyStorePassword() == null ^ this.getKeyStorePassword() == null) return false; if (other.getKeyStorePassword() != null && other.getKeyStorePassword().equals(this.getKeyStorePassword()) == false) return false; if (other.getCloudHsmClusterId() == null ^ this.getCloudHsmClusterId() == null) return false; if (other.getCloudHsmClusterId() != null && other.getCloudHsmClusterId().equals(this.getCloudHsmClusterId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCustomKeyStoreId() == null) ? 0 : getCustomKeyStoreId().hashCode()); hashCode = prime * hashCode + ((getNewCustomKeyStoreName() == null) ? 0 : getNewCustomKeyStoreName().hashCode()); hashCode = prime * hashCode + ((getKeyStorePassword() == null) ? 0 : getKeyStorePassword().hashCode()); hashCode = prime * hashCode + ((getCloudHsmClusterId() == null) ? 0 : getCloudHsmClusterId().hashCode()); return hashCode; } @Override public UpdateCustomKeyStoreRequest clone() { return (UpdateCustomKeyStoreRequest) super.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy