public class VpcAttachment
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an attachment between a virtual private gateway and a VPC.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
state
The current state of the attachment.
|
private java.lang.String |
vpcId
The ID of the VPC.
|
Constructor and Description |
---|
VpcAttachment() |
Modifier and Type | Method and Description |
---|---|
VpcAttachment |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getState()
The current state of the attachment.
|
java.lang.String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setState(AttachmentStatus state)
The current state of the attachment.
|
void |
setState(java.lang.String state)
The current state of the attachment.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VpcAttachment |
withState(AttachmentStatus state)
The current state of the attachment.
|
VpcAttachment |
withState(java.lang.String state)
The current state of the attachment.
|
VpcAttachment |
withVpcId(java.lang.String vpcId)
The ID of the VPC.
|
private java.lang.String vpcId
The ID of the VPC.
private java.lang.String state
The current state of the attachment.
public void setVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.lang.String getVpcId()
The ID of the VPC.
public VpcAttachment withVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setState(java.lang.String state)
The current state of the attachment.
state
- The current state of the attachment.AttachmentStatus
public java.lang.String getState()
The current state of the attachment.
AttachmentStatus
public VpcAttachment withState(java.lang.String state)
The current state of the attachment.
state
- The current state of the attachment.AttachmentStatus
public void setState(AttachmentStatus state)
The current state of the attachment.
state
- The current state of the attachment.AttachmentStatus
public VpcAttachment withState(AttachmentStatus state)
The current state of the attachment.
state
- The current state of the attachment.AttachmentStatus
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 VpcAttachment clone()
clone
in class java.lang.Object