public static interface LinuxParameters.Builder extends SdkPojo, CopyableBuilder<LinuxParameters.Builder,LinuxParameters>
Modifier and Type | Method and Description |
---|---|
LinuxParameters.Builder |
devices(Collection<Device> devices)
Any host devices to expose to the container.
|
LinuxParameters.Builder |
devices(Consumer<Device.Builder>... devices)
Any host devices to expose to the container.
|
LinuxParameters.Builder |
devices(Device... devices)
Any host devices to expose to the container.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
LinuxParameters.Builder devices(Collection<Device> devices)
Any host devices to expose to the container. This parameter maps to Devices
in the Create a container section of the Docker Remote API and the --device
option
to docker run.
devices
- Any host devices to expose to the container. This parameter maps to Devices
in the Create a container section of
the Docker Remote API and the
--device
option to docker
run.LinuxParameters.Builder devices(Device... devices)
Any host devices to expose to the container. This parameter maps to Devices
in the Create a container section of the Docker Remote API and the --device
option
to docker run.
devices
- Any host devices to expose to the container. This parameter maps to Devices
in the Create a container section of
the Docker Remote API and the
--device
option to docker
run.LinuxParameters.Builder devices(Consumer<Device.Builder>... devices)
Any host devices to expose to the container. This parameter maps to Devices
in the Create a container section of the Docker Remote API and the --device
option
to docker run.
List.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #devices(List)
.devices
- a consumer that will call methods on List.Builder
#devices(List)
Copyright © 2019. All rights reserved.