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 VpcPeeringConnectionStateReason
clone()
boolean
equals(Object obj)
String
getCode()
The status of the VPC peering connection.String
getMessage()
A message that provides more information about the status, if applicable.int
hashCode()
void
setCode(VpcPeeringConnectionStateReasonCode code)
The status of the VPC peering connection.void
setCode(String code)
The status of the VPC peering connection.void
setMessage(String message)
A message that provides more information about the status, if applicable.String
toString()
Returns a string representation of this object; useful for testing and debugging.VpcPeeringConnectionStateReason
withCode(VpcPeeringConnectionStateReasonCode code)
The status of the VPC peering connection.VpcPeeringConnectionStateReason
withCode(String code)
The status of the VPC peering connection.VpcPeeringConnectionStateReason
withMessage(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpcPeeringConnectionStateReason clone()
-
-