类 CreateVpcRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.vpc.model.CreateVpcRequest
-
public class CreateVpcRequest extends AbstractBceRequest
The request for creating a newly vpc.
-
-
构造器概要
构造器 构造器 说明 CreateVpcRequest()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetCidr()StringgetClientToken()StringgetDescription()BooleangetEnableIpv6()StringgetName()voidsetCidr(String cidr)voidsetClientToken(String clientToken)voidsetDescription(String description)voidsetEnableIpv6(Boolean enableIpv6)voidsetName(String name)CreateVpcRequestwithCidr(String cidr)Configure cidr for the request.CreateVpcRequestwithDescription(String description)Configure description for the request.CreateVpcRequestwithName(String name)Configure name for the request.CreateVpcRequestwithRequestCredentials(BceCredentials credentials)Configure request credential for the request.-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
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)
-
getEnableIpv6
public Boolean getEnableIpv6()
-
setEnableIpv6
public void setEnableIpv6(Boolean enableIpv6)
-
withRequestCredentials
public CreateVpcRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- CreateInstanceRequest with credentials.
-
withName
public CreateVpcRequest withName(String name)
Configure name for the request.- 参数:
name- The name of vpc- 返回:
- CreateVpcRequest with specific name
-
withCidr
public CreateVpcRequest withCidr(String cidr)
Configure cidr for the request.- 参数:
cidr- the cidr of vpc- 返回:
- CreateVpcRequest with cidr
-
withDescription
public CreateVpcRequest withDescription(String description)
Configure description for the request.- 参数:
description- the type of vpc- 返回:
- CreateVpcRequest with description
-
-