类 CreateRouteRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.route.model.CreateRouteRequest
-
public class CreateRouteRequest extends AbstractBceRequest
Created by zhangjing60 on 17/8/2.
-
-
构造器概要
构造器 构造器 说明 CreateRouteRequest()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetClientToken()StringgetDescription()StringgetDestinationAddress()StringgetNexthopId()StringgetNexthopType()StringgetRouteTableId()StringgetSourceAddress()StringgetVersion()voidsetClientToken(String clientToken)voidsetDescription(String description)voidsetDestinationAddress(String destinationAddress)voidsetNexthopId(String nexthopId)voidsetNexthopType(String nexthopType)voidsetRouteTableId(String routeTableId)voidsetSourceAddress(String sourceAddress)voidsetVersion(String version)CreateRouteRequestwithClientToken(String clientToken)Configure optional client token for the request.CreateRouteRequestwithDescription(String description)configure description for the requestCreateRouteRequestwithDestinationAddress(String destinationAddress)configure destination address for the requestCreateRouteRequestwithNextHopId(String nexthopId)configure next hop id for the requestCreateRouteRequestwithNextHopType(String nexthopType)configure next hop type for the requestCreateRouteRequestwithRequestCredentials(BceCredentials credentials)Configure request credential for the request.CreateRouteRequestwithRouteTableId(String routeTableId)configure route table id for the requestCreateRouteRequestwithSourceAddress(String sourceAddress)configure source address for the requestCreateRouteRequestwithVersion(String version)-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
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.- 参数:
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
-
withRequestCredentials
public CreateRouteRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- CreateRouteRequest with credentials.
-
-