com.baidubce.services.subnet.model
Class DeleteSubnetRequest

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

public class DeleteSubnetRequest
extends AbstractBceRequest

The request for deleting subnet.


Constructor Summary
DeleteSubnetRequest()
           
 
Method Summary
 String getClientToken()
           
 String getSubnetId()
           
 void setClientToken(String clientToken)
           
 void setSubnetId(String subnetId)
           
 DeleteSubnetRequest withClientToken(String clientToken)
          Configure optional client token for the request.
 DeleteSubnetRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 DeleteSubnetRequest withSubnetId(String subnetId)
          Configure the subnetId 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

DeleteSubnetRequest

public DeleteSubnetRequest()
Method Detail

getSubnetId

public String getSubnetId()

setSubnetId

public void setSubnetId(String subnetId)

getClientToken

public String getClientToken()

setClientToken

public void setClientToken(String clientToken)

withClientToken

public DeleteSubnetRequest withClientToken(String clientToken)
Configure optional client token for the request. The request will be idempotent if client token is provided. If the clientToken is not specified by the user, a random String generated by default algorithm will be used.

Parameters:
clientToken - An ASCII string whose length is less than 64. See more detail at BCE API doc
Returns:
DeleteSubnetRequest with specific clientToken

withSubnetId

public DeleteSubnetRequest withSubnetId(String subnetId)
Configure the subnetId for the request.

Parameters:
subnetId - The id of subnet.
Returns:
GetSubnetRequest with specified subnetId.

withRequestCredentials

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

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


Copyright © 2018. All rights reserved.