public class ClusterCreateRequest extends ClusterOperationRequest
Modifier and Type | Class and Description |
---|---|
static class |
ClusterCreateRequest.Builder
Builder for creating cluster create requests.
|
Modifier and Type | Method and Description |
---|---|
static ClusterCreateRequest.Builder |
builder()
Get a builder for creating cluster create requests.
|
boolean |
equals(Object o) |
String |
getClusterTemplate()
Get the name of the
ClusterTemplate to use for cluster creation. |
com.google.gson.JsonObject |
getConfig()
Get the configuration to use for the cluster, with null meaning to use the template defaults.
|
String |
getDescription()
Get the description of the cluster.
|
String |
getDnsSuffix()
Get the DNS suffix to use for hostnames of nodes in the cluster, with null meaning to use the template defaults.
|
String |
getHardwareType()
Get the name of the
HardwareType to use across the entire cluster or null
if the template default should be used. |
String |
getImageType()
Get the name of the
ImageType to use across the entire cluster or null
if the template default should be used. |
long |
getInitialLeaseDuration()
Get the lease duration to use for the cluster, with 0 meaning no lease.
|
String |
getName()
Get the name of the cluster.
|
int |
getNumMachines()
Get the number of machines that should be used in the cluster.
|
String |
getProvider()
Get the name of the provider to use for node creation and deletion.
|
Set<String> |
getServices()
Get the set of service names to place on the cluster.
|
int |
hashCode() |
String |
toString() |
getProviderFields
public int getNumMachines()
public String getProvider()
public Set<String> getServices()
public String getName()
public String getDescription()
public String getClusterTemplate()
ClusterTemplate
to use for cluster creation.public String getHardwareType()
HardwareType
to use across the entire cluster or null
if the template default should be used.public String getImageType()
ImageType
to use across the entire cluster or null
if the template default should be used.public long getInitialLeaseDuration()
public String getDnsSuffix()
public com.google.gson.JsonObject getConfig()
public static ClusterCreateRequest.Builder builder()
public boolean equals(Object o)
equals
in class ClusterOperationRequest
public int hashCode()
hashCode
in class ClusterOperationRequest
public String toString()
toString
in class ClusterOperationRequest
Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.