Interface AllocateTransitVirtualInterfaceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<AllocateTransitVirtualInterfaceResponse.Builder,
,AllocateTransitVirtualInterfaceResponse> DirectConnectResponse.Builder
,SdkBuilder<AllocateTransitVirtualInterfaceResponse.Builder,
,AllocateTransitVirtualInterfaceResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
AllocateTransitVirtualInterfaceResponse
public static interface AllocateTransitVirtualInterfaceResponse.Builder
extends DirectConnectResponse.Builder, SdkPojo, CopyableBuilder<AllocateTransitVirtualInterfaceResponse.Builder,AllocateTransitVirtualInterfaceResponse>
-
Method Summary
Modifier and TypeMethodDescriptionvirtualInterface
(Consumer<VirtualInterface.Builder> virtualInterface) Sets the value of the VirtualInterface property for this object.virtualInterface
(VirtualInterface virtualInterface) Sets the value of the VirtualInterface property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.directconnect.model.DirectConnectResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
virtualInterface
Sets the value of the VirtualInterface property for this object.- Parameters:
virtualInterface
- The new value for the VirtualInterface property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualInterface
default AllocateTransitVirtualInterfaceResponse.Builder virtualInterface(Consumer<VirtualInterface.Builder> virtualInterface) Sets the value of the VirtualInterface property for this object. This is a convenience method that creates an instance of theVirtualInterface.Builder
avoiding the need to create one manually viaVirtualInterface.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovirtualInterface(VirtualInterface)
.- Parameters:
virtualInterface
- a consumer that will call methods onVirtualInterface.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-