Package org.jclouds.aws.ec2.options
Class RouteOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.ec2.options.internal.BaseEC2RequestOptions
-
- org.jclouds.aws.ec2.options.RouteOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class RouteOptions extends BaseEC2RequestOptions
Contains options supported in the Form API for the Route operations.Usage
The recommended way to instantiate such an object is to statically import RouteOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):import static org.jclouds.ec2.options.RouteOptions.Builder.* EC2Api connection = // get connection Route r = connection.getRouteTableApi().get() .createRoute(region, routeTableId, gatewayId("igw-97e68af3").destinationCidrBlock("172.18.19.0/24"));
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RouteOptions.Builder
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description RouteOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteOptions
destinationCidrBlock(String destinationCidrBlock)
The IPv4 CIDR address block used for the destination match.RouteOptions
destinationIpv6CidrBlock(String destinationIpv6CidrBlock)
The IPv6 CIDR block used for the destination match.RouteOptions
dryRun()
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.RouteOptions
egressOnlyInternetGatewayId(String egressOnlyInternetGatewayId)
[IPv6 traffic only] The ID of an egress-only Internet gateway.RouteOptions
gatewayId(String gatewayId)
The ID of an Internet gateway or virtual private gateway attached to your VPC.String
getDestinationCidrBlock()
String
getDestinationIpv6CidrBlock()
String
getEgressOnlyInternetGatewayId()
String
getGatewayId()
String
getInstanceId()
String
getNatGatewayId()
String
getNetworkInterfaceId()
String
getVpcPeeringConnectionId()
RouteOptions
instanceId(String instanceId)
The ID of a NAT instance in your VPC.boolean
isDryRun()
RouteOptions
natGatewayId(String natGatewayId)
[IPv4 traffic only] The ID of a NAT gateway.RouteOptions
networkInterfaceId(String networkInterfaceId)
The ID of a network interface.RouteOptions
vpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.-
Methods inherited from class org.jclouds.ec2.options.internal.BaseEC2RequestOptions
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader
-
-
-
-
Method Detail
-
dryRun
public RouteOptions dryRun()
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
isDryRun
public boolean isDryRun()
-
destinationCidrBlock
public RouteOptions destinationCidrBlock(String destinationCidrBlock)
The IPv4 CIDR address block used for the destination match. Routing decisions are based on the most specific match.
-
getDestinationCidrBlock
public String getDestinationCidrBlock()
- See Also:
destinationCidrBlock(java.lang.String)
-
destinationIpv6CidrBlock
public RouteOptions destinationIpv6CidrBlock(String destinationIpv6CidrBlock)
The IPv6 CIDR block used for the destination match. Routing decisions are based on the most specific match.
-
getDestinationIpv6CidrBlock
public String getDestinationIpv6CidrBlock()
-
gatewayId
public RouteOptions gatewayId(String gatewayId)
The ID of an Internet gateway or virtual private gateway attached to your VPC.
-
getGatewayId
public String getGatewayId()
- See Also:
gatewayId(java.lang.String)
-
egressOnlyInternetGatewayId
public RouteOptions egressOnlyInternetGatewayId(String egressOnlyInternetGatewayId)
[IPv6 traffic only] The ID of an egress-only Internet gateway.
-
getEgressOnlyInternetGatewayId
public String getEgressOnlyInternetGatewayId()
-
natGatewayId
public RouteOptions natGatewayId(String natGatewayId)
[IPv4 traffic only] The ID of a NAT gateway.
-
getNatGatewayId
public String getNatGatewayId()
- See Also:
natGatewayId(String)
-
networkInterfaceId
public RouteOptions networkInterfaceId(String networkInterfaceId)
The ID of a network interface.
-
getNetworkInterfaceId
public String getNetworkInterfaceId()
- See Also:
networkInterfaceId(String)
-
instanceId
public RouteOptions instanceId(String instanceId)
The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.
-
getInstanceId
public String getInstanceId()
- See Also:
instanceId(String)
-
vpcPeeringConnectionId
public RouteOptions vpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.
-
getVpcPeeringConnectionId
public String getVpcPeeringConnectionId()
- See Also:
vpcPeeringConnectionId(String)
-
-