|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.bmr.model.CreateClusterRequest
public class CreateClusterRequest
Provides options for creating a BMR cluster. The essential options are imageType, imageVersion, instanceGroups, and the optional ones are clientToken, name, autoTerminate, logUri, applications and steps.
Constructor Summary | |
---|---|
CreateClusterRequest()
|
Method Summary | |
---|---|
List<ApplicationConfig> |
getApplications()
|
boolean |
getAutoTerminate()
|
String |
getClientToken()
|
String |
getImageType()
|
String |
getImageVersion()
|
List<InstanceGroupConfig> |
getInstanceGroups()
|
String |
getLogUri()
|
String |
getName()
|
List<StepConfig> |
getSteps()
|
void |
setApplications(List<ApplicationConfig> applications)
|
void |
setAutoTerminate(boolean autoTerminate)
|
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 |
setSteps(List<StepConfig> steps)
|
CreateClusterRequest |
withApplication(ApplicationConfig application)
Configure optional application for the cluster. |
CreateClusterRequest |
withAutoTerminate(boolean autoTerminate)
Configure auto-terminate property for the 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 |
withStep(StepConfig step)
Configure optional step for the cluster. |
CreateClusterRequest |
withSteps(List<StepConfig> steps)
Configure the steps to be added. |
Methods inherited from class com.baidubce.model.AbstractBceRequest |
---|
getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateClusterRequest()
Method Detail |
---|
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 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 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 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 AbstractBceRequest
credentials
- a valid instance of BceCredentials.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |