Class VpcPeeringConnectionStateReason

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

public class VpcPeeringConnectionStateReason extends Object implements Serializable, Cloneable

Describes the status of a VPC peering connection.

See Also:
  • Constructor Details

    • VpcPeeringConnectionStateReason

      public VpcPeeringConnectionStateReason()
  • Method Details

    • setCode

      public void setCode(String code)

      The status of the VPC peering connection.

      Parameters:
      code - The status of the VPC peering connection.
      See Also:
    • getCode

      public String getCode()

      The status of the VPC peering connection.

      Returns:
      The status of the VPC peering connection.
      See Also:
    • withCode

      public VpcPeeringConnectionStateReason withCode(String code)

      The status of the VPC peering connection.

      Parameters:
      code - The status of the VPC peering connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setCode

      public void setCode(VpcPeeringConnectionStateReasonCode code)

      The status of the VPC peering connection.

      Parameters:
      code - The status of the VPC peering connection.
      See Also:
    • withCode

      The status of the VPC peering connection.

      Parameters:
      code - The status of the VPC peering connection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setMessage

      public void setMessage(String message)

      A message that provides more information about the status, if applicable.

      Parameters:
      message - A message that provides more information about the status, if applicable.
    • getMessage

      public String getMessage()

      A message that provides more information about the status, if applicable.

      Returns:
      A message that provides more information about the status, if applicable.
    • withMessage

      public VpcPeeringConnectionStateReason withMessage(String message)

      A message that provides more information about the status, if applicable.

      Parameters:
      message - A message that provides more information about the status, if applicable.
      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

      Overrides:
      clone in class Object