public class VpcPeeringConnectionStateReason
extends java.lang.Object
implements java.io.Serializable
Describes the status of a VPC peering connection.
Constructor and Description |
---|
VpcPeeringConnectionStateReason() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getCode()
Constraints:
Allowed Values: initiating-request, pending-acceptance, active, deleted, rejected, failed, expired, provisioning, deleting
VpcPeeringConnectionStateReasonCode
public void setCode(java.lang.String code)
Constraints:
Allowed Values: initiating-request, pending-acceptance, active, deleted, rejected, failed, expired, provisioning, deleting
code
- The status of the VPC peering connection.VpcPeeringConnectionStateReasonCode
public VpcPeeringConnectionStateReason withCode(java.lang.String code)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: initiating-request, pending-acceptance, active, deleted, rejected, failed, expired, provisioning, deleting
code
- The status of the VPC peering connection.VpcPeeringConnectionStateReasonCode
public void setCode(VpcPeeringConnectionStateReasonCode code)
Constraints:
Allowed Values: initiating-request, pending-acceptance, active, deleted, rejected, failed, expired, provisioning, deleting
code
- The status of the VPC peering connection.VpcPeeringConnectionStateReasonCode
public VpcPeeringConnectionStateReason withCode(VpcPeeringConnectionStateReasonCode code)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: initiating-request, pending-acceptance, active, deleted, rejected, failed, expired, provisioning, deleting
code
- The status of the VPC peering connection.VpcPeeringConnectionStateReasonCode
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- A message that provides more information about the status, if
applicable.public VpcPeeringConnectionStateReason withMessage(java.lang.String message)
Returns a reference to this object so that method calls can be chained together.
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.