com.baidubce.services.subnet.model
Class DeleteSubnetRequest
java.lang.Object
com.baidubce.model.AbstractBceRequest
com.baidubce.services.subnet.model.DeleteSubnetRequest
public class DeleteSubnetRequest
- extends AbstractBceRequest
The request for deleting subnet.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteSubnetRequest
public DeleteSubnetRequest()
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.