Interface TaskVolumeConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TaskVolumeConfiguration.Builder,,TaskVolumeConfiguration> SdkBuilder<TaskVolumeConfiguration.Builder,,TaskVolumeConfiguration> SdkPojo
- Enclosing class:
TaskVolumeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault TaskVolumeConfiguration.BuildermanagedEBSVolume(Consumer<TaskManagedEBSVolumeConfiguration.Builder> managedEBSVolume) The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.managedEBSVolume(TaskManagedEBSVolumeConfiguration managedEBSVolume) The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.The name of the volume.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the volume. This value must match the volume name from the
Volumeobject in the task definition.- Parameters:
name- The name of the volume. This value must match the volume name from theVolumeobject in the task definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedEBSVolume
TaskVolumeConfiguration.Builder managedEBSVolume(TaskManagedEBSVolumeConfiguration managedEBSVolume) The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
- Parameters:
managedEBSVolume- The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedEBSVolume
default TaskVolumeConfiguration.Builder managedEBSVolume(Consumer<TaskManagedEBSVolumeConfiguration.Builder> managedEBSVolume) The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
This is a convenience method that creates an instance of theTaskManagedEBSVolumeConfiguration.Builderavoiding the need to create one manually viaTaskManagedEBSVolumeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomanagedEBSVolume(TaskManagedEBSVolumeConfiguration).- Parameters:
managedEBSVolume- a consumer that will call methods onTaskManagedEBSVolumeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-