Interface Volume.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Volume.Builder,Volume>,SdkBuilder<Volume.Builder,Volume>,SdkPojo
- Enclosing class:
- Volume
public static interface Volume.Builder extends SdkPojo, CopyableBuilder<Volume.Builder,Volume>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Volume.BuilderefsVolumeConfiguration(Consumer<EFSVolumeConfiguration.Builder> efsVolumeConfiguration)This parameter is specified when you're using an Amazon Elastic File System file system for job storage.Volume.BuilderefsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)This parameter is specified when you're using an Amazon Elastic File System file system for job storage.default Volume.Builderhost(Consumer<Host.Builder> host)The contents of thehostparameter determine whether your data volume persists on the host container instance and where it's stored.Volume.Builderhost(Host host)The contents of thehostparameter determine whether your data volume persists on the host container instance and where it's stored.Volume.Buildername(String name)The name of the volume.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
host
Volume.Builder host(Host host)
The contents of the
hostparameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
- Parameters:
host- The contents of thehostparameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
host
default Volume.Builder host(Consumer<Host.Builder> host)
The contents of the
hostparameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running. This is a convenience method that creates an instance of theThis parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
Host.Builderavoiding the need to create one manually viaHost.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohost(Host).- Parameters:
host- a consumer that will call methods onHost.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
host(Host)
-
name
Volume.Builder name(String name)
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the
sourceVolumeparameter of container definitionmountPoints.- Parameters:
name- The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in thesourceVolumeparameter of container definitionmountPoints.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
efsVolumeConfiguration
Volume.Builder efsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a
platformVersionof at least1.4.0.- Parameters:
efsVolumeConfiguration- This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify aplatformVersionof at least1.4.0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
efsVolumeConfiguration
default Volume.Builder efsVolumeConfiguration(Consumer<EFSVolumeConfiguration.Builder> efsVolumeConfiguration)
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a
This is a convenience method that creates an instance of theplatformVersionof at least1.4.0.EFSVolumeConfiguration.Builderavoiding the need to create one manually viaEFSVolumeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toefsVolumeConfiguration(EFSVolumeConfiguration).- Parameters:
efsVolumeConfiguration- a consumer that will call methods onEFSVolumeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
efsVolumeConfiguration(EFSVolumeConfiguration)
-
-