类 CreateNatRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.nat.model.CreateNatRequest
-
public class CreateNatRequest extends AbstractBceRequest
The request for creating a nat.
-
-
构造器概要
构造器 构造器 说明 CreateNatRequest()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BillinggetBilling()StringgetClientToken()List<String>getEips()StringgetName()StringgetSpec()List<TagModel>getTags()StringgetVpcId()voidsetBilling(Billing billing)voidsetClientToken(String clientToken)voidsetEips(List<String> eips)voidsetName(String name)voidsetSpec(String spec)voidsetTags(List<TagModel> tags)voidsetVpcId(String vpcId)CreateNatRequestwithBilling(Billing billing)Configure billing for the request.CreateNatRequestwithEips(List<String> eips)Configure eips for the request.CreateNatRequestwithName(String name)Configure name for the request.AbstractBceRequestwithRequestCredentials(BceCredentials credentials)CreateNatRequestwithSpec(String spec)Configure spec for the request.CreateNatRequestwithVpcId(String vpcId)Configure vpcId for the request.-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
withRequestCredentials
public AbstractBceRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
withName
public CreateNatRequest withName(String name)
Configure name for the request.- 参数:
name- The name of CreateNatRequest- 返回:
- CreateNatRequest with specific name
-
withVpcId
public CreateNatRequest withVpcId(String vpcId)
Configure vpcId for the request.- 参数:
vpcId- The vpcId of CreateNatRequest- 返回:
- CreateNatRequest with specific vpcId
-
withSpec
public CreateNatRequest withSpec(String spec)
Configure spec for the request.- 参数:
spec- The spec of CreateNatRequest- 返回:
- CreateNatRequest with specific spec
-
withEips
public CreateNatRequest withEips(List<String> eips)
Configure eips for the request.- 参数:
eips- The spec of CreateNatRequest- 返回:
- CreateNatRequest with specific eips
-
withBilling
public CreateNatRequest withBilling(Billing billing)
Configure billing for the request.- 参数:
billing- The spec of CreateNatRequest- 返回:
- CreateNatRequest with specific billing
-
getClientToken
public String getClientToken()
-
setClientToken
public void setClientToken(String clientToken)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getVpcId
public String getVpcId()
-
setVpcId
public void setVpcId(String vpcId)
-
getSpec
public String getSpec()
-
setSpec
public void setSpec(String spec)
-
getBilling
public Billing getBilling()
-
setBilling
public void setBilling(Billing billing)
-
-