Interface AllocateHostedConnectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AllocateHostedConnectionRequest.Builder,
,AllocateHostedConnectionRequest> DirectConnectRequest.Builder
,SdkBuilder<AllocateHostedConnectionRequest.Builder,
,AllocateHostedConnectionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AllocateHostedConnectionRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe bandwidth of the connection.connectionId
(String connectionId) The ID of the interconnect or LAG.connectionName
(String connectionName) The name of the hosted connection.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.ownerAccount
(String ownerAccount) The ID of the Amazon Web Services account ID of the customer for the connection.tags
(Collection<Tag> tags) The tags associated with the connection.tags
(Consumer<Tag.Builder>... tags) The tags associated with the connection.The tags associated with the connection.The dedicated VLAN provisioned to the hosted 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.directconnect.model.DirectConnectRequest.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
-
connectionId
The ID of the interconnect or LAG.
- Parameters:
connectionId
- The ID of the interconnect or LAG.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerAccount
The ID of the Amazon Web Services account ID of the customer for the connection.
- Parameters:
ownerAccount
- The ID of the Amazon Web Services account ID of the customer for the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bandwidth
The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps or 10Gbps hosted connection.
- Parameters:
bandwidth
- The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps or 10Gbps hosted connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionName
The name of the hosted connection.
- Parameters:
connectionName
- The name of the hosted connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vlan
The dedicated VLAN provisioned to the hosted connection.
- Parameters:
vlan
- The dedicated VLAN provisioned to the hosted connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the connection.
- Parameters:
tags
- The tags associated with the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the connection.
- Parameters:
tags
- The tags associated with the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the connection.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
AllocateHostedConnectionRequest.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
AllocateHostedConnectionRequest.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.
-