public static final class VolumeMounts.Builder extends Object
VolumeMounts.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
VolumeMounts |
build()
Builds a new
VolumeMounts. |
VolumeMounts.Builder |
containerDir(String containerDir)
Initializes the value for the
containerDir attribute. |
VolumeMounts.Builder |
deviceType(String deviceType)
Initializes the value for the
deviceType attribute. |
VolumeMounts.Builder |
from(VolumeMounts instance)
Fill a builder with attribute values from the provided
VolumeMounts instance. |
VolumeMounts.Builder |
mode(String mode)
Initializes the value for the
mode attribute. |
public final VolumeMounts.Builder from(VolumeMounts instance)
VolumeMounts instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final VolumeMounts.Builder containerDir(String containerDir)
containerDir attribute.containerDir - The value for containerDirthis builder for use in a chained invocationpublic final VolumeMounts.Builder deviceType(String deviceType)
deviceType attribute.deviceType - The value for deviceType (can be null)this builder for use in a chained invocationpublic final VolumeMounts.Builder mode(String mode)
mode attribute.mode - The value for mode (can be null)this builder for use in a chained invocationpublic VolumeMounts build()
VolumeMounts.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.