Interface ServiceVolumeConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceVolumeConfiguration.Builder,ServiceVolumeConfiguration>,SdkBuilder<ServiceVolumeConfiguration.Builder,ServiceVolumeConfiguration>,SdkPojo
- Enclosing class:
- ServiceVolumeConfiguration
public static interface ServiceVolumeConfiguration.Builder extends SdkPojo, CopyableBuilder<ServiceVolumeConfiguration.Builder,ServiceVolumeConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ServiceVolumeConfiguration.BuildermanagedEBSVolume(Consumer<ServiceManagedEBSVolumeConfiguration.Builder> managedEBSVolume)The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.ServiceVolumeConfiguration.BuildermanagedEBSVolume(ServiceManagedEBSVolumeConfiguration managedEBSVolume)The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.ServiceVolumeConfiguration.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
-
name
ServiceVolumeConfiguration.Builder name(String 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
ServiceVolumeConfiguration.Builder managedEBSVolume(ServiceManagedEBSVolumeConfiguration 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 in the service. 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 in the service. 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 ServiceVolumeConfiguration.Builder managedEBSVolume(Consumer<ServiceManagedEBSVolumeConfiguration.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 in the service. 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 theServiceManagedEBSVolumeConfiguration.Builderavoiding the need to create one manually viaServiceManagedEBSVolumeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomanagedEBSVolume(ServiceManagedEBSVolumeConfiguration).- Parameters:
managedEBSVolume- a consumer that will call methods onServiceManagedEBSVolumeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
managedEBSVolume(ServiceManagedEBSVolumeConfiguration)
-
-