Class VpnStaticRoute

java.lang.Object
com.amazonaws.services.ec2.model.VpnStaticRoute
All Implemented Interfaces:
Serializable, Cloneable

public class VpnStaticRoute extends Object implements Serializable, Cloneable

Describes a static route for a VPN connection.

See Also:
  • Constructor Details

    • VpnStaticRoute

      public VpnStaticRoute()
  • Method Details

    • setDestinationCidrBlock

      public void setDestinationCidrBlock(String destinationCidrBlock)

      The CIDR block associated with the local subnet of the customer data center.

      Parameters:
      destinationCidrBlock - The CIDR block associated with the local subnet of the customer data center.
    • getDestinationCidrBlock

      public String getDestinationCidrBlock()

      The CIDR block associated with the local subnet of the customer data center.

      Returns:
      The CIDR block associated with the local subnet of the customer data center.
    • withDestinationCidrBlock

      public VpnStaticRoute withDestinationCidrBlock(String destinationCidrBlock)

      The CIDR block associated with the local subnet of the customer data center.

      Parameters:
      destinationCidrBlock - The CIDR block associated with the local subnet of the customer data center.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSource

      public void setSource(String source)

      Indicates how the routes were provided.

      Parameters:
      source - Indicates how the routes were provided.
      See Also:
    • getSource

      public String getSource()

      Indicates how the routes were provided.

      Returns:
      Indicates how the routes were provided.
      See Also:
    • withSource

      public VpnStaticRoute withSource(String source)

      Indicates how the routes were provided.

      Parameters:
      source - Indicates how the routes were provided.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setSource

      public void setSource(VpnStaticRouteSource source)

      Indicates how the routes were provided.

      Parameters:
      source - Indicates how the routes were provided.
      See Also:
    • withSource

      public VpnStaticRoute withSource(VpnStaticRouteSource source)

      Indicates how the routes were provided.

      Parameters:
      source - Indicates how the routes were provided.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setState

      public void setState(String state)

      The current state of the static route.

      Parameters:
      state - The current state of the static route.
      See Also:
    • getState

      public String getState()

      The current state of the static route.

      Returns:
      The current state of the static route.
      See Also:
    • withState

      public VpnStaticRoute withState(String state)

      The current state of the static route.

      Parameters:
      state - The current state of the static route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setState

      public void setState(VpnState state)

      The current state of the static route.

      Parameters:
      state - The current state of the static route.
      See Also:
    • withState

      public VpnStaticRoute withState(VpnState state)

      The current state of the static route.

      Parameters:
      state - The current state of the static route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public VpnStaticRoute clone()
      Overrides:
      clone in class Object