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

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

public class RebootInstanceRequest
extends AbstractBceRequest

The request for rebooting the instance.


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

RebootInstanceRequest

public RebootInstanceRequest()
Method Detail

getInstanceId

public String getInstanceId()

setInstanceId

public void setInstanceId(String instanceId)

withInstanceId

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

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

isForceStop

public boolean isForceStop()

setForceStop

public void setForceStop(boolean forceStop)

withForceStop

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

Parameters:
forceStop - The option param to reboot 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:
RebootInstanceRequest with forceStop.

withRequestCredentials

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

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


Copyright © 2018. All rights reserved.