Class DescribeVpnGatewaysResult

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

public class DescribeVpnGatewaysResult extends Object implements Serializable, Cloneable

Contains the output of DescribeVpnGateways.

See Also:
  • Constructor Details

    • DescribeVpnGatewaysResult

      public DescribeVpnGatewaysResult()
  • Method Details

    • getVpnGateways

      public List<VpnGateway> getVpnGateways()

      Information about one or more virtual private gateways.

      Returns:
      Information about one or more virtual private gateways.
    • setVpnGateways

      public void setVpnGateways(Collection<VpnGateway> vpnGateways)

      Information about one or more virtual private gateways.

      Parameters:
      vpnGateways - Information about one or more virtual private gateways.
    • withVpnGateways

      public DescribeVpnGatewaysResult withVpnGateways(VpnGateway... vpnGateways)

      Information about one or more virtual private gateways.

      NOTE: This method appends the values to the existing list (if any). Use setVpnGateways(java.util.Collection) or withVpnGateways(java.util.Collection) if you want to override the existing values.

      Parameters:
      vpnGateways - Information about one or more virtual private gateways.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withVpnGateways

      public DescribeVpnGatewaysResult withVpnGateways(Collection<VpnGateway> vpnGateways)

      Information about one or more virtual private gateways.

      Parameters:
      vpnGateways - Information about one or more virtual private gateways.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 DescribeVpnGatewaysResult clone()
      Overrides:
      clone in class Object