public class VpcAttachment extends Object implements Serializable
Describes an attachment between a virtual private gateway and a VPC.
Constructor and Description |
---|
VpcAttachment() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getState()
The current state of the attachment.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setState(AttachmentStatus state)
The current state of the attachment.
|
void |
setState(String state)
The current state of the attachment.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
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(String state)
The current state of the attachment.
|
VpcAttachment |
withVpcId(String vpcId)
The ID of the VPC.
|
public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC.public VpcAttachment withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC.public String getState()
Constraints:
Allowed Values: attaching, attached, detaching, detached
AttachmentStatus
public void setState(String state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
- The current state of the attachment.AttachmentStatus
public VpcAttachment withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
- The current state of the attachment.AttachmentStatus
public void setState(AttachmentStatus state)
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
- The current state of the attachment.AttachmentStatus
public VpcAttachment withState(AttachmentStatus state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
state
- The current state of the attachment.AttachmentStatus
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.