com.baidubce.services.bcc.model.snapshot
Class ListSnapshotsRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.model.ListRequest
          extended by com.baidubce.services.bcc.model.snapshot.ListSnapshotsRequest

public class ListSnapshotsRequest
extends ListRequest

The request for listing snapshots owned by used.


Constructor Summary
ListSnapshotsRequest()
           
 
Method Summary
 String getVolumeId()
           
 void setVolumeId(String volumeId)
           
 ListSnapshotsRequest withMarker(String marker)
          Configure the request with specified marker.
 ListSnapshotsRequest withMaxKeys(int maxKeys)
          Configure the request with specified maxKeys.
 ListSnapshotsRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 ListSnapshotsRequest withVolumeId(String volumeId)
          Configure the request with specified volumeId.
 
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

ListSnapshotsRequest

public ListSnapshotsRequest()
Method Detail

getVolumeId

public String getVolumeId()

setVolumeId

public void setVolumeId(String volumeId)

withVolumeId

public ListSnapshotsRequest withVolumeId(String volumeId)
Configure the request with specified volumeId.

Parameters:
volumeId - The id of the volume.
Returns:
ListSnapshotsRequest with specified volumeId.

withMarker

public ListSnapshotsRequest 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:
ListSnapshotsRequest with specified marker.

withMaxKeys

public ListSnapshotsRequest 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:
ListSnapshotsRequest with specified maxKeys.

withRequestCredentials

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

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


Copyright © 2018. All rights reserved.