com.amazonaws.services.finspace.model.CapacityConfiguration Maven / Gradle / Ivy
Show all versions of aws-java-sdk-finspace Show documentation
/*
* Copyright 2019-2024 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances, and
* number of instances.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CapacityConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* The type that determines the hardware of the host computer used for your cluster instance. Each node type offers
* different memory and storage capabilities. Choose a node type based on the requirements of the application or
* software that you plan to run on your instance.
*
*
* You can only specify one of the following values:
*
*
* -
*
* kx.s.large
– The node type with a configuration of 12 GiB memory and 2 vCPUs.
*
*
* -
*
* kx.s.xlarge
– The node type with a configuration of 27 GiB memory and 4 vCPUs.
*
*
* -
*
* kx.s.2xlarge
– The node type with a configuration of 54 GiB memory and 8 vCPUs.
*
*
* -
*
* kx.s.4xlarge
– The node type with a configuration of 108 GiB memory and 16 vCPUs.
*
*
* -
*
* kx.s.8xlarge
– The node type with a configuration of 216 GiB memory and 32 vCPUs.
*
*
* -
*
* kx.s.16xlarge
– The node type with a configuration of 432 GiB memory and 64 vCPUs.
*
*
* -
*
* kx.s.32xlarge
– The node type with a configuration of 864 GiB memory and 128 vCPUs.
*
*
*
*/
private String nodeType;
/**
*
* The number of instances running in a cluster.
*
*/
private Integer nodeCount;
/**
*
* The type that determines the hardware of the host computer used for your cluster instance. Each node type offers
* different memory and storage capabilities. Choose a node type based on the requirements of the application or
* software that you plan to run on your instance.
*
*
* You can only specify one of the following values:
*
*
* -
*
* kx.s.large
– The node type with a configuration of 12 GiB memory and 2 vCPUs.
*
*
* -
*
* kx.s.xlarge
– The node type with a configuration of 27 GiB memory and 4 vCPUs.
*
*
* -
*
* kx.s.2xlarge
– The node type with a configuration of 54 GiB memory and 8 vCPUs.
*
*
* -
*
* kx.s.4xlarge
– The node type with a configuration of 108 GiB memory and 16 vCPUs.
*
*
* -
*
* kx.s.8xlarge
– The node type with a configuration of 216 GiB memory and 32 vCPUs.
*
*
* -
*
* kx.s.16xlarge
– The node type with a configuration of 432 GiB memory and 64 vCPUs.
*
*
* -
*
* kx.s.32xlarge
– The node type with a configuration of 864 GiB memory and 128 vCPUs.
*
*
*
*
* @param nodeType
* The type that determines the hardware of the host computer used for your cluster instance. Each node type
* offers different memory and storage capabilities. Choose a node type based on the requirements of the
* application or software that you plan to run on your instance.
*
* You can only specify one of the following values:
*
*
* -
*
* kx.s.large
– The node type with a configuration of 12 GiB memory and 2 vCPUs.
*
*
* -
*
* kx.s.xlarge
– The node type with a configuration of 27 GiB memory and 4 vCPUs.
*
*
* -
*
* kx.s.2xlarge
– The node type with a configuration of 54 GiB memory and 8 vCPUs.
*
*
* -
*
* kx.s.4xlarge
– The node type with a configuration of 108 GiB memory and 16 vCPUs.
*
*
* -
*
* kx.s.8xlarge
– The node type with a configuration of 216 GiB memory and 32 vCPUs.
*
*
* -
*
* kx.s.16xlarge
– The node type with a configuration of 432 GiB memory and 64 vCPUs.
*
*
* -
*
* kx.s.32xlarge
– The node type with a configuration of 864 GiB memory and 128 vCPUs.
*
*
*/
public void setNodeType(String nodeType) {
this.nodeType = nodeType;
}
/**
*
* The type that determines the hardware of the host computer used for your cluster instance. Each node type offers
* different memory and storage capabilities. Choose a node type based on the requirements of the application or
* software that you plan to run on your instance.
*
*
* You can only specify one of the following values:
*
*
* -
*
* kx.s.large
– The node type with a configuration of 12 GiB memory and 2 vCPUs.
*
*
* -
*
* kx.s.xlarge
– The node type with a configuration of 27 GiB memory and 4 vCPUs.
*
*
* -
*
* kx.s.2xlarge
– The node type with a configuration of 54 GiB memory and 8 vCPUs.
*
*
* -
*
* kx.s.4xlarge
– The node type with a configuration of 108 GiB memory and 16 vCPUs.
*
*
* -
*
* kx.s.8xlarge
– The node type with a configuration of 216 GiB memory and 32 vCPUs.
*
*
* -
*
* kx.s.16xlarge
– The node type with a configuration of 432 GiB memory and 64 vCPUs.
*
*
* -
*
* kx.s.32xlarge
– The node type with a configuration of 864 GiB memory and 128 vCPUs.
*
*
*
*
* @return The type that determines the hardware of the host computer used for your cluster instance. Each node type
* offers different memory and storage capabilities. Choose a node type based on the requirements of the
* application or software that you plan to run on your instance.
*
* You can only specify one of the following values:
*
*
* -
*
* kx.s.large
– The node type with a configuration of 12 GiB memory and 2 vCPUs.
*
*
* -
*
* kx.s.xlarge
– The node type with a configuration of 27 GiB memory and 4 vCPUs.
*
*
* -
*
* kx.s.2xlarge
– The node type with a configuration of 54 GiB memory and 8 vCPUs.
*
*
* -
*
* kx.s.4xlarge
– The node type with a configuration of 108 GiB memory and 16 vCPUs.
*
*
* -
*
* kx.s.8xlarge
– The node type with a configuration of 216 GiB memory and 32 vCPUs.
*
*
* -
*
* kx.s.16xlarge
– The node type with a configuration of 432 GiB memory and 64 vCPUs.
*
*
* -
*
* kx.s.32xlarge
– The node type with a configuration of 864 GiB memory and 128 vCPUs.
*
*
*/
public String getNodeType() {
return this.nodeType;
}
/**
*
* The type that determines the hardware of the host computer used for your cluster instance. Each node type offers
* different memory and storage capabilities. Choose a node type based on the requirements of the application or
* software that you plan to run on your instance.
*
*
* You can only specify one of the following values:
*
*
* -
*
* kx.s.large
– The node type with a configuration of 12 GiB memory and 2 vCPUs.
*
*
* -
*
* kx.s.xlarge
– The node type with a configuration of 27 GiB memory and 4 vCPUs.
*
*
* -
*
* kx.s.2xlarge
– The node type with a configuration of 54 GiB memory and 8 vCPUs.
*
*
* -
*
* kx.s.4xlarge
– The node type with a configuration of 108 GiB memory and 16 vCPUs.
*
*
* -
*
* kx.s.8xlarge
– The node type with a configuration of 216 GiB memory and 32 vCPUs.
*
*
* -
*
* kx.s.16xlarge
– The node type with a configuration of 432 GiB memory and 64 vCPUs.
*
*
* -
*
* kx.s.32xlarge
– The node type with a configuration of 864 GiB memory and 128 vCPUs.
*
*
*
*
* @param nodeType
* The type that determines the hardware of the host computer used for your cluster instance. Each node type
* offers different memory and storage capabilities. Choose a node type based on the requirements of the
* application or software that you plan to run on your instance.
*
* You can only specify one of the following values:
*
*
* -
*
* kx.s.large
– The node type with a configuration of 12 GiB memory and 2 vCPUs.
*
*
* -
*
* kx.s.xlarge
– The node type with a configuration of 27 GiB memory and 4 vCPUs.
*
*
* -
*
* kx.s.2xlarge
– The node type with a configuration of 54 GiB memory and 8 vCPUs.
*
*
* -
*
* kx.s.4xlarge
– The node type with a configuration of 108 GiB memory and 16 vCPUs.
*
*
* -
*
* kx.s.8xlarge
– The node type with a configuration of 216 GiB memory and 32 vCPUs.
*
*
* -
*
* kx.s.16xlarge
– The node type with a configuration of 432 GiB memory and 64 vCPUs.
*
*
* -
*
* kx.s.32xlarge
– The node type with a configuration of 864 GiB memory and 128 vCPUs.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CapacityConfiguration withNodeType(String nodeType) {
setNodeType(nodeType);
return this;
}
/**
*
* The number of instances running in a cluster.
*
*
* @param nodeCount
* The number of instances running in a cluster.
*/
public void setNodeCount(Integer nodeCount) {
this.nodeCount = nodeCount;
}
/**
*
* The number of instances running in a cluster.
*
*
* @return The number of instances running in a cluster.
*/
public Integer getNodeCount() {
return this.nodeCount;
}
/**
*
* The number of instances running in a cluster.
*
*
* @param nodeCount
* The number of instances running in a cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CapacityConfiguration withNodeCount(Integer nodeCount) {
setNodeCount(nodeCount);
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 (getNodeType() != null)
sb.append("NodeType: ").append(getNodeType()).append(",");
if (getNodeCount() != null)
sb.append("NodeCount: ").append(getNodeCount());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CapacityConfiguration == false)
return false;
CapacityConfiguration other = (CapacityConfiguration) obj;
if (other.getNodeType() == null ^ this.getNodeType() == null)
return false;
if (other.getNodeType() != null && other.getNodeType().equals(this.getNodeType()) == false)
return false;
if (other.getNodeCount() == null ^ this.getNodeCount() == null)
return false;
if (other.getNodeCount() != null && other.getNodeCount().equals(this.getNodeCount()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getNodeType() == null) ? 0 : getNodeType().hashCode());
hashCode = prime * hashCode + ((getNodeCount() == null) ? 0 : getNodeCount().hashCode());
return hashCode;
}
@Override
public CapacityConfiguration clone() {
try {
return (CapacityConfiguration) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.finspace.model.transform.CapacityConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}