/*
* 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetKxClusterResult extends com.amazonaws.AmazonWebServiceResult
* The status of cluster creation.
*
* PENDING – The cluster is pending creation.
*
* CREATING – The cluster creation process is in progress.
*
* CREATE_FAILED – The cluster creation process has failed.
*
* RUNNING – The cluster creation process is running.
*
* UPDATING – The cluster is in the process of being updated.
*
* DELETING – The cluster is in the process of being deleted.
*
* DELETED – The cluster has been deleted.
*
* DELETE_FAILED – The cluster failed to delete.
*
* The error message when a failed state occurs.
*
* A unique name for the cluster.
*
* Specifies the type of KDB database that is being created. The following types are available:
*
* HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace
* managed kdb databases mounted to the cluster.
*
* RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in
* memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster
* type requires local storage for temporary storage of data during the savedown process. If you specify this field
* in your request, you must provide the
* GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create
* your own routing logic using the initialization scripts and custom code. This type of cluster does not require a
* writable local storage.
*
* A list of databases mounted on the cluster.
*
* The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx
* Lustre that reads from the S3 store.
*
* The configuration based on which FinSpace will scale in or scale out nodes in your cluster.
*
* A description of the cluster.
*
* A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances,
* number of instances, and the port used while establishing a connection.
*
* The version of FinSpace managed kdb to run.
*
* Configuration details about the network where the Privatelink endpoint of the cluster resides.
*
* Specifies a Q program that will be run at launch of a cluster. It is a relative path within .zip file that
* contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example,
*
* Defines key-value pairs to make them available inside the cluster.
*
* The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of the S3
* source bucket, location, S3 object version, and the relative path from where the custom code is loaded into the
* cluster.
*
* An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a
* cluster attempts to access another cluster.
*
* The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For example,
* the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
* The size and type of the temporary storage that is used to hold data during the savedown process. This parameter
* is required when you choose
* The number of availability zones you want to assign per cluster. This can be one of the following
*
*
*
* The availability zone identifiers for the requested regions.
*
* The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in
* milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*
* The status of cluster creation.
*
* PENDING – The cluster is pending creation.
*
* CREATING – The cluster creation process is in progress.
*
* CREATE_FAILED – The cluster creation process has failed.
*
* RUNNING – The cluster creation process is running.
*
* UPDATING – The cluster is in the process of being updated.
*
* DELETING – The cluster is in the process of being deleted.
*
* DELETED – The cluster has been deleted.
*
* DELETE_FAILED – The cluster failed to delete.
*
*
*/
private String status;
/**
*
*
*/
private String clusterType;
/**
* savedownStorageConfiguration
parameter.
* somedir/init.q
.
* clusterType
as RDB. All the data written to this storage space is lost
* when the cluster node is restarted.
*
*
*/
private String azMode;
/**
* SINGLE
– Assigns one availability zone per cluster.
* MULTI
– Assigns all the availability zones per cluster.
*
*
*
* @param status
* The status of cluster creation.
* PENDING – The cluster is pending creation. *
** CREATING – The cluster creation process is in progress. *
** CREATE_FAILED – The cluster creation process has failed. *
** RUNNING – The cluster creation process is running. *
** UPDATING – The cluster is in the process of being updated. *
** DELETING – The cluster is in the process of being deleted. *
** DELETED – The cluster has been deleted. *
** DELETE_FAILED – The cluster failed to delete. *
** The status of cluster creation. *
** PENDING – The cluster is pending creation. *
** CREATING – The cluster creation process is in progress. *
** CREATE_FAILED – The cluster creation process has failed. *
** RUNNING – The cluster creation process is running. *
** UPDATING – The cluster is in the process of being updated. *
** DELETING – The cluster is in the process of being deleted. *
** DELETED – The cluster has been deleted. *
** DELETE_FAILED – The cluster failed to delete. *
** PENDING – The cluster is pending creation. *
** CREATING – The cluster creation process is in progress. *
** CREATE_FAILED – The cluster creation process has failed. *
** RUNNING – The cluster creation process is running. *
** UPDATING – The cluster is in the process of being updated. *
** DELETING – The cluster is in the process of being deleted. *
** DELETED – The cluster has been deleted. *
** DELETE_FAILED – The cluster failed to delete. *
** The status of cluster creation. *
** PENDING – The cluster is pending creation. *
** CREATING – The cluster creation process is in progress. *
** CREATE_FAILED – The cluster creation process has failed. *
** RUNNING – The cluster creation process is running. *
** UPDATING – The cluster is in the process of being updated. *
** DELETING – The cluster is in the process of being deleted. *
** DELETED – The cluster has been deleted. *
** DELETE_FAILED – The cluster failed to delete. *
** PENDING – The cluster is pending creation. *
** CREATING – The cluster creation process is in progress. *
** CREATE_FAILED – The cluster creation process has failed. *
** RUNNING – The cluster creation process is running. *
** UPDATING – The cluster is in the process of being updated. *
** DELETING – The cluster is in the process of being deleted. *
** DELETED – The cluster has been deleted. *
** DELETE_FAILED – The cluster failed to delete. *
** The status of cluster creation. *
** PENDING – The cluster is pending creation. *
** CREATING – The cluster creation process is in progress. *
** CREATE_FAILED – The cluster creation process has failed. *
** RUNNING – The cluster creation process is running. *
** UPDATING – The cluster is in the process of being updated. *
** DELETING – The cluster is in the process of being deleted. *
** DELETED – The cluster has been deleted. *
** DELETE_FAILED – The cluster failed to delete. *
** PENDING – The cluster is pending creation. *
** CREATING – The cluster creation process is in progress. *
** CREATE_FAILED – The cluster creation process has failed. *
** RUNNING – The cluster creation process is running. *
** UPDATING – The cluster is in the process of being updated. *
** DELETING – The cluster is in the process of being deleted. *
** DELETED – The cluster has been deleted. *
** DELETE_FAILED – The cluster failed to delete. *
** The error message when a failed state occurs. *
* * @param statusReason * The error message when a failed state occurs. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** ** The error message when a failed state occurs. *
* * @return The error message when a failed state occurs. */ public String getStatusReason() { return this.statusReason; } /** ** The error message when a failed state occurs. *
* * @param statusReason * The error message when a failed state occurs. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** ** A unique name for the cluster. *
* * @param clusterName * A unique name for the cluster. */ public void setClusterName(String clusterName) { this.clusterName = clusterName; } /** ** A unique name for the cluster. *
* * @return A unique name for the cluster. */ public String getClusterName() { return this.clusterName; } /** ** A unique name for the cluster. *
* * @param clusterName * A unique name for the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withClusterName(String clusterName) { setClusterName(clusterName); return this; } /** ** Specifies the type of KDB database that is being created. The following types are available: *
** HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace * managed kdb databases mounted to the cluster. *
*
* RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in
* memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster
* type requires local storage for temporary storage of data during the savedown process. If you specify this field
* in your request, you must provide the savedownStorageConfiguration
parameter.
*
* GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create * your own routing logic using the initialization scripts and custom code. This type of cluster does not require a * writable local storage. *
** HDB – A Historical Database. The data is only accessible with read-only permissions from one of the * FinSpace managed kdb databases mounted to the cluster. *
*
* RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it
* in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This
* cluster type requires local storage for temporary storage of data during the savedown process. If you
* specify this field in your request, you must provide the savedownStorageConfiguration
* parameter.
*
* GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to * create your own routing logic using the initialization scripts and custom code. This type of cluster does * not require a writable local storage. *
** Specifies the type of KDB database that is being created. The following types are available: *
** HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace * managed kdb databases mounted to the cluster. *
*
* RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in
* memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster
* type requires local storage for temporary storage of data during the savedown process. If you specify this field
* in your request, you must provide the savedownStorageConfiguration
parameter.
*
* GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create * your own routing logic using the initialization scripts and custom code. This type of cluster does not require a * writable local storage. *
** HDB – A Historical Database. The data is only accessible with read-only permissions from one of the * FinSpace managed kdb databases mounted to the cluster. *
*
* RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it
* in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This
* cluster type requires local storage for temporary storage of data during the savedown process. If you
* specify this field in your request, you must provide the savedownStorageConfiguration
* parameter.
*
* GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to * create your own routing logic using the initialization scripts and custom code. This type of cluster does * not require a writable local storage. *
** Specifies the type of KDB database that is being created. The following types are available: *
** HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace * managed kdb databases mounted to the cluster. *
*
* RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in
* memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster
* type requires local storage for temporary storage of data during the savedown process. If you specify this field
* in your request, you must provide the savedownStorageConfiguration
parameter.
*
* GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create * your own routing logic using the initialization scripts and custom code. This type of cluster does not require a * writable local storage. *
** HDB – A Historical Database. The data is only accessible with read-only permissions from one of the * FinSpace managed kdb databases mounted to the cluster. *
*
* RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it
* in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This
* cluster type requires local storage for temporary storage of data during the savedown process. If you
* specify this field in your request, you must provide the savedownStorageConfiguration
* parameter.
*
* GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to * create your own routing logic using the initialization scripts and custom code. This type of cluster does * not require a writable local storage. *
** Specifies the type of KDB database that is being created. The following types are available: *
** HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace * managed kdb databases mounted to the cluster. *
*
* RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in
* memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster
* type requires local storage for temporary storage of data during the savedown process. If you specify this field
* in your request, you must provide the savedownStorageConfiguration
parameter.
*
* GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create * your own routing logic using the initialization scripts and custom code. This type of cluster does not require a * writable local storage. *
** HDB – A Historical Database. The data is only accessible with read-only permissions from one of the * FinSpace managed kdb databases mounted to the cluster. *
*
* RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it
* in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This
* cluster type requires local storage for temporary storage of data during the savedown process. If you
* specify this field in your request, you must provide the savedownStorageConfiguration
* parameter.
*
* GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to * create your own routing logic using the initialization scripts and custom code. This type of cluster does * not require a writable local storage. *
** A list of databases mounted on the cluster. *
* * @return A list of databases mounted on the cluster. */ public java.util.List* A list of databases mounted on the cluster. *
* * @param databases * A list of databases mounted on the cluster. */ public void setDatabases(java.util.Collection* A list 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 * A list of databases mounted on the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withDatabases(KxDatabaseConfiguration... databases) { if (this.databases == null) { setDatabases(new java.util.ArrayList* A list of databases mounted on the cluster. *
* * @param databases * A list of databases mounted on the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withDatabases(java.util.Collection* The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx * Lustre that reads from the S3 store. *
* * @return The configurations for a read only cache storage associated with a cluster. This cache will be stored as * an FSx Lustre that reads from the S3 store. */ public java.util.List* The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx * Lustre that reads from the S3 store. *
* * @param cacheStorageConfigurations * The configurations for a read only cache storage associated with a cluster. This cache will be stored as * an FSx Lustre that reads from the S3 store. */ public void setCacheStorageConfigurations(java.util.Collection* The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx * Lustre that reads from the S3 store. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCacheStorageConfigurations(java.util.Collection)} or * {@link #withCacheStorageConfigurations(java.util.Collection)} if you want to override the existing values. *
* * @param cacheStorageConfigurations * The configurations for a read only cache storage associated with a cluster. This cache will be stored as * an FSx Lustre that reads from the S3 store. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withCacheStorageConfigurations(KxCacheStorageConfiguration... cacheStorageConfigurations) { if (this.cacheStorageConfigurations == null) { setCacheStorageConfigurations(new java.util.ArrayList* The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx * Lustre that reads from the S3 store. *
* * @param cacheStorageConfigurations * The configurations for a read only cache storage associated with a cluster. This cache will be stored as * an FSx Lustre that reads from the S3 store. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withCacheStorageConfigurations(java.util.Collection* The configuration based on which FinSpace will scale in or scale out nodes in your cluster. *
* * @param autoScalingConfiguration * The configuration based on which FinSpace will scale in or scale out nodes in your cluster. */ public void setAutoScalingConfiguration(AutoScalingConfiguration autoScalingConfiguration) { this.autoScalingConfiguration = autoScalingConfiguration; } /** ** The configuration based on which FinSpace will scale in or scale out nodes in your cluster. *
* * @return The configuration based on which FinSpace will scale in or scale out nodes in your cluster. */ public AutoScalingConfiguration getAutoScalingConfiguration() { return this.autoScalingConfiguration; } /** ** The configuration based on which FinSpace will scale in or scale out nodes in your cluster. *
* * @param autoScalingConfiguration * The configuration based on which FinSpace will scale in or scale out nodes in your cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withAutoScalingConfiguration(AutoScalingConfiguration autoScalingConfiguration) { setAutoScalingConfiguration(autoScalingConfiguration); return this; } /** ** A description of the cluster. *
* * @param clusterDescription * A description of the cluster. */ public void setClusterDescription(String clusterDescription) { this.clusterDescription = clusterDescription; } /** ** A description of the cluster. *
* * @return A description of the cluster. */ public String getClusterDescription() { return this.clusterDescription; } /** ** A description of the cluster. *
* * @param clusterDescription * A description of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withClusterDescription(String clusterDescription) { setClusterDescription(clusterDescription); return this; } /** ** A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances, * number of instances, and the port used while establishing a connection. *
* * @param capacityConfiguration * A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of * instances, number of instances, and the port used while establishing a connection. */ public void setCapacityConfiguration(CapacityConfiguration capacityConfiguration) { this.capacityConfiguration = capacityConfiguration; } /** ** A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances, * number of instances, and the port used while establishing a connection. *
* * @return A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of * instances, number of instances, and the port used while establishing a connection. */ public CapacityConfiguration getCapacityConfiguration() { return this.capacityConfiguration; } /** ** A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances, * number of instances, and the port used while establishing a connection. *
* * @param capacityConfiguration * A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of * instances, number of instances, and the port used while establishing a connection. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withCapacityConfiguration(CapacityConfiguration capacityConfiguration) { setCapacityConfiguration(capacityConfiguration); return this; } /** ** The version of FinSpace managed kdb to run. *
* * @param releaseLabel * The version of FinSpace managed kdb to run. */ public void setReleaseLabel(String releaseLabel) { this.releaseLabel = releaseLabel; } /** ** The version of FinSpace managed kdb to run. *
* * @return The version of FinSpace managed kdb to run. */ public String getReleaseLabel() { return this.releaseLabel; } /** ** The version of FinSpace managed kdb to run. *
* * @param releaseLabel * The version of FinSpace managed kdb to run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withReleaseLabel(String releaseLabel) { setReleaseLabel(releaseLabel); return this; } /** ** Configuration details about the network where the Privatelink endpoint of the cluster resides. *
* * @param vpcConfiguration * Configuration details about the network where the Privatelink endpoint of the cluster resides. */ public void setVpcConfiguration(VpcConfiguration vpcConfiguration) { this.vpcConfiguration = vpcConfiguration; } /** ** Configuration details about the network where the Privatelink endpoint of the cluster resides. *
* * @return Configuration details about the network where the Privatelink endpoint of the cluster resides. */ public VpcConfiguration getVpcConfiguration() { return this.vpcConfiguration; } /** ** Configuration details about the network where the Privatelink endpoint of the cluster resides. *
* * @param vpcConfiguration * Configuration details about the network where the Privatelink endpoint of the cluster resides. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withVpcConfiguration(VpcConfiguration vpcConfiguration) { setVpcConfiguration(vpcConfiguration); return this; } /** *
* Specifies a Q program that will be run at launch of a cluster. It is a relative path within .zip file that
* contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example,
* somedir/init.q
.
*
somedir/init.q
.
*/
public void setInitializationScript(String initializationScript) {
this.initializationScript = initializationScript;
}
/**
*
* Specifies a Q program that will be run at launch of a cluster. It is a relative path within .zip file that
* contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example,
* somedir/init.q
.
*
somedir/init.q
.
*/
public String getInitializationScript() {
return this.initializationScript;
}
/**
*
* Specifies a Q program that will be run at launch of a cluster. It is a relative path within .zip file that
* contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example,
* somedir/init.q
.
*
somedir/init.q
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetKxClusterResult withInitializationScript(String initializationScript) {
setInitializationScript(initializationScript);
return this;
}
/**
* * Defines key-value pairs to make them available inside the cluster. *
* * @return Defines key-value pairs to make them available inside the cluster. */ public java.util.List* Defines key-value pairs to make them available inside the cluster. *
* * @param commandLineArguments * Defines key-value pairs to make them available inside the cluster. */ public void setCommandLineArguments(java.util.Collection* Defines key-value pairs to make them available inside the cluster. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCommandLineArguments(java.util.Collection)} or {@link #withCommandLineArguments(java.util.Collection)} * if you want to override the existing values. *
* * @param commandLineArguments * Defines key-value pairs to make them available inside the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withCommandLineArguments(KxCommandLineArgument... commandLineArguments) { if (this.commandLineArguments == null) { setCommandLineArguments(new java.util.ArrayList* Defines key-value pairs to make them available inside the cluster. *
* * @param commandLineArguments * Defines key-value pairs to make them available inside the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withCommandLineArguments(java.util.Collection* The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of the S3 * source bucket, location, S3 object version, and the relative path from where the custom code is loaded into the * cluster. *
* * @param code * The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of * the S3 source bucket, location, S3 object version, and the relative path from where the custom code is * loaded into the cluster. */ public void setCode(CodeConfiguration code) { this.code = code; } /** ** The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of the S3 * source bucket, location, S3 object version, and the relative path from where the custom code is loaded into the * cluster. *
* * @return The details of the custom code that you want to use inside a cluster when analyzing a data. It consists * of the S3 source bucket, location, S3 object version, and the relative path from where the custom code is * loaded into the cluster. */ public CodeConfiguration getCode() { return this.code; } /** ** The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of the S3 * source bucket, location, S3 object version, and the relative path from where the custom code is loaded into the * cluster. *
* * @param code * The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of * the S3 source bucket, location, S3 object version, and the relative path from where the custom code is * loaded into the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withCode(CodeConfiguration code) { setCode(code); return this; } /** ** An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a * cluster attempts to access another cluster. *
* * @param executionRole * An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed * when a cluster attempts to access another cluster. */ public void setExecutionRole(String executionRole) { this.executionRole = executionRole; } /** ** An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a * cluster attempts to access another cluster. *
* * @return An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed * when a cluster attempts to access another cluster. */ public String getExecutionRole() { return this.executionRole; } /** ** An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a * cluster attempts to access another cluster. *
* * @param executionRole * An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed * when a cluster attempts to access another cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withExecutionRole(String executionRole) { setExecutionRole(executionRole); return this; } /** ** The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For example, * the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *
* * @param lastModifiedTimestamp * The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For * example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. */ public void setLastModifiedTimestamp(java.util.Date lastModifiedTimestamp) { this.lastModifiedTimestamp = lastModifiedTimestamp; } /** ** The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For example, * the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *
* * @return The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For * example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. */ public java.util.Date getLastModifiedTimestamp() { return this.lastModifiedTimestamp; } /** ** The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For example, * the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *
* * @param lastModifiedTimestamp * The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For * example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withLastModifiedTimestamp(java.util.Date lastModifiedTimestamp) { setLastModifiedTimestamp(lastModifiedTimestamp); return this; } /** *
* The size and type of the temporary storage that is used to hold data during the savedown process. This parameter
* is required when you choose clusterType
as RDB. All the data written to this storage space is lost
* when the cluster node is restarted.
*
clusterType
as RDB. All the data written to this
* storage space is lost when the cluster node is restarted.
*/
public void setSavedownStorageConfiguration(KxSavedownStorageConfiguration savedownStorageConfiguration) {
this.savedownStorageConfiguration = savedownStorageConfiguration;
}
/**
*
* The size and type of the temporary storage that is used to hold data during the savedown process. This parameter
* is required when you choose clusterType
as RDB. All the data written to this storage space is lost
* when the cluster node is restarted.
*
clusterType
as RDB. All the data written to this
* storage space is lost when the cluster node is restarted.
*/
public KxSavedownStorageConfiguration getSavedownStorageConfiguration() {
return this.savedownStorageConfiguration;
}
/**
*
* The size and type of the temporary storage that is used to hold data during the savedown process. This parameter
* is required when you choose clusterType
as RDB. All the data written to this storage space is lost
* when the cluster node is restarted.
*
clusterType
as RDB. All the data written to this
* storage space is lost when the cluster node is restarted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetKxClusterResult withSavedownStorageConfiguration(KxSavedownStorageConfiguration savedownStorageConfiguration) {
setSavedownStorageConfiguration(savedownStorageConfiguration);
return this;
}
/**
* * The number of availability zones you want to assign per cluster. This can be one of the following *
*
* SINGLE
– Assigns one availability zone per cluster.
*
* MULTI
– Assigns all the availability zones per cluster.
*
* SINGLE
– Assigns one availability zone per cluster.
*
* MULTI
– Assigns all the availability zones per cluster.
*
* The number of availability zones you want to assign per cluster. This can be one of the following *
*
* SINGLE
– Assigns one availability zone per cluster.
*
* MULTI
– Assigns all the availability zones per cluster.
*
* SINGLE
– Assigns one availability zone per cluster.
*
* MULTI
– Assigns all the availability zones per cluster.
*
* The number of availability zones you want to assign per cluster. This can be one of the following *
*
* SINGLE
– Assigns one availability zone per cluster.
*
* MULTI
– Assigns all the availability zones per cluster.
*
* SINGLE
– Assigns one availability zone per cluster.
*
* MULTI
– Assigns all the availability zones per cluster.
*
* The number of availability zones you want to assign per cluster. This can be one of the following *
*
* SINGLE
– Assigns one availability zone per cluster.
*
* MULTI
– Assigns all the availability zones per cluster.
*
* SINGLE
– Assigns one availability zone per cluster.
*
* MULTI
– Assigns all the availability zones per cluster.
*
* The availability zone identifiers for the requested regions. *
* * @param availabilityZoneId * The availability zone identifiers for the requested regions. */ public void setAvailabilityZoneId(String availabilityZoneId) { this.availabilityZoneId = availabilityZoneId; } /** ** The availability zone identifiers for the requested regions. *
* * @return The availability zone identifiers for the requested regions. */ public String getAvailabilityZoneId() { return this.availabilityZoneId; } /** ** The availability zone identifiers for the requested regions. *
* * @param availabilityZoneId * The availability zone identifiers for the requested regions. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withAvailabilityZoneId(String availabilityZoneId) { setAvailabilityZoneId(availabilityZoneId); return this; } /** ** The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *
* * @param createdTimestamp * The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as * 1635768000000. */ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** ** The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *
* * @return The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as * 1635768000000. */ public java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** ** The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. *
* * @param createdTimestamp * The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as * 1635768000000. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKxClusterResult withCreatedTimestamp(java.util.Date createdTimestamp) { setCreatedTimestamp(createdTimestamp); 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()).append(","); if (getClusterName() != null) sb.append("ClusterName: ").append(getClusterName()).append(","); if (getClusterType() != null) sb.append("ClusterType: ").append(getClusterType()).append(","); if (getDatabases() != null) sb.append("Databases: ").append(getDatabases()).append(","); if (getCacheStorageConfigurations() != null) sb.append("CacheStorageConfigurations: ").append(getCacheStorageConfigurations()).append(","); if (getAutoScalingConfiguration() != null) sb.append("AutoScalingConfiguration: ").append(getAutoScalingConfiguration()).append(","); if (getClusterDescription() != null) sb.append("ClusterDescription: ").append(getClusterDescription()).append(","); if (getCapacityConfiguration() != null) sb.append("CapacityConfiguration: ").append(getCapacityConfiguration()).append(","); if (getReleaseLabel() != null) sb.append("ReleaseLabel: ").append(getReleaseLabel()).append(","); if (getVpcConfiguration() != null) sb.append("VpcConfiguration: ").append(getVpcConfiguration()).append(","); if (getInitializationScript() != null) sb.append("InitializationScript: ").append(getInitializationScript()).append(","); if (getCommandLineArguments() != null) sb.append("CommandLineArguments: ").append(getCommandLineArguments()).append(","); if (getCode() != null) sb.append("Code: ").append(getCode()).append(","); if (getExecutionRole() != null) sb.append("ExecutionRole: ").append(getExecutionRole()).append(","); if (getLastModifiedTimestamp() != null) sb.append("LastModifiedTimestamp: ").append(getLastModifiedTimestamp()).append(","); if (getSavedownStorageConfiguration() != null) sb.append("SavedownStorageConfiguration: ").append(getSavedownStorageConfiguration()).append(","); if (getAzMode() != null) sb.append("AzMode: ").append(getAzMode()).append(","); if (getAvailabilityZoneId() != null) sb.append("AvailabilityZoneId: ").append(getAvailabilityZoneId()).append(","); if (getCreatedTimestamp() != null) sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetKxClusterResult == false) return false; GetKxClusterResult other = (GetKxClusterResult) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) return false; if (other.getClusterName() == null ^ this.getClusterName() == null) return false; if (other.getClusterName() != null && other.getClusterName().equals(this.getClusterName()) == false) return false; if (other.getClusterType() == null ^ this.getClusterType() == null) return false; if (other.getClusterType() != null && other.getClusterType().equals(this.getClusterType()) == false) return false; if (other.getDatabases() == null ^ this.getDatabases() == null) return false; if (other.getDatabases() != null && other.getDatabases().equals(this.getDatabases()) == false) return false; if (other.getCacheStorageConfigurations() == null ^ this.getCacheStorageConfigurations() == null) return false; if (other.getCacheStorageConfigurations() != null && other.getCacheStorageConfigurations().equals(this.getCacheStorageConfigurations()) == false) return false; if (other.getAutoScalingConfiguration() == null ^ this.getAutoScalingConfiguration() == null) return false; if (other.getAutoScalingConfiguration() != null && other.getAutoScalingConfiguration().equals(this.getAutoScalingConfiguration()) == false) return false; if (other.getClusterDescription() == null ^ this.getClusterDescription() == null) return false; if (other.getClusterDescription() != null && other.getClusterDescription().equals(this.getClusterDescription()) == false) return false; if (other.getCapacityConfiguration() == null ^ this.getCapacityConfiguration() == null) return false; if (other.getCapacityConfiguration() != null && other.getCapacityConfiguration().equals(this.getCapacityConfiguration()) == false) return false; if (other.getReleaseLabel() == null ^ this.getReleaseLabel() == null) return false; if (other.getReleaseLabel() != null && other.getReleaseLabel().equals(this.getReleaseLabel()) == false) return false; if (other.getVpcConfiguration() == null ^ this.getVpcConfiguration() == null) return false; if (other.getVpcConfiguration() != null && other.getVpcConfiguration().equals(this.getVpcConfiguration()) == false) return false; if (other.getInitializationScript() == null ^ this.getInitializationScript() == null) return false; if (other.getInitializationScript() != null && other.getInitializationScript().equals(this.getInitializationScript()) == false) return false; if (other.getCommandLineArguments() == null ^ this.getCommandLineArguments() == null) return false; if (other.getCommandLineArguments() != null && other.getCommandLineArguments().equals(this.getCommandLineArguments()) == false) return false; if (other.getCode() == null ^ this.getCode() == null) return false; if (other.getCode() != null && other.getCode().equals(this.getCode()) == false) return false; if (other.getExecutionRole() == null ^ this.getExecutionRole() == null) return false; if (other.getExecutionRole() != null && other.getExecutionRole().equals(this.getExecutionRole()) == false) return false; if (other.getLastModifiedTimestamp() == null ^ this.getLastModifiedTimestamp() == null) return false; if (other.getLastModifiedTimestamp() != null && other.getLastModifiedTimestamp().equals(this.getLastModifiedTimestamp()) == false) return false; if (other.getSavedownStorageConfiguration() == null ^ this.getSavedownStorageConfiguration() == null) return false; if (other.getSavedownStorageConfiguration() != null && other.getSavedownStorageConfiguration().equals(this.getSavedownStorageConfiguration()) == false) return false; if (other.getAzMode() == null ^ this.getAzMode() == null) return false; if (other.getAzMode() != null && other.getAzMode().equals(this.getAzMode()) == false) return false; if (other.getAvailabilityZoneId() == null ^ this.getAvailabilityZoneId() == null) return false; if (other.getAvailabilityZoneId() != null && other.getAvailabilityZoneId().equals(this.getAvailabilityZoneId()) == false) return false; if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) return false; if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getClusterName() == null) ? 0 : getClusterName().hashCode()); hashCode = prime * hashCode + ((getClusterType() == null) ? 0 : getClusterType().hashCode()); hashCode = prime * hashCode + ((getDatabases() == null) ? 0 : getDatabases().hashCode()); hashCode = prime * hashCode + ((getCacheStorageConfigurations() == null) ? 0 : getCacheStorageConfigurations().hashCode()); hashCode = prime * hashCode + ((getAutoScalingConfiguration() == null) ? 0 : getAutoScalingConfiguration().hashCode()); hashCode = prime * hashCode + ((getClusterDescription() == null) ? 0 : getClusterDescription().hashCode()); hashCode = prime * hashCode + ((getCapacityConfiguration() == null) ? 0 : getCapacityConfiguration().hashCode()); hashCode = prime * hashCode + ((getReleaseLabel() == null) ? 0 : getReleaseLabel().hashCode()); hashCode = prime * hashCode + ((getVpcConfiguration() == null) ? 0 : getVpcConfiguration().hashCode()); hashCode = prime * hashCode + ((getInitializationScript() == null) ? 0 : getInitializationScript().hashCode()); hashCode = prime * hashCode + ((getCommandLineArguments() == null) ? 0 : getCommandLineArguments().hashCode()); hashCode = prime * hashCode + ((getCode() == null) ? 0 : getCode().hashCode()); hashCode = prime * hashCode + ((getExecutionRole() == null) ? 0 : getExecutionRole().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTimestamp() == null) ? 0 : getLastModifiedTimestamp().hashCode()); hashCode = prime * hashCode + ((getSavedownStorageConfiguration() == null) ? 0 : getSavedownStorageConfiguration().hashCode()); hashCode = prime * hashCode + ((getAzMode() == null) ? 0 : getAzMode().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZoneId() == null) ? 0 : getAvailabilityZoneId().hashCode()); hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); return hashCode; } @Override public GetKxClusterResult clone() { try { return (GetKxClusterResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }