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