Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VpcPeeringConnectionStateReason()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpcPeeringConnectionStateReasonclone()booleanequals(Object obj)StringgetCode()The status of the VPC peering connection.StringgetMessage()A message that provides more information about the status, if applicable.inthashCode()voidsetCode(VpcPeeringConnectionStateReasonCode code)The status of the VPC peering connection.voidsetCode(String code)The status of the VPC peering connection.voidsetMessage(String message)A message that provides more information about the status, if applicable.StringtoString()Returns a string representation of this object; useful for testing and debugging.VpcPeeringConnectionStateReasonwithCode(VpcPeeringConnectionStateReasonCode code)The status of the VPC peering connection.VpcPeeringConnectionStateReasonwithCode(String code)The status of the VPC peering connection.VpcPeeringConnectionStateReasonwithMessage(String message)A message that provides more information about the status, if applicable.
-
-
-
Method Detail
-
setCode
public void setCode(String code)
The status of the VPC peering connection.
- Parameters:
code- The status of the VPC peering connection.- See Also:
VpcPeeringConnectionStateReasonCode
-
getCode
public String getCode()
The status of the VPC peering connection.
- Returns:
- The status of the VPC peering connection.
- See Also:
VpcPeeringConnectionStateReasonCode
-
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:
VpcPeeringConnectionStateReasonCode
-
setCode
public void setCode(VpcPeeringConnectionStateReasonCode code)
The status of the VPC peering connection.
- Parameters:
code- The status of the VPC peering connection.- See Also:
VpcPeeringConnectionStateReasonCode
-
withCode
public VpcPeeringConnectionStateReason withCode(VpcPeeringConnectionStateReasonCode 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:
VpcPeeringConnectionStateReasonCode
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpcPeeringConnectionStateReason clone()
-
-