|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.bmr.model.InstanceGroupConfig
public class InstanceGroupConfig
Represent the configuration for an instance group. An instance group can be configured with name, type, instance type and instance count. And the type, instance type and count are essential options.
Constructor Summary | |
---|---|
InstanceGroupConfig()
|
Method Summary | |
---|---|
int |
getInstanceCount()
|
String |
getInstanceType()
|
String |
getName()
|
String |
getType()
|
void |
setInstanceCount(int instanceCount)
|
void |
setInstanceType(String instanceType)
|
void |
setName(String name)
|
void |
setType(String type)
|
InstanceGroupConfig |
withInstanceCount(int instanceCount)
Configure the instance count for the instance group. |
InstanceGroupConfig |
withInstanceType(String instanceType)
Configure the instances'type in the target instance group. |
InstanceGroupConfig |
withName(String name)
Configure the name of the instance group. |
InstanceGroupConfig |
withType(String type)
Configure the type of the instance group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceGroupConfig()
Method Detail |
---|
public String getName()
public void setName(String name)
public String getType()
public void setType(String type)
public String getInstanceType()
public void setInstanceType(String instanceType)
public int getInstanceCount()
public void setInstanceCount(int instanceCount)
public InstanceGroupConfig withName(String name)
name
- The name of the instance group.
public InstanceGroupConfig withType(String type)
type
- The type of the instance group.
public InstanceGroupConfig withInstanceType(String instanceType)
instanceType
- The instances' type for the instance group.
public InstanceGroupConfig withInstanceCount(int instanceCount)
instanceCount
- The instance count for the instance group.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |