com.baidubce.services.vpc.model
Class CreateVpcRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.vpc.model.CreateVpcRequest

public class CreateVpcRequest
extends AbstractBceRequest

The request for creating a newly vpc.


Constructor Summary
CreateVpcRequest()
           
 
Method Summary
 String getCidr()
           
 String getClientToken()
           
 String getDescription()
           
 String getName()
           
 void setCidr(String cidr)
           
 void setClientToken(String clientToken)
           
 void setDescription(String description)
           
 void setName(String name)
           
 CreateVpcRequest withCidr(String cidr)
          Configure cidr for the request.
 CreateVpcRequest withDescription(String description)
          Configure description for the request.
 CreateVpcRequest withName(String name)
          Configure name for the request.
 CreateVpcRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential 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

CreateVpcRequest

public CreateVpcRequest()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getCidr

public String getCidr()

setCidr

public void setCidr(String cidr)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getClientToken

public String getClientToken()

setClientToken

public void setClientToken(String clientToken)

withRequestCredentials

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

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

withName

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

Parameters:
name - The name of vpc
Returns:
CreateVpcRequest with specific name

withCidr

public CreateVpcRequest withCidr(String cidr)
Configure cidr for the request.

Parameters:
cidr - the cidr of vpc
Returns:
CreateVpcRequest with cidr

withDescription

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

Parameters:
description - the type of vpc
Returns:
CreateVpcRequest with description


Copyright © 2018. All rights reserved.