Interface ModifyVpcPeeringConnectionOptionsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyVpcPeeringConnectionOptionsRequest.Builder,
,ModifyVpcPeeringConnectionOptionsRequest> Ec2Request.Builder
,SdkBuilder<ModifyVpcPeeringConnectionOptionsRequest.Builder,
,ModifyVpcPeeringConnectionOptionsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ModifyVpcPeeringConnectionOptionsRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccepterPeeringConnectionOptions
(Consumer<PeeringConnectionOptionsRequest.Builder> accepterPeeringConnectionOptions) The VPC peering connection options for the accepter VPC.accepterPeeringConnectionOptions
(PeeringConnectionOptionsRequest accepterPeeringConnectionOptions) The VPC peering connection options for the accepter VPC.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.requesterPeeringConnectionOptions
(Consumer<PeeringConnectionOptionsRequest.Builder> requesterPeeringConnectionOptions) The VPC peering connection options for the requester VPC.requesterPeeringConnectionOptions
(PeeringConnectionOptionsRequest requesterPeeringConnectionOptions) The VPC peering connection options for the requester VPC.vpcPeeringConnectionId
(String vpcPeeringConnectionId) The ID of the VPC peering connection.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
accepterPeeringConnectionOptions
ModifyVpcPeeringConnectionOptionsRequest.Builder accepterPeeringConnectionOptions(PeeringConnectionOptionsRequest accepterPeeringConnectionOptions) The VPC peering connection options for the accepter VPC.
- Parameters:
accepterPeeringConnectionOptions
- The VPC peering connection options for the accepter VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accepterPeeringConnectionOptions
default ModifyVpcPeeringConnectionOptionsRequest.Builder accepterPeeringConnectionOptions(Consumer<PeeringConnectionOptionsRequest.Builder> accepterPeeringConnectionOptions) The VPC peering connection options for the accepter VPC.
This is a convenience method that creates an instance of thePeeringConnectionOptionsRequest.Builder
avoiding the need to create one manually viaPeeringConnectionOptionsRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccepterPeeringConnectionOptions(PeeringConnectionOptionsRequest)
.- Parameters:
accepterPeeringConnectionOptions
- a consumer that will call methods onPeeringConnectionOptionsRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterPeeringConnectionOptions
ModifyVpcPeeringConnectionOptionsRequest.Builder requesterPeeringConnectionOptions(PeeringConnectionOptionsRequest requesterPeeringConnectionOptions) The VPC peering connection options for the requester VPC.
- Parameters:
requesterPeeringConnectionOptions
- The VPC peering connection options for the requester VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterPeeringConnectionOptions
default ModifyVpcPeeringConnectionOptionsRequest.Builder requesterPeeringConnectionOptions(Consumer<PeeringConnectionOptionsRequest.Builder> requesterPeeringConnectionOptions) The VPC peering connection options for the requester VPC.
This is a convenience method that creates an instance of thePeeringConnectionOptionsRequest.Builder
avoiding the need to create one manually viaPeeringConnectionOptionsRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequesterPeeringConnectionOptions(PeeringConnectionOptionsRequest)
.- Parameters:
requesterPeeringConnectionOptions
- a consumer that will call methods onPeeringConnectionOptionsRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcPeeringConnectionId
ModifyVpcPeeringConnectionOptionsRequest.Builder vpcPeeringConnectionId(String vpcPeeringConnectionId) The ID of the VPC peering connection.
- Parameters:
vpcPeeringConnectionId
- The ID of the VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyVpcPeeringConnectionOptionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ModifyVpcPeeringConnectionOptionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-