类 CreateSubnetRequest


  • public class CreateSubnetRequest
    extends AbstractBceRequest
    The request for creating a newly subnet.
    • 构造器详细资料

      • CreateSubnetRequest

        public CreateSubnetRequest()
    • 方法详细资料

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getZoneName

        public String getZoneName()
      • setZoneName

        public void setZoneName​(String zoneName)
      • getCidr

        public String getCidr()
      • setCidr

        public void setCidr​(String cidr)
      • getVpcId

        public String getVpcId()
      • setVpcId

        public void setVpcId​(String vpcId)
      • getSubnetType

        public String getSubnetType()
      • setSubnetType

        public void setSubnetType​(String subnetType)
      • 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)
      • withClientToken

        public CreateSubnetRequest 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
        返回:
        CreateSubnetRequest with specific clientToken
      • withName

        public CreateSubnetRequest withName​(String name)
        Configure name for the request.
        参数:
        name - The name of subnet
        返回:
        CreateSubnetRequest with specific name
      • withZoneName

        public CreateSubnetRequest withZoneName​(String zoneName)
        Configure zoneName for the request.
        参数:
        zoneName - the name of available zone
        返回:
        CreateSubnetRequest with zone name
      • withCidr

        public CreateSubnetRequest withCidr​(String cidr)
        Configure cidr for the request.
        参数:
        cidr - the cidr of subnet
        返回:
        CreateSubnetRequest with cidr
      • withVpcId

        public CreateSubnetRequest withVpcId​(String vpcId)
        Configure vpc id for the request.
        参数:
        vpcId - the vpcId of subnet
        返回:
        CreateSubnetRequest with vpcId
      • withSubnetType

        public CreateSubnetRequest withSubnetType​(String subnetType)
        Configure subnet type for the request.
        参数:
        subnetType - the type of subnet
        返回:
        CreateSubnetRequest with subnet type
      • withDescription

        public CreateSubnetRequest withDescription​(String description)
        Configure description for the request.
        参数:
        description - the type of subnet
        返回:
        CreateSubnetRequest with description