Class 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"));

    See Also:
    • Constructor Detail

      • RouteOptions

        public RouteOptions()
    • 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.
      • destinationIpv6CidrBlock

        public RouteOptions destinationIpv6CidrBlock​(String destinationIpv6CidrBlock)
        The IPv6 CIDR block used for the destination match. Routing decisions are based on the most specific match.
      • gatewayId

        public RouteOptions gatewayId​(String gatewayId)
        The ID of an Internet gateway or virtual private gateway attached to your VPC.
      • egressOnlyInternetGatewayId

        public RouteOptions egressOnlyInternetGatewayId​(String egressOnlyInternetGatewayId)
        [IPv6 traffic only] The ID of an egress-only Internet gateway.
      • natGatewayId

        public RouteOptions natGatewayId​(String natGatewayId)
        [IPv4 traffic only] The ID of a NAT gateway.
      • networkInterfaceId

        public RouteOptions networkInterfaceId​(String networkInterfaceId)
        The ID of a network interface.
      • 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.
      • vpcPeeringConnectionId

        public RouteOptions vpcPeeringConnectionId​(String vpcPeeringConnectionId)
        The ID of a VPC peering connection.