com.baidubce.services.bcc.model.volume
Class ListVolumesRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.model.ListRequest
          extended by com.baidubce.services.bcc.model.volume.ListVolumesRequest

public class ListVolumesRequest
extends ListRequest

The request for listing volume owned by the user.


Constructor Summary
ListVolumesRequest()
           
 
Method Summary
 String getInstanceId()
           
 String getZoneName()
           
 void setInstanceId(String instanceId)
           
 void setZoneName(String zoneName)
           
 ListVolumesRequest withInstanceId(String instanceId)
          Configure the request with specified instanceId.
 ListVolumesRequest withMarker(String marker)
          Configure the request with specified marker.
 ListVolumesRequest withMaxKeys(int maxKeys)
          Configure the request with specified maxKeys.
 ListVolumesRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 ListVolumesRequest withZoneName(String zoneName)
           
 
Methods inherited from class com.baidubce.model.ListRequest
getMarker, getMaxKeys, setMarker, setMaxKeys
 
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

ListVolumesRequest

public ListVolumesRequest()
Method Detail

getInstanceId

public String getInstanceId()

setInstanceId

public void setInstanceId(String instanceId)

withInstanceId

public ListVolumesRequest withInstanceId(String instanceId)
Configure the request with specified instanceId.

Parameters:
instanceId - The id of instance.

getZoneName

public String getZoneName()

setZoneName

public void setZoneName(String zoneName)

withZoneName

public ListVolumesRequest withZoneName(String zoneName)

withMarker

public ListVolumesRequest withMarker(String marker)
Configure the request with specified marker.

Overrides:
withMarker in class ListRequest
Parameters:
marker - The optional parameter marker specified in the original request to specify where in the results to begin listing.
Returns:
ListInstancesRequest with specified marker.

withMaxKeys

public ListVolumesRequest withMaxKeys(int maxKeys)
Configure the request with specified maxKeys.

Overrides:
withMaxKeys in class ListRequest
Parameters:
maxKeys - The optional parameter to specifies the max number of list result to return. The default value is 1000.
Returns:
ListInstancesRequest with specified maxKeys.

withRequestCredentials

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

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


Copyright © 2018. All rights reserved.