public class AutoScaleResourceConf extends AbstractModel
header, skipSign
Constructor and Description |
---|
AutoScaleResourceConf() |
AutoScaleResourceConf(AutoScaleResourceConf source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getChangeToPod()
Get When resource type is preset to HOST: Supports enabling/disabling "Fallback to pod when resources are insufficient"; Default state: 0 (disabled), Toggle state: 1 (enabled).
|
Long |
getClusterId()
Get Cluster instance ID.
|
Long |
getEnableMNode()
Get Whether MNode is supported.
|
AutoScaleGroupAdvanceAttrs |
getExtraAdvanceAttrs()
Get More scaling group settings.
|
Boolean |
getGraceDownFlag()
Get Graceful scale-in switch.
|
String |
getGroupName()
Get Scaling group name.
|
Long |
getGroupStatus()
Get Scaling group status.
|
String |
getHardwareType()
Get "CVM" indicates that the CVM type is used for all specifications, and "Pod" indicates that the container type is used for specifications.
|
Long |
getId()
Get Configuration ID.
|
Long |
getNextTimeCanScale()
Get Next scale-out time.
|
Long |
getParallel()
Get Parallel scaling.
|
String |
getPayMode()
Get "POSTPAY" indicates the sole adoption of pay-as-you-go, and "SPOT_FIRST" indicates spot instance first, which is only supported when HardwareType is "HOST".
|
Long |
getPostPayPercentMin()
Get The minimum percentage of pay-as-you-go resources in scenarios with spot instance first.
|
Long |
getScaleLowerBound()
Get Minimum number of instances retained for automatic scaling
|
Long |
getScaleUpperBound()
Get Maximum number of instances for auto scaling
|
Long |
getStrategyType()
Get Scale-out rule type.
|
String |
getYarnNodeLabel()
Get Tag.
|
void |
setChangeToPod(Long ChangeToPod)
Set When resource type is preset to HOST: Supports enabling/disabling "Fallback to pod when resources are insufficient"; Default state: 0 (disabled), Toggle state: 1 (enabled).
|
void |
setClusterId(Long ClusterId)
Set Cluster instance ID.
|
void |
setEnableMNode(Long EnableMNode)
Set Whether MNode is supported.
|
void |
setExtraAdvanceAttrs(AutoScaleGroupAdvanceAttrs ExtraAdvanceAttrs)
Set More scaling group settings.
|
void |
setGraceDownFlag(Boolean GraceDownFlag)
Set Graceful scale-in switch.
|
void |
setGroupName(String GroupName)
Set Scaling group name.
|
void |
setGroupStatus(Long GroupStatus)
Set Scaling group status.
|
void |
setHardwareType(String HardwareType)
Set "CVM" indicates that the CVM type is used for all specifications, and "Pod" indicates that the container type is used for specifications.
|
void |
setId(Long Id)
Set Configuration ID.
|
void |
setNextTimeCanScale(Long NextTimeCanScale)
Set Next scale-out time.
|
void |
setParallel(Long Parallel)
Set Parallel scaling.
|
void |
setPayMode(String PayMode)
Set "POSTPAY" indicates the sole adoption of pay-as-you-go, and "SPOT_FIRST" indicates spot instance first, which is only supported when HardwareType is "HOST".
|
void |
setPostPayPercentMin(Long PostPayPercentMin)
Set The minimum percentage of pay-as-you-go resources in scenarios with spot instance first.
|
void |
setScaleLowerBound(Long ScaleLowerBound)
Set Minimum number of instances retained for automatic scaling
|
void |
setScaleUpperBound(Long ScaleUpperBound)
Set Maximum number of instances for auto scaling
|
void |
setStrategyType(Long StrategyType)
Set Scale-out rule type.
|
void |
setYarnNodeLabel(String YarnNodeLabel)
Set Tag.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public AutoScaleResourceConf()
public AutoScaleResourceConf(AutoScaleResourceConf source)
public Long getId()
public void setId(Long Id)
Id
- Configuration ID.public Long getClusterId()
public void setClusterId(Long ClusterId)
ClusterId
- Cluster instance ID.public Long getScaleLowerBound()
public void setScaleLowerBound(Long ScaleLowerBound)
ScaleLowerBound
- Minimum number of instances retained for automatic scalingpublic Long getScaleUpperBound()
public void setScaleUpperBound(Long ScaleUpperBound)
ScaleUpperBound
- Maximum number of instances for auto scalingpublic Long getStrategyType()
public void setStrategyType(Long StrategyType)
StrategyType
- Scale-out rule type. 1: load-based scale-out rule, 2: time-based scale-out rulepublic Long getNextTimeCanScale()
public void setNextTimeCanScale(Long NextTimeCanScale)
NextTimeCanScale
- Next scale-out time.public Boolean getGraceDownFlag()
public void setGraceDownFlag(Boolean GraceDownFlag)
GraceDownFlag
- Graceful scale-in switch.public String getHardwareType()
public void setHardwareType(String HardwareType)
HardwareType
- "CVM" indicates that the CVM type is used for all specifications, and "Pod" indicates that the container type is used for specifications. The default value is "CVM".public String getPayMode()
public void setPayMode(String PayMode)
PayMode
- "POSTPAY" indicates the sole adoption of pay-as-you-go, and "SPOT_FIRST" indicates spot instance first, which is only supported when HardwareType is "HOST". "Pod" only supports pay-as-you-go.public Long getPostPayPercentMin()
public void setPostPayPercentMin(Long PostPayPercentMin)
PostPayPercentMin
- The minimum percentage of pay-as-you-go resources in scenarios with spot instance first. It is an integer.public Long getChangeToPod()
public void setChangeToPod(Long ChangeToPod)
ChangeToPod
- When resource type is preset to HOST: Supports enabling/disabling "Fallback to pod when resources are insufficient"; Default state: 0 (disabled), Toggle state: 1 (enabled).public String getGroupName()
public void setGroupName(String GroupName)
GroupName
- Scaling group name.public String getYarnNodeLabel()
public void setYarnNodeLabel(String YarnNodeLabel)
YarnNodeLabel
- Tag.public Long getGroupStatus()
public void setGroupStatus(Long GroupStatus)
GroupStatus
- Scaling group status.public Long getParallel()
public void setParallel(Long Parallel)
Parallel
- Parallel scaling. 0: disabled; 1: enabled.public Long getEnableMNode()
public void setEnableMNode(Long EnableMNode)
EnableMNode
- Whether MNode is supported.public AutoScaleGroupAdvanceAttrs getExtraAdvanceAttrs()
public void setExtraAdvanceAttrs(AutoScaleGroupAdvanceAttrs ExtraAdvanceAttrs)
ExtraAdvanceAttrs
- More scaling group settings.Copyright © 2025. All rights reserved.