Class Route

    • Constructor Detail

      • Route

        public Route()
    • Method Detail

      • setDestinationCidrBlock

        public void setDestinationCidrBlock​(String destinationCidrBlock)

        The CIDR block used for the destination match.

        Parameters:
        destinationCidrBlock - The CIDR block used for the destination match.
      • getDestinationCidrBlock

        public String getDestinationCidrBlock()

        The CIDR block used for the destination match.

        Returns:
        The CIDR block used for the destination match.
      • withDestinationCidrBlock

        public Route withDestinationCidrBlock​(String destinationCidrBlock)

        The CIDR block used for the destination match.

        Parameters:
        destinationCidrBlock - The CIDR block used for the destination match.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDestinationPrefixListId

        public void setDestinationPrefixListId​(String destinationPrefixListId)

        The prefix of the AWS service.

        Parameters:
        destinationPrefixListId - The prefix of the AWS service.
      • getDestinationPrefixListId

        public String getDestinationPrefixListId()

        The prefix of the AWS service.

        Returns:
        The prefix of the AWS service.
      • withDestinationPrefixListId

        public Route withDestinationPrefixListId​(String destinationPrefixListId)

        The prefix of the AWS service.

        Parameters:
        destinationPrefixListId - The prefix of the AWS service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setGatewayId

        public void setGatewayId​(String gatewayId)

        The ID of a gateway attached to your VPC.

        Parameters:
        gatewayId - The ID of a gateway attached to your VPC.
      • getGatewayId

        public String getGatewayId()

        The ID of a gateway attached to your VPC.

        Returns:
        The ID of a gateway attached to your VPC.
      • withGatewayId

        public Route withGatewayId​(String gatewayId)

        The ID of a gateway attached to your VPC.

        Parameters:
        gatewayId - The ID of a gateway attached to your VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceId

        public void setInstanceId​(String instanceId)

        The ID of a NAT instance in your VPC.

        Parameters:
        instanceId - The ID of a NAT instance in your VPC.
      • getInstanceId

        public String getInstanceId()

        The ID of a NAT instance in your VPC.

        Returns:
        The ID of a NAT instance in your VPC.
      • withInstanceId

        public Route withInstanceId​(String instanceId)

        The ID of a NAT instance in your VPC.

        Parameters:
        instanceId - The ID of a NAT instance in your VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceOwnerId

        public void setInstanceOwnerId​(String instanceOwnerId)

        The AWS account ID of the owner of the instance.

        Parameters:
        instanceOwnerId - The AWS account ID of the owner of the instance.
      • getInstanceOwnerId

        public String getInstanceOwnerId()

        The AWS account ID of the owner of the instance.

        Returns:
        The AWS account ID of the owner of the instance.
      • withInstanceOwnerId

        public Route withInstanceOwnerId​(String instanceOwnerId)

        The AWS account ID of the owner of the instance.

        Parameters:
        instanceOwnerId - The AWS account ID of the owner of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setNetworkInterfaceId

        public void setNetworkInterfaceId​(String networkInterfaceId)

        The ID of the network interface.

        Parameters:
        networkInterfaceId - The ID of the network interface.
      • getNetworkInterfaceId

        public String getNetworkInterfaceId()

        The ID of the network interface.

        Returns:
        The ID of the network interface.
      • withNetworkInterfaceId

        public Route withNetworkInterfaceId​(String networkInterfaceId)

        The ID of the network interface.

        Parameters:
        networkInterfaceId - The ID of the network interface.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setVpcPeeringConnectionId

        public void setVpcPeeringConnectionId​(String vpcPeeringConnectionId)

        The ID of the VPC peering connection.

        Parameters:
        vpcPeeringConnectionId - The ID of the VPC peering connection.
      • getVpcPeeringConnectionId

        public String getVpcPeeringConnectionId()

        The ID of the VPC peering connection.

        Returns:
        The ID of the VPC peering connection.
      • withVpcPeeringConnectionId

        public Route withVpcPeeringConnectionId​(String vpcPeeringConnectionId)

        The ID of the VPC peering connection.

        Parameters:
        vpcPeeringConnectionId - The ID of the VPC peering connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setNatGatewayId

        public void setNatGatewayId​(String natGatewayId)

        The ID of a NAT gateway.

        Parameters:
        natGatewayId - The ID of a NAT gateway.
      • getNatGatewayId

        public String getNatGatewayId()

        The ID of a NAT gateway.

        Returns:
        The ID of a NAT gateway.
      • withNatGatewayId

        public Route withNatGatewayId​(String natGatewayId)

        The ID of a NAT gateway.

        Parameters:
        natGatewayId - The ID of a NAT gateway.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setState

        public void setState​(String state)

        The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).

        Parameters:
        state - The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).
        See Also:
        RouteState
      • getState

        public String getState()

        The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).

        Returns:
        The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).
        See Also:
        RouteState
      • withState

        public Route withState​(String state)

        The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).

        Parameters:
        state - The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RouteState
      • setState

        public void setState​(RouteState state)

        The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).

        Parameters:
        state - The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).
        See Also:
        RouteState
      • withState

        public Route withState​(RouteState state)

        The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).

        Parameters:
        state - The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RouteState
      • setOrigin

        public void setOrigin​(String origin)

        Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        Parameters:
        origin - Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        See Also:
        RouteOrigin
      • getOrigin

        public String getOrigin()

        Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        Returns:
        Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        See Also:
        RouteOrigin
      • withOrigin

        public Route withOrigin​(String origin)

        Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        Parameters:
        origin - Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RouteOrigin
      • setOrigin

        public void setOrigin​(RouteOrigin origin)

        Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        Parameters:
        origin - Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        See Also:
        RouteOrigin
      • withOrigin

        public Route withOrigin​(RouteOrigin origin)

        Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        Parameters:
        origin - Describes how the route was created.

        • CreateRouteTable - The route was automatically created when the route table was created.

        • CreateRoute - The route was manually added to the route table.

        • EnableVgwRoutePropagation - The route was propagated by route propagation.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RouteOrigin
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object