类 CreateRouteRequest


  • public class CreateRouteRequest
    extends AbstractBceRequest
    Created by zhangjing60 on 17/8/2.
    • 构造器详细资料

      • CreateRouteRequest

        public CreateRouteRequest()
    • 方法详细资料

      • getVersion

        public String getVersion()
      • setVersion

        public void setVersion​(String version)
      • getClientToken

        public String getClientToken()
      • setClientToken

        public void setClientToken​(String clientToken)
      • getSourceAddress

        public String getSourceAddress()
      • setSourceAddress

        public void setSourceAddress​(String sourceAddress)
      • getDestinationAddress

        public String getDestinationAddress()
      • setDestinationAddress

        public void setDestinationAddress​(String destinationAddress)
      • getNexthopId

        public String getNexthopId()
      • setNexthopId

        public void setNexthopId​(String nexthopId)
      • getNexthopType

        public String getNexthopType()
      • setNexthopType

        public void setNexthopType​(String nexthopType)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getRouteTableId

        public String getRouteTableId()
      • setRouteTableId

        public void setRouteTableId​(String routeTableId)
      • withClientToken

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

        public CreateRouteRequest withRouteTableId​(String routeTableId)
        configure route table id for the request
        参数:
        routeTableId - the id of the route table
        返回:
        CreateRouteRequest with routeTableId
      • withSourceAddress

        public CreateRouteRequest withSourceAddress​(String sourceAddress)
        configure source address for the request
        参数:
        sourceAddress - the source address
        返回:
        CreateRouteRequest with source address
      • withDestinationAddress

        public CreateRouteRequest withDestinationAddress​(String destinationAddress)
        configure destination address for the request
        参数:
        destinationAddress - the destination address
        返回:
        CreateRouteRequest with destination address
      • withNextHopId

        public CreateRouteRequest withNextHopId​(String nexthopId)
        configure next hop id for the request
        参数:
        nexthopId - the next hop id
        返回:
        CreateRouteRequest with the nexthopId
      • withNextHopType

        public CreateRouteRequest withNextHopType​(String nexthopType)
        configure next hop type for the request
        参数:
        nexthopType - the route type: BCC-"custom", VPN-"vpn", NAT-"nat"
        返回:
        CreateRouteRequest with the nexthopType
      • withDescription

        public CreateRouteRequest withDescription​(String description)
        configure description for the request
        参数:
        description - the description for the route table
        返回:
        CreateRouteRequest with the description