com.amazonaws.services.ec2.model
Class CreateVpcPeeringConnectionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateVpcPeeringConnectionRequest
All Implemented Interfaces:
DryRunSupportedRequest<CreateVpcPeeringConnectionRequest>, java.io.Serializable

public class CreateVpcPeeringConnectionRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<CreateVpcPeeringConnectionRequest>

Container for the parameters to the 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 .

See Also:
AmazonEC2.createVpcPeeringConnection(CreateVpcPeeringConnectionRequest), Serialized Form

Constructor Summary
CreateVpcPeeringConnectionRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateVpcPeeringConnectionRequest

public CreateVpcPeeringConnectionRequest()
Method Detail

getVpcId

public java.lang.String getVpcId()
The ID of the requester VPC.

Returns:
The ID of the requester VPC.

setVpcId

public void setVpcId(java.lang.String vpcId)
The ID of the requester VPC.

Parameters:
vpcId - The ID of the requester VPC.

withVpcId

public CreateVpcPeeringConnectionRequest withVpcId(java.lang.String vpcId)
The ID of the requester VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcId - The ID of the requester VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getPeerVpcId

public java.lang.String getPeerVpcId()
The ID of the VPC with which you are creating the VPC peering connection.

Returns:
The ID of the VPC with which you are creating the VPC peering connection.

setPeerVpcId

public void setPeerVpcId(java.lang.String peerVpcId)
The ID of the VPC with which you are creating the VPC peering connection.

Parameters:
peerVpcId - The ID of the VPC with which you are creating the VPC peering connection.

withPeerVpcId

public CreateVpcPeeringConnectionRequest withPeerVpcId(java.lang.String peerVpcId)
The ID of the VPC with which you are creating the VPC peering connection.

Returns a reference to this object so that method calls can be chained together.

Parameters:
peerVpcId - The ID of the VPC with which you are creating the VPC peering connection.
Returns:
A reference to this updated object so that method calls can be chained together.

getPeerOwnerId

public java.lang.String getPeerOwnerId()
The AWS account ID of the owner of the peer VPC.

Default: Your AWS account ID

Returns:
The AWS account ID of the owner of the peer VPC.

Default: Your AWS account ID


setPeerOwnerId

public void setPeerOwnerId(java.lang.String peerOwnerId)
The AWS account ID of the owner of the peer VPC.

Default: Your AWS account ID

Parameters:
peerOwnerId - The AWS account ID of the owner of the peer VPC.

Default: Your AWS account ID


withPeerOwnerId

public CreateVpcPeeringConnectionRequest withPeerOwnerId(java.lang.String peerOwnerId)
The AWS account ID of the owner of the peer VPC.

Default: Your AWS account ID

Returns a reference to this object so that method calls can be chained together.

Parameters:
peerOwnerId - The AWS account ID of the owner of the peer VPC.

Default: Your AWS account ID

Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<CreateVpcPeeringConnectionRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<CreateVpcPeeringConnectionRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.