Interface SharingStrategy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SharingStrategy.Builder,,SharingStrategy> SdkBuilder<SharingStrategy.Builder,,SharingStrategy> SdkPojo
- Enclosing class:
SharingStrategy
@Mutable
@NotThreadSafe
public static interface SharingStrategy.Builder
extends SdkPojo, CopyableBuilder<SharingStrategy.Builder,SharingStrategy>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SharingStrategy.BuildernvidiaMps(Consumer<NvidiaMpsAllocation.Builder> nvidiaMps) Shares a GPU between containers by using NVIDIA Multi-Process Service (MPS).nvidiaMps(NvidiaMpsAllocation nvidiaMps) Shares a GPU between containers by using NVIDIA Multi-Process Service (MPS).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, sdkFieldNameToField, sdkFields
-
Method Details
-
nvidiaMps
Shares a GPU between containers by using NVIDIA Multi-Process Service (MPS). You specify the GPU memory to allocate to the container and, optionally, the maximum percentage of the GPU's compute capacity that the container can use.
- Parameters:
nvidiaMps- Shares a GPU between containers by using NVIDIA Multi-Process Service (MPS). You specify the GPU memory to allocate to the container and, optionally, the maximum percentage of the GPU's compute capacity that the container can use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nvidiaMps
Shares a GPU between containers by using NVIDIA Multi-Process Service (MPS). You specify the GPU memory to allocate to the container and, optionally, the maximum percentage of the GPU's compute capacity that the container can use.
This is a convenience method that creates an instance of theNvidiaMpsAllocation.Builderavoiding the need to create one manually viaNvidiaMpsAllocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonvidiaMps(NvidiaMpsAllocation).- Parameters:
nvidiaMps- a consumer that will call methods onNvidiaMpsAllocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-