com.amazonaws.services.ec2.model
Class RejectVpcPeeringConnectionRequest

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

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

Container for the parameters to the RejectVpcPeeringConnection operation.

Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests.

See Also:
AmazonEC2.rejectVpcPeeringConnection(RejectVpcPeeringConnectionRequest), Serialized Form

Constructor Summary
RejectVpcPeeringConnectionRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<RejectVpcPeeringConnectionRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getVpcPeeringConnectionId()
          The ID of the VPC peering connection.
 int hashCode()
           
 void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
          The ID of the VPC peering connection.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RejectVpcPeeringConnectionRequest withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
          The ID of the VPC peering connection.
 
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

RejectVpcPeeringConnectionRequest

public RejectVpcPeeringConnectionRequest()
Method Detail

getVpcPeeringConnectionId

public java.lang.String getVpcPeeringConnectionId()
The ID of the VPC peering connection.

Returns:
The ID of the VPC peering connection.

setVpcPeeringConnectionId

public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.

Parameters:
vpcPeeringConnectionId - The ID of the VPC peering connection.

withVpcPeeringConnectionId

public RejectVpcPeeringConnectionRequest withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.

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

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

getDryRunRequest

public Request<RejectVpcPeeringConnectionRequest> 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<RejectVpcPeeringConnectionRequest>

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.