/* * 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.finspace.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 UpdateKxClusterDatabasesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique identifier of a kdb environment. *
*/ private String environmentId; /** ** A unique name for the cluster that you want to modify. *
*/ private String clusterName; /** ** A token that ensures idempotency. This token expires in 10 minutes. *
*/ private String clientToken; /** ** The structure of databases mounted on the cluster. *
*/ private java.util.List* The unique identifier of a kdb environment. *
* * @param environmentId * The unique identifier of a kdb environment. */ public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; } /** ** The unique identifier of a kdb environment. *
* * @return The unique identifier of a kdb environment. */ public String getEnvironmentId() { return this.environmentId; } /** ** The unique identifier of a kdb environment. *
* * @param environmentId * The unique identifier of a kdb environment. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateKxClusterDatabasesRequest withEnvironmentId(String environmentId) { setEnvironmentId(environmentId); return this; } /** ** A unique name for the cluster that you want to modify. *
* * @param clusterName * A unique name for the cluster that you want to modify. */ public void setClusterName(String clusterName) { this.clusterName = clusterName; } /** ** A unique name for the cluster that you want to modify. *
* * @return A unique name for the cluster that you want to modify. */ public String getClusterName() { return this.clusterName; } /** ** A unique name for the cluster that you want to modify. *
* * @param clusterName * A unique name for the cluster that you want to modify. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateKxClusterDatabasesRequest withClusterName(String clusterName) { setClusterName(clusterName); return this; } /** ** A token that ensures idempotency. This token expires in 10 minutes. *
* * @param clientToken * A token that ensures idempotency. This token expires in 10 minutes. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** A token that ensures idempotency. This token expires in 10 minutes. *
* * @return A token that ensures idempotency. This token expires in 10 minutes. */ public String getClientToken() { return this.clientToken; } /** ** A token that ensures idempotency. This token expires in 10 minutes. *
* * @param clientToken * A token that ensures idempotency. This token expires in 10 minutes. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateKxClusterDatabasesRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The structure of databases mounted on the cluster. *
* * @return The structure of databases mounted on the cluster. */ public java.util.List* The structure of databases mounted on the cluster. *
* * @param databases * The structure of databases mounted on the cluster. */ public void setDatabases(java.util.Collection* The structure of databases mounted on the cluster. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDatabases(java.util.Collection)} or {@link #withDatabases(java.util.Collection)} if you want to * override the existing values. *
* * @param databases * The structure of databases mounted on the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateKxClusterDatabasesRequest withDatabases(KxDatabaseConfiguration... databases) { if (this.databases == null) { setDatabases(new java.util.ArrayList* The structure of databases mounted on the cluster. *
* * @param databases * The structure of databases mounted on the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateKxClusterDatabasesRequest withDatabases(java.util.Collection