com.baidubce.services.subnet.model
Class ListSubnetsRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.model.ListRequest
          extended by com.baidubce.services.subnet.model.ListSubnetsRequest

public class ListSubnetsRequest
extends ListRequest

The request model to query subnet list


Constructor Summary
ListSubnetsRequest()
           
 
Method Summary
 String getSubnetType()
           
 String getVpcId()
           
 String getZoneName()
           
 void setSubnetType(String subnetType)
           
 void setVpcId(String vpcId)
           
 void setZoneName(String zoneName)
           
 ListSubnetsRequest withMarker(String marker)
          Configure the request with specified marker.
 ListSubnetsRequest withMaxKeys(int maxKeys)
          Configure the request with specified maxKeys.
 ListSubnetsRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 ListSubnetsRequest withSubnetType(String subnetType)
          Configure subnet type for the request.
 ListSubnetsRequest withVpcId(String vpcId)
          Configure vpc id for the request.
 ListSubnetsRequest withZoneName(String zoneName)
          Configure zoneName for the request.
 
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

ListSubnetsRequest

public ListSubnetsRequest()
Method Detail

withZoneName

public ListSubnetsRequest withZoneName(String zoneName)
Configure zoneName for the request.

Parameters:
zoneName - the name of available zone
Returns:
ListSubnetsRequest with zone name

withVpcId

public ListSubnetsRequest withVpcId(String vpcId)
Configure vpc id for the request.

Parameters:
vpcId - the vpcId of subnet
Returns:
ListSubnetsRequest with vpcId

withSubnetType

public ListSubnetsRequest withSubnetType(String subnetType)
Configure subnet type for the request.

Parameters:
subnetType - the type of subnet
Returns:
ListSubnetsRequest with subnet type

getVpcId

public String getVpcId()

setVpcId

public void setVpcId(String vpcId)

getZoneName

public String getZoneName()

setZoneName

public void setZoneName(String zoneName)

getSubnetType

public String getSubnetType()

setSubnetType

public void setSubnetType(String subnetType)

withMarker

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

withMaxKeys

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

withRequestCredentials

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

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


Copyright © 2018. All rights reserved.