public static interface Volume.Builder extends SdkPojo, CopyableBuilder<Volume.Builder,Volume>
| Modifier and Type | Method and Description |
|---|---|
default Volume.Builder |
hostPath(Consumer<HostPath.Builder> hostPath)
Represents a pre-existing file or directory on the host machine that the volume maps to.
|
Volume.Builder |
hostPath(HostPath hostPath)
Represents a pre-existing file or directory on the host machine that the volume maps to.
|
Volume.Builder |
name(String name)
Volume name.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildVolume.Builder name(String name)
Volume name.
name - Volume name.Volume.Builder hostPath(HostPath hostPath)
Represents a pre-existing file or directory on the host machine that the volume maps to.
hostPath - Represents a pre-existing file or directory on the host machine that the volume maps to.default Volume.Builder hostPath(Consumer<HostPath.Builder> hostPath)
Represents a pre-existing file or directory on the host machine that the volume maps to.
This is a convenience method that creates an instance of theHostPath.Builder avoiding the need to
create one manually via HostPath.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to hostPath(HostPath).
hostPath - a consumer that will call methods on HostPath.BuilderhostPath(HostPath)Copyright © 2022. All rights reserved.