com.baidubce.services.bcc.model.instance
Class StopInstanceRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.bcc.model.instance.StopInstanceRequest

public class StopInstanceRequest
extends AbstractBceRequest

The request for stopping the instance.


Constructor Summary
StopInstanceRequest()
           
 
Method Summary
 String getInstanceId()
           
 boolean isForceStop()
           
 void setForceStop(boolean forceStop)
           
 void setInstanceId(String instanceId)
           
 StopInstanceRequest withForceStop(boolean forceStop)
          Configure forceStop for the request.
 StopInstanceRequest withInstanceId(String instanceId)
          Configure instanceId for the request.
 StopInstanceRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 
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

StopInstanceRequest

public StopInstanceRequest()
Method Detail

getInstanceId

public String getInstanceId()

setInstanceId

public void setInstanceId(String instanceId)

withInstanceId

public StopInstanceRequest withInstanceId(String instanceId)
Configure instanceId for the request.

Parameters:
instanceId - The id of the instance.
Returns:
StopInstanceRequest with instanceId.

isForceStop

public boolean isForceStop()

setForceStop

public void setForceStop(boolean forceStop)

withForceStop

public StopInstanceRequest withForceStop(boolean forceStop)
Configure forceStop for the request.

Parameters:
forceStop - The option param to stop the instance forcibly, default value is false. If true, it will stop the instance just like power off immediately and it may result int losing important data which have not written to disk.
Returns:
StopInstanceRequest with forceStop.

withRequestCredentials

public StopInstanceRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.

Specified by:
withRequestCredentials in class AbstractBceRequest
Parameters:
credentials - a valid instance of BceCredentials.
Returns:
StopInstanceRequest with credentials.


Copyright © 2018. All rights reserved.