com.baidubce.model
Class ListRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.model.ListRequest
Direct Known Subclasses:
ListAclRequest, ListBackendServerRequest, ListBackendServerStatusRequest, ListBlbRequest, ListEipGroupRequest, ListImagesRequest, ListInstancesRequest, ListListenerRequest, ListNatRequest, ListPeerConnRequest, ListSecurityGroupsRequest, ListSnapshotsRequest, ListSubnetsRequest, ListVolumesRequest, ListVpcRequest

public abstract class ListRequest
extends AbstractBceRequest

Container for the parameters of the list operation.


Constructor Summary
ListRequest()
           
 
Method Summary
 String getMarker()
          Returning the optional parameter marker specified in the original request to specify where in the results to begin listing.
 int getMaxKeys()
          Returning the optional parameter that specifies the max number of list result to return .
 void setMarker(String marker)
          Setting the optional parameter marker specified in the original request to specify where in the results to begin listing.
 void setMaxKeys(int maxKeys)
          Setting the optional parameter to specifies the max number of list result to return
 ListRequest withMarker(String marker)
          Configure the request with specified marker.
 ListRequest withMaxKeys(int maxKeys)
          Configure the request with specified maxKeys.
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials, withRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListRequest

public ListRequest()
Method Detail

getMarker

public String getMarker()
Returning the optional parameter marker specified in the original request to specify where in the results to begin listing.

Returns:
The optional parameter marker specified in the original request to specify where in the results to begin listing.

setMarker

public void setMarker(String marker)
Setting the optional parameter marker specified in the original request to specify where in the results to begin listing.

Parameters:
marker - The optional parameter marker specified in the original request to specify where in the results to begin listing.

withMarker

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

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

getMaxKeys

public int getMaxKeys()
Returning the optional parameter that specifies the max number of list result to return .

Returns:
The optional parameter in the original request to specifies the max number of list result to return .

setMaxKeys

public void setMaxKeys(int maxKeys)
Setting the optional parameter to specifies the max number of list result to return

Parameters:
maxKeys - The optional parameter in the original request to specifies the max number of list result to return .

withMaxKeys

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

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


Copyright © 2018. All rights reserved.