public class ModifyVpcPeeringConnectionOptionsRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<ModifyVpcPeeringConnectionOptionsRequest>
ModifyVpcPeeringConnectionOptions operation
.
Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:
Enable/disable communication over the peering connection between an EC2-Classic instance that's linked to your VPC (using ClassicLink) and instances in the peer VPC.
Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that's linked to the peer VPC.
If the peered VPCs are in different accounts, each owner must initiate a separate request to enable or disable communication in either direction, depending on whether their VPC was the requester or accepter for the VPC peering connection. If the peered VPCs are in the same account, you can modify the requester and accepter options in the same request. To confirm which VPC is the accepter and requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.
Constructor and Description |
---|
ModifyVpcPeeringConnectionOptionsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
PeeringConnectionOptionsRequest |
getAccepterPeeringConnectionOptions()
The VPC peering connection options for the accepter VPC.
|
Request<ModifyVpcPeeringConnectionOptionsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
PeeringConnectionOptionsRequest |
getRequesterPeeringConnectionOptions()
The VPC peering connection options for the requester VPC.
|
java.lang.String |
getVpcPeeringConnectionId()
The ID of the VPC peering connection.
|
int |
hashCode() |
void |
setAccepterPeeringConnectionOptions(PeeringConnectionOptionsRequest accepterPeeringConnectionOptions)
The VPC peering connection options for the accepter VPC.
|
void |
setRequesterPeeringConnectionOptions(PeeringConnectionOptionsRequest requesterPeeringConnectionOptions)
The VPC peering connection options for the requester VPC.
|
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.
|
ModifyVpcPeeringConnectionOptionsRequest |
withAccepterPeeringConnectionOptions(PeeringConnectionOptionsRequest accepterPeeringConnectionOptions)
The VPC peering connection options for the accepter VPC.
|
ModifyVpcPeeringConnectionOptionsRequest |
withRequesterPeeringConnectionOptions(PeeringConnectionOptionsRequest requesterPeeringConnectionOptions)
The VPC peering connection options for the requester VPC.
|
ModifyVpcPeeringConnectionOptionsRequest |
withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ModifyVpcPeeringConnectionOptionsRequest()
public java.lang.String getVpcPeeringConnectionId()
public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
vpcPeeringConnectionId
- The ID of the VPC peering connection.public ModifyVpcPeeringConnectionOptionsRequest withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
Returns a reference to this object so that method calls can be chained together.
vpcPeeringConnectionId
- The ID of the VPC peering connection.public PeeringConnectionOptionsRequest getRequesterPeeringConnectionOptions()
public void setRequesterPeeringConnectionOptions(PeeringConnectionOptionsRequest requesterPeeringConnectionOptions)
requesterPeeringConnectionOptions
- The VPC peering connection options for the requester VPC.public ModifyVpcPeeringConnectionOptionsRequest withRequesterPeeringConnectionOptions(PeeringConnectionOptionsRequest requesterPeeringConnectionOptions)
Returns a reference to this object so that method calls can be chained together.
requesterPeeringConnectionOptions
- The VPC peering connection options for the requester VPC.public PeeringConnectionOptionsRequest getAccepterPeeringConnectionOptions()
public void setAccepterPeeringConnectionOptions(PeeringConnectionOptionsRequest accepterPeeringConnectionOptions)
accepterPeeringConnectionOptions
- The VPC peering connection options for the accepter VPC.public ModifyVpcPeeringConnectionOptionsRequest withAccepterPeeringConnectionOptions(PeeringConnectionOptionsRequest accepterPeeringConnectionOptions)
Returns a reference to this object so that method calls can be chained together.
accepterPeeringConnectionOptions
- The VPC peering connection options for the accepter VPC.public Request<ModifyVpcPeeringConnectionOptionsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyVpcPeeringConnectionOptionsRequest>
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.