public class CreateClusterRequest extends AbstractBceRequest
The essential options are imageType, imageVersion, instanceGroups, and the optional ones are clientToken, name, autoTerminate, logUri, applications and steps.
| Constructor and Description |
|---|
CreateClusterRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAdminPassword() |
List<ApplicationConfig> |
getApplications() |
boolean |
getAutoTerminate() |
String |
getAvailabilityZone() |
String |
getClientToken() |
String |
getImageType() |
String |
getImageVersion() |
List<InstanceGroupConfig> |
getInstanceGroups() |
String |
getLogUri() |
String |
getName() |
boolean |
getSafeModeEnabled() |
String |
getSecurityGroup() |
boolean |
getServiceHaEnabled() |
List<StepConfig> |
getSteps() |
String |
getSubnetId() |
String |
getTemplateType() |
String |
getVpcId() |
void |
setAdminPassword(String adminPassword) |
void |
setApplications(List<ApplicationConfig> applications) |
void |
setAutoTerminate(boolean autoTerminate) |
void |
setAvailabilityZone(String availabilityZone) |
void |
setClientToken(String clientToken) |
void |
setImageType(String imageType) |
void |
setImageVersion(String imageVersion) |
void |
setInstanceGroups(List<InstanceGroupConfig> instanceGroups) |
void |
setLogUri(String logUri) |
void |
setName(String name) |
void |
setSafeModeEnabled(boolean safeModeEnabled) |
void |
setSecurityGroup(String securityGroup) |
void |
setServiceHaEnabled(boolean serviceHaEnabled) |
void |
setSteps(List<StepConfig> steps) |
void |
setSubnetId(String subnetId) |
void |
setTemplateType(String templateType) |
void |
setVpcId(String vpcId) |
CreateClusterRequest |
withAdminPassword(String adminPassword)
Configure request adminPassword for the request.
|
CreateClusterRequest |
withApplication(ApplicationConfig application)
Configure optional application for the cluster.
|
CreateClusterRequest |
withAutoTerminate(boolean autoTerminate)
Configure auto-terminate property for the cluster.
|
CreateClusterRequest |
withAvailabilityZone(String availabilityZone)
Configure request availabilityZone of creating cluster.
|
CreateClusterRequest |
withClientToken(String clientToken)
Configure optional client token for the request.
|
CreateClusterRequest |
withImageType(String imageType)
Configure the image type for the cluster.
|
CreateClusterRequest |
withImageVersion(String imageVersion)
Configure image version for the cluster.
|
CreateClusterRequest |
withInstanceGroup(InstanceGroupConfig instanceGroup)
Configure the instance group for the cluster.
|
CreateClusterRequest |
withLogUri(String logUri)
Configure optional BOS uri for logs of steps.
|
CreateClusterRequest |
withName(String name)
Configure optional name of the cluster.If not set, then the name of the cluster will be
"my-cluster" by default.
|
CreateClusterRequest |
withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.
|
CreateClusterRequest |
withSafeModeEnabled(boolean safeModeEnabled)
Configure optional safe mode enable of the cluster.
|
CreateClusterRequest |
withSecurityGroup(String securityGroup)
Configure request security group for the request.
|
CreateClusterRequest |
withServiceHaEnabled(boolean serviceHaEnabled)
Configure optional service HA enable of the cluster.
|
CreateClusterRequest |
withStep(StepConfig step)
Configure optional step for the cluster.
|
CreateClusterRequest |
withSteps(List<StepConfig> steps)
Configure the steps to be added.
|
CreateClusterRequest |
withSubnetId(String subnetId)
Configure request subnet name for the request.
|
CreateClusterRequest |
withTemplateType(String templateType)
Configure request templateType for the request.
|
CreateClusterRequest |
withVpcId(String vpcId)
Configure request vpc network name for the request.
|
getRequestCredentials, setRequestCredentialspublic String getTemplateType()
public void setTemplateType(String templateType)
public String getImageType()
public void setImageType(String imageType)
public String getImageVersion()
public void setImageVersion(String imageVersion)
public String getClientToken()
public void setClientToken(String clientToken)
public boolean getAutoTerminate()
public void setAutoTerminate(boolean autoTerminate)
public String getLogUri()
public void setLogUri(String logUri)
public String getName()
public void setName(String name)
public boolean getServiceHaEnabled()
public void setServiceHaEnabled(boolean serviceHaEnabled)
public boolean getSafeModeEnabled()
public void setSafeModeEnabled(boolean safeModeEnabled)
public List<InstanceGroupConfig> getInstanceGroups()
public void setInstanceGroups(List<InstanceGroupConfig> instanceGroups)
public List<ApplicationConfig> getApplications()
public void setApplications(List<ApplicationConfig> applications)
public List<StepConfig> getSteps()
public void setSteps(List<StepConfig> steps)
public String getAdminPassword()
public void setAdminPassword(String adminPassword)
public String getSecurityGroup()
public void setSecurityGroup(String securityGroup)
public String getVpcId()
public void setVpcId(String vpcId)
public String getSubnetId()
public void setSubnetId(String subnetId)
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
public CreateClusterRequest withImageType(String imageType)
imageType - The image type for cluster's instances.public CreateClusterRequest withImageVersion(String imageVersion)
imageVersion - The image version for the cluster's instance.public CreateClusterRequest withAutoTerminate(boolean autoTerminate)
autoTerminate - true if the cluster should be auto terminated.public CreateClusterRequest withLogUri(String logUri)
logUri - The valid BOS uri for the logs.public CreateClusterRequest withName(String name)
name - The name for the cluster.public CreateClusterRequest withServiceHaEnabled(boolean serviceHaEnabled)
serviceHaEnabled - true if the serivce ha enable, default is false.public CreateClusterRequest withSafeModeEnabled(boolean safeModeEnabled)
safeModeEnabled - true if the safe mode enable, default is false.public CreateClusterRequest withInstanceGroup(InstanceGroupConfig instanceGroup)
instanceGroup - An InstanceGroupConfig instance.public CreateClusterRequest withApplication(ApplicationConfig application)
application - An ApplicationConfig instance.public CreateClusterRequest withStep(StepConfig step)
step - a StepConfig instance to be added.public CreateClusterRequest withSteps(List<StepConfig> steps)
steps - a List of StepConfig instances to be added.public CreateClusterRequest withClientToken(String clientToken)
clientToken - An ASCII string whose length is less than 64.public CreateClusterRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - a valid instance of BceCredentials.public CreateClusterRequest withAdminPassword(String adminPassword)
adminPassword - an password for cluster for example bmrtest@123public CreateClusterRequest withVpcId(String vpcId)
vpcId - vpcId for create clusterpublic CreateClusterRequest withSubnetId(String subnetId)
subnetId - subnetId for clusterpublic CreateClusterRequest withAvailabilityZone(String availabilityZone)
availabilityZone - cluster availabilityZonepublic CreateClusterRequest withSecurityGroup(String securityGroup)
securityGroup - securityGroup for clusterpublic CreateClusterRequest withTemplateType(String templateType)
templateType - templateType for clusterCopyright © 2021. All rights reserved.