Interface FairshareCapacityUtilization.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FairshareCapacityUtilization.Builder,,FairshareCapacityUtilization> SdkBuilder<FairshareCapacityUtilization.Builder,,FairshareCapacityUtilization> SdkPojo
- Enclosing class:
FairshareCapacityUtilization
@Mutable
@NotThreadSafe
public static interface FairshareCapacityUtilization.Builder
extends SdkPojo, CopyableBuilder<FairshareCapacityUtilization.Builder,FairshareCapacityUtilization>
-
Method Summary
Modifier and TypeMethodDescriptioncapacityUsage(Collection<FairshareCapacityUsage> capacityUsage) The capacity usage information for this share, including the unit of measure and quantity being used.capacityUsage(Consumer<FairshareCapacityUsage.Builder>... capacityUsage) The capacity usage information for this share, including the unit of measure and quantity being used.capacityUsage(FairshareCapacityUsage... capacityUsage) The capacity usage information for this share, including the unit of measure and quantity being used.shareIdentifier(String shareIdentifier) The share identifier for the fairshare scheduling job queue.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
-
capacityUsage
FairshareCapacityUtilization.Builder capacityUsage(Collection<FairshareCapacityUsage> capacityUsage) The capacity usage information for this share, including the unit of measure and quantity being used. This is
VCPUfor Amazon EC2 andcpufor Amazon EKS.- Parameters:
capacityUsage- The capacity usage information for this share, including the unit of measure and quantity being used. This isVCPUfor Amazon EC2 andcpufor Amazon EKS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityUsage
FairshareCapacityUtilization.Builder capacityUsage(Consumer<FairshareCapacityUsage.Builder>... capacityUsage) The capacity usage information for this share, including the unit of measure and quantity being used. This is
This is a convenience method that creates an instance of theVCPUfor Amazon EC2 andcpufor Amazon EKS.FairshareCapacityUsage.Builderavoiding the need to create one manually viaFairshareCapacityUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapacityUsage(List<FairshareCapacityUsage>).- Parameters:
capacityUsage- a consumer that will call methods onFairshareCapacityUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also: