com.baidubce.services.subnet.model
Class ModifySubnetAttributesRequest

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

public class ModifySubnetAttributesRequest
extends AbstractBceRequest

request model to modify subnet


Constructor Summary
ModifySubnetAttributesRequest()
           
 
Method Summary
 String getClientToken()
           
 String getDescription()
           
 String getName()
           
 String getSubnetId()
           
 void setClientToken(String clientToken)
           
 void setDescription(String description)
           
 void setName(String name)
           
 void setSubnetId(String subnetId)
           
 ModifySubnetAttributesRequest withClientToken(String clientToken)
          Configure optional client token for the request.
 ModifySubnetAttributesRequest withDescription(String description)
          Configure description for the request.
 ModifySubnetAttributesRequest withName(String name)
          Configure name for the request.
 ModifySubnetAttributesRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 ModifySubnetAttributesRequest withSubnetId(String subnetId)
          Configure subnet id 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

ModifySubnetAttributesRequest

public ModifySubnetAttributesRequest()
Method Detail

withClientToken

public ModifySubnetAttributesRequest 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:
ModifySubnetAttributesRequest with specific clientToken

withSubnetId

public ModifySubnetAttributesRequest withSubnetId(String subnetId)
Configure subnet id for the request.

Parameters:
subnetId - the id of subnet
Returns:
ModifySubnetAttributesRequest with subnetId

withName

public ModifySubnetAttributesRequest withName(String name)
Configure name for the request.

Parameters:
name - The new name of subnet
Returns:
ModifySubnetAttributesRequest with specific name

withDescription

public ModifySubnetAttributesRequest withDescription(String description)
Configure description for the request.

Parameters:
description - the type of subnet
Returns:
ModifySubnetAttributesRequest with description

getClientToken

public String getClientToken()

setClientToken

public void setClientToken(String clientToken)

getSubnetId

public String getSubnetId()

setSubnetId

public void setSubnetId(String subnetId)

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

withRequestCredentials

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

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


Copyright © 2018. All rights reserved.