com.baidubce.services.route.model
Class CreateRouteRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.route.model.CreateRouteRequest

public class CreateRouteRequest
extends AbstractBceRequest

Created by zhangjing60 on 17/8/2.


Constructor Summary
CreateRouteRequest()
           
 
Method Summary
 String getClientToken()
           
 String getDescription()
           
 String getDestinationAddress()
           
 String getNexthopId()
           
 String getNexthopType()
           
 String getRouteTableId()
           
 String getSourceAddress()
           
 String getVersion()
           
 void setClientToken(String clientToken)
           
 void setDescription(String description)
           
 void setDestinationAddress(String destinationAddress)
           
 void setNexthopId(String nexthopId)
           
 void setNexthopType(String nexthopType)
           
 void setRouteTableId(String routeTableId)
           
 void setSourceAddress(String sourceAddress)
           
 void setVersion(String version)
           
 CreateRouteRequest withClientToken(String clientToken)
          Configure optional client token for the request.
 CreateRouteRequest withDescription(String description)
          configure description for the request
 CreateRouteRequest withDestinationAddress(String destinationAddress)
          configure destination address for the request
 CreateRouteRequest withNextHopId(String nexthopId)
          configure next hop id for the request
 CreateRouteRequest withNextHopType(String nexthopType)
          configure next hop type for the request
 CreateRouteRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 CreateRouteRequest withRouteTableId(String routeTableId)
          configure route table id for the request
 CreateRouteRequest withSourceAddress(String sourceAddress)
          configure source address for the request
 CreateRouteRequest withVersion(String version)
           
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateRouteRequest

public CreateRouteRequest()
Method Detail

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)

withVersion

public CreateRouteRequest withVersion(String version)

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.

Parameters:
clientToken - An ASCII string whose length is less than 64. See more detail at
Returns:
CreateSubnetRequest with specific clientToken

withRouteTableId

public CreateRouteRequest withRouteTableId(String routeTableId)
configure route table id for the request

Parameters:
routeTableId - the id of the route table
Returns:
CreateRouteRequest with routeTableId

withSourceAddress

public CreateRouteRequest withSourceAddress(String sourceAddress)
configure source address for the request

Parameters:
sourceAddress - the source address
Returns:
CreateRouteRequest with source address

withDestinationAddress

public CreateRouteRequest withDestinationAddress(String destinationAddress)
configure destination address for the request

Parameters:
destinationAddress - the destination address
Returns:
CreateRouteRequest with destination address

withNextHopId

public CreateRouteRequest withNextHopId(String nexthopId)
configure next hop id for the request

Parameters:
nexthopId - the next hop id
Returns:
CreateRouteRequest with the nexthopId

withNextHopType

public CreateRouteRequest withNextHopType(String nexthopType)
configure next hop type for the request

Parameters:
nexthopType - the route type: BCC-"custom", VPN-"vpn", NAT-"nat"
Returns:
CreateRouteRequest with the nexthopType

withDescription

public CreateRouteRequest withDescription(String description)
configure description for the request

Parameters:
description - the description for the route table
Returns:
CreateRouteRequest with the description

withRequestCredentials

public CreateRouteRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.

Specified by:
withRequestCredentials in class AbstractBceRequest
Parameters:
credentials - a valid instance of BceCredentials.
Returns:
CreateRouteRequest with credentials.


Copyright © 2018. All rights reserved.