public class CreateRouteRequest extends AbstractBceRequest
| Constructor and Description |
|---|
CreateRouteRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientToken() |
String |
getDescription() |
String |
getDestinationAddress() |
int |
getIpVersion() |
String |
getNexthopId() |
String |
getNexthopType() |
String |
getRouteTableId() |
String |
getSourceAddress() |
void |
setClientToken(String clientToken) |
void |
setDescription(String description) |
void |
setDestinationAddress(String destinationAddress) |
void |
setIpVersion(int ipVersion) |
void |
setNexthopId(String nexthopId) |
void |
setNexthopType(String nexthopType) |
void |
setRouteTableId(String routeTableId) |
void |
setSourceAddress(String sourceAddress) |
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) |
getRequestCredentials, setRequestCredentialspublic void setIpVersion(int ipVersion)
public String getClientToken()
public void setClientToken(String clientToken)
public String getSourceAddress()
public void setSourceAddress(String sourceAddress)
public String getDestinationAddress()
public void setDestinationAddress(String destinationAddress)
public String getNexthopId()
public void setNexthopId(String nexthopId)
public String getNexthopType()
public void setNexthopType(String nexthopType)
public String getDescription()
public void setDescription(String description)
public String getRouteTableId()
public void setRouteTableId(String routeTableId)
public int getIpVersion()
public CreateRouteRequest withVersion(String version)
public CreateRouteRequest withClientToken(String clientToken)
clientToken - An ASCII string whose length is less than 64.
See more detail atpublic CreateRouteRequest withRouteTableId(String routeTableId)
routeTableId - the id of the route tablepublic CreateRouteRequest withSourceAddress(String sourceAddress)
sourceAddress - the source addresspublic CreateRouteRequest withDestinationAddress(String destinationAddress)
destinationAddress - the destination addresspublic CreateRouteRequest withNextHopId(String nexthopId)
nexthopId - the next hop idpublic CreateRouteRequest withNextHopType(String nexthopType)
nexthopType - the route type: BCC-"custom", VPN-"vpn", NAT-"nat"public CreateRouteRequest withDescription(String description)
description - the description for the route tablepublic CreateRouteRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - a valid instance of BceCredentials.Copyright © 2024. All rights reserved.