public class VpcPeeringConnectionStateReason
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the status of a VPC peering connection.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code
The status of the VPC peering connection.
|
private java.lang.String |
message
A message that provides more information about the status, if applicable.
|
Constructor and Description |
---|
VpcPeeringConnectionStateReason() |
Modifier and Type | Method and Description |
---|---|
VpcPeeringConnectionStateReason |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
The status of the VPC peering connection.
|
java.lang.String |
getMessage()
A message that provides more information about the status, if applicable.
|
int |
hashCode() |
void |
setCode(java.lang.String code)
The status of the VPC peering connection.
|
void |
setCode(VpcPeeringConnectionStateReasonCode code)
The status of the VPC peering connection.
|
void |
setMessage(java.lang.String message)
A message that provides more information about the status, if applicable.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VpcPeeringConnectionStateReason |
withCode(java.lang.String code)
The status of the VPC peering connection.
|
VpcPeeringConnectionStateReason |
withCode(VpcPeeringConnectionStateReasonCode code)
The status of the VPC peering connection.
|
VpcPeeringConnectionStateReason |
withMessage(java.lang.String message)
A message that provides more information about the status, if applicable.
|
private java.lang.String code
The status of the VPC peering connection.
private java.lang.String message
A message that provides more information about the status, if applicable.
public void setCode(java.lang.String code)
The status of the VPC peering connection.
code
- The status of the VPC peering connection.VpcPeeringConnectionStateReasonCode
public java.lang.String getCode()
The status of the VPC peering connection.
VpcPeeringConnectionStateReasonCode
public VpcPeeringConnectionStateReason withCode(java.lang.String code)
The status of the VPC peering connection.
code
- The status of the VPC peering connection.VpcPeeringConnectionStateReasonCode
public void setCode(VpcPeeringConnectionStateReasonCode code)
The status of the VPC peering connection.
code
- The status of the VPC peering connection.VpcPeeringConnectionStateReasonCode
public VpcPeeringConnectionStateReason withCode(VpcPeeringConnectionStateReasonCode code)
The status of the VPC peering connection.
code
- The status of the VPC peering connection.VpcPeeringConnectionStateReasonCode
public void setMessage(java.lang.String message)
A message that provides more information about the status, if applicable.
message
- A message that provides more information about the status, if
applicable.public java.lang.String getMessage()
A message that provides more information about the status, if applicable.
public VpcPeeringConnectionStateReason withMessage(java.lang.String message)
A message that provides more information about the status, if applicable.
message
- A message that provides more information about the status, if
applicable.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VpcPeeringConnectionStateReason clone()
clone
in class java.lang.Object