类 ModifySubnetAttributesRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.subnet.model.ModifySubnetAttributesRequest
-
public class ModifySubnetAttributesRequest extends AbstractBceRequest
request model to modify subnet
-
-
构造器概要
构造器 构造器 说明 ModifySubnetAttributesRequest()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetClientToken()StringgetDescription()BooleangetEnableIpv6()StringgetName()StringgetSubnetId()voidsetClientToken(String clientToken)voidsetDescription(String description)voidsetEnableIpv6(Boolean enableIpv6)voidsetName(String name)voidsetSubnetId(String subnetId)ModifySubnetAttributesRequestwithClientToken(String clientToken)Configure optional client token for the request.ModifySubnetAttributesRequestwithDescription(String description)Configure description for the request.ModifySubnetAttributesRequestwithName(String name)Configure name for the request.ModifySubnetAttributesRequestwithRequestCredentials(BceCredentials credentials)Configure request credential for the request.ModifySubnetAttributesRequestwithSubnetId(String subnetId)Configure subnet id for the request.-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
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.- 参数:
clientToken- An ASCII string whose length is less than 64. See more detail at BCE API doc- 返回:
- ModifySubnetAttributesRequest with specific clientToken
-
withSubnetId
public ModifySubnetAttributesRequest withSubnetId(String subnetId)
Configure subnet id for the request.- 参数:
subnetId- the id of subnet- 返回:
- ModifySubnetAttributesRequest with subnetId
-
withName
public ModifySubnetAttributesRequest withName(String name)
Configure name for the request.- 参数:
name- The new name of subnet- 返回:
- ModifySubnetAttributesRequest with specific name
-
withDescription
public ModifySubnetAttributesRequest withDescription(String description)
Configure description for the request.- 参数:
description- the type of subnet- 返回:
- 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)
-
getEnableIpv6
public Boolean getEnableIpv6()
-
setEnableIpv6
public void setEnableIpv6(Boolean enableIpv6)
-
withRequestCredentials
public ModifySubnetAttributesRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- ModifyVpcAttributesRequest with credentials.
-
-