public class ResizeInstanceRequest extends AbstractBceRequest
| Constructor and Description |
|---|
ResizeInstanceRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientToken() |
int |
getCpuCount() |
Boolean |
getEnableJumboFrame() |
List<EphemeralDisk> |
getEphemeralDisks() |
String |
getInstanceId() |
int |
getMemoryCapacityInGB() |
String |
getSpec() |
void |
setClientToken(String clientToken) |
void |
setCpuCount(int cpuCount) |
void |
setEnableJumboFrame(Boolean enableJumboFrame) |
void |
setEphemeralDisks(List<EphemeralDisk> ephemeralDisks) |
void |
setInstanceId(String instanceId) |
void |
setMemoryCapacityInGB(int memoryCapacityInGB) |
void |
setSpec(String spec) |
ResizeInstanceRequest |
withClientToken(String clientToken)
Configure optional client token for the request.
|
ResizeInstanceRequest |
withCpuCount(int cpuCount)
Configure request cpuCount for the request.
|
ResizeInstanceRequest |
withEnableJumboFrame(Boolean enableJumboFrame)
Configure request enableJumboFrame for the request.
|
ResizeInstanceRequest |
withEphemeralDisks(List<EphemeralDisk> ephemeralDisks)
Configure request ephemeralDisks for the request.
|
ResizeInstanceRequest |
withInstanceId(String instanceId)
Configure the instanceId for the request.
|
ResizeInstanceRequest |
withMemoryCapacityInGB(int memoryCapacityInGB)
Configure request memoryCapacityInGB for the request.
|
ResizeInstanceRequest |
withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.
|
ResizeInstanceRequest |
withSpec(String spec) |
getRequestCredentials, setRequestCredentialspublic String getInstanceId()
public void setInstanceId(String instanceId)
public ResizeInstanceRequest withInstanceId(String instanceId)
instanceId - The id of instance.public String getSpec()
public void setSpec(String spec)
public ResizeInstanceRequest withSpec(String spec)
public String getClientToken()
public void setClientToken(String clientToken)
public ResizeInstanceRequest withClientToken(String clientToken)
clientToken - An ASCII string whose length is less than 64.
See more detail at
BCE API docpublic int getCpuCount()
public void setCpuCount(int cpuCount)
public ResizeInstanceRequest withCpuCount(int cpuCount)
cpuCount - The parameter of specified the cpu core to resize the instance.public int getMemoryCapacityInGB()
public void setMemoryCapacityInGB(int memoryCapacityInGB)
public ResizeInstanceRequest withMemoryCapacityInGB(int memoryCapacityInGB)
memoryCapacityInGB - The parameter of specified the capacity of memory in GB to resize the instance.public List<EphemeralDisk> getEphemeralDisks()
public void setEphemeralDisks(List<EphemeralDisk> ephemeralDisks)
public ResizeInstanceRequest withEphemeralDisks(List<EphemeralDisk> ephemeralDisks)
ephemeralDisks - The parameter of ephemeral disk capacity. Currently, this parameter only supports
the DCC instances of storage type. And the capacity will be deducted from
the corresponding capacity of the DCC flavor.public ResizeInstanceRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - a valid instance of BceCredentials.public Boolean getEnableJumboFrame()
public void setEnableJumboFrame(Boolean enableJumboFrame)
public ResizeInstanceRequest withEnableJumboFrame(Boolean enableJumboFrame)
enableJumboFrame - The parameter of specified the instance enable/disable jumbo frame.
True means enable jumbo frame, false means disable jumbo frame.
enable_jumbo_frame default None which means:
When you change to the spec which doesn't support jumbo frame, the jumbo frame will be
disabled.
When the original instance don't support jumbo frame and you change to the spec
which support jumbo frame, the jumbo frame will be disabled.
When the original spec of the instance support jumbo frame, then you change to the spec
which support jumbo frame, if the original instance enable jumbo frame, the jumbo frame
will be enabled, if the original instance disable jumbo frame, the jumbo frame will be
disabled.Copyright © 2025. All rights reserved.