public class CreateVpcPeeringConnectionRequest extends AmazonWebServiceRequest implements java.io.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
.
Constructor and Description |
---|
CreateVpcPeeringConnectionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Request<CreateVpcPeeringConnectionRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getPeerOwnerId()
The AWS account ID of the owner of the peer VPC.
|
java.lang.String |
getPeerVpcId()
The ID of the VPC with which you are creating the VPC peering
connection.
|
java.lang.String |
getVpcId()
The ID of the requester VPC.
|
int |
hashCode() |
void |
setPeerOwnerId(java.lang.String peerOwnerId)
The AWS account ID of the owner of the peer VPC.
|
void |
setPeerVpcId(java.lang.String peerVpcId)
The ID of the VPC with which you are creating the VPC peering
connection.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the requester VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVpcPeeringConnectionRequest |
withPeerOwnerId(java.lang.String peerOwnerId)
The AWS account ID of the owner of the peer VPC.
|
CreateVpcPeeringConnectionRequest |
withPeerVpcId(java.lang.String peerVpcId)
The ID of the VPC with which you are creating the VPC peering
connection.
|
CreateVpcPeeringConnectionRequest |
withVpcId(java.lang.String vpcId)
The ID of the requester VPC.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- The ID of the requester VPC.public CreateVpcPeeringConnectionRequest withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the requester VPC.public java.lang.String getPeerVpcId()
public void setPeerVpcId(java.lang.String peerVpcId)
peerVpcId
- The ID of the VPC with which you are creating the VPC peering
connection.public CreateVpcPeeringConnectionRequest withPeerVpcId(java.lang.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 java.lang.String getPeerOwnerId()
Default: Your AWS account ID
Default: Your AWS account ID
public void setPeerOwnerId(java.lang.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(java.lang.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 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.