public class CreateVpcPeeringConnectionRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<CreateVpcPeeringConnectionRequest>
CreateVpcPeeringConnection operation
.
Requests a VPC peering connection between two VPCs: a requester VPC that you own and a peer VPC with which to create the connection. The peer VPC can belong to another AWS account. The requester VPC and peer VPC cannot have overlapping CIDR blocks.
The owner of the peer VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.
A CreateVpcPeeringConnection
request between VPCs with
overlapping CIDR blocks results in the VPC peering connection having a
status of failed
.
NOOP
Constructor and Description |
---|
CreateVpcPeeringConnectionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<CreateVpcPeeringConnectionRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getPeerOwnerId()
The AWS account ID of the owner of the peer VPC.
|
String |
getPeerVpcId()
The ID of the VPC with which you are creating the VPC peering
connection.
|
String |
getVpcId()
The ID of the requester VPC.
|
int |
hashCode() |
void |
setPeerOwnerId(String peerOwnerId)
The AWS account ID of the owner of the peer VPC.
|
void |
setPeerVpcId(String peerVpcId)
The ID of the VPC with which you are creating the VPC peering
connection.
|
void |
setVpcId(String vpcId)
The ID of the requester VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVpcPeeringConnectionRequest |
withPeerOwnerId(String peerOwnerId)
The AWS account ID of the owner of the peer VPC.
|
CreateVpcPeeringConnectionRequest |
withPeerVpcId(String peerVpcId)
The ID of the VPC with which you are creating the VPC peering
connection.
|
CreateVpcPeeringConnectionRequest |
withVpcId(String vpcId)
The ID of the requester VPC.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the requester VPC.public CreateVpcPeeringConnectionRequest withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the requester VPC.public String getPeerVpcId()
public void setPeerVpcId(String peerVpcId)
peerVpcId
- The ID of the VPC with which you are creating the VPC peering
connection.public CreateVpcPeeringConnectionRequest withPeerVpcId(String peerVpcId)
Returns a reference to this object so that method calls can be chained together.
peerVpcId
- The ID of the VPC with which you are creating the VPC peering
connection.public String getPeerOwnerId()
Default: Your AWS account ID
Default: Your AWS account ID
public void setPeerOwnerId(String peerOwnerId)
Default: Your AWS account ID
peerOwnerId
- The AWS account ID of the owner of the peer VPC. Default: Your AWS account ID
public CreateVpcPeeringConnectionRequest withPeerOwnerId(String peerOwnerId)
Default: Your AWS account ID
Returns a reference to this object so that method calls can be chained together.
peerOwnerId
- The AWS account ID of the owner of the peer VPC. Default: Your AWS account ID
public Request<CreateVpcPeeringConnectionRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateVpcPeeringConnectionRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.