Class CreateVpcPeeringConnectionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.CreateVpcPeeringConnectionRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateVpcPeeringConnectionRequest>
,Serializable
,Cloneable
public class CreateVpcPeeringConnectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateVpcPeeringConnectionRequest>
Contains the parameters for CreateVpcPeeringConnection.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateVpcPeeringConnectionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVpcPeeringConnectionRequest
clone()
Creates a shallow clone of this request.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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setVpcId
public void setVpcId(String vpcId)
The ID of the requester VPC.
- Parameters:
vpcId
- The ID of the requester VPC.
-
getVpcId
public String getVpcId()
The ID of the requester VPC.
- Returns:
- The ID of the requester VPC.
-
withVpcId
public CreateVpcPeeringConnectionRequest withVpcId(String vpcId)
The ID of the requester VPC.
- Parameters:
vpcId
- The ID of the requester VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPeerVpcId
public void setPeerVpcId(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.
-
getPeerVpcId
public 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.
-
withPeerVpcId
public CreateVpcPeeringConnectionRequest withPeerVpcId(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPeerOwnerId
public void setPeerOwnerId(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
-
getPeerOwnerId
public 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
-
withPeerOwnerId
public CreateVpcPeeringConnectionRequest withPeerOwnerId(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
- Returns:
- Returns a reference to this 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 interfaceDryRunSupportedRequest<CreateVpcPeeringConnectionRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateVpcPeeringConnectionRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-