Interface SchedulingMaxPriorityOverride.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SchedulingMaxPriorityOverride.Builder,,SchedulingMaxPriorityOverride> SdkBuilder<SchedulingMaxPriorityOverride.Builder,,SchedulingMaxPriorityOverride> SdkPojo
- Enclosing class:
SchedulingMaxPriorityOverride
@Mutable
@NotThreadSafe
public static interface SchedulingMaxPriorityOverride.Builder
extends SdkPojo, CopyableBuilder<SchedulingMaxPriorityOverride.Builder,SchedulingMaxPriorityOverride>
-
Method Summary
Modifier and TypeMethodDescriptionalwaysScheduleFirst(Consumer<SchedulingMaxPriorityOverrideAlwaysScheduleFirst.Builder> alwaysScheduleFirst) Jobs at the maximum priority (100) are always scheduled before other jobs, regardless of the weighted scheduling formula.alwaysScheduleFirst(SchedulingMaxPriorityOverrideAlwaysScheduleFirst alwaysScheduleFirst) Jobs at the maximum priority (100) are always scheduled before other jobs, regardless of the weighted scheduling formula.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
-
alwaysScheduleFirst
SchedulingMaxPriorityOverride.Builder alwaysScheduleFirst(SchedulingMaxPriorityOverrideAlwaysScheduleFirst alwaysScheduleFirst) Jobs at the maximum priority (100) are always scheduled before other jobs, regardless of the weighted scheduling formula. If multiple jobs have priority 100, ties are broken using the standard weighted formula.
- Parameters:
alwaysScheduleFirst- Jobs at the maximum priority (100) are always scheduled before other jobs, regardless of the weighted scheduling formula. If multiple jobs have priority 100, ties are broken using the standard weighted formula.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alwaysScheduleFirst
default SchedulingMaxPriorityOverride.Builder alwaysScheduleFirst(Consumer<SchedulingMaxPriorityOverrideAlwaysScheduleFirst.Builder> alwaysScheduleFirst) Jobs at the maximum priority (100) are always scheduled before other jobs, regardless of the weighted scheduling formula. If multiple jobs have priority 100, ties are broken using the standard weighted formula.
This is a convenience method that creates an instance of theSchedulingMaxPriorityOverrideAlwaysScheduleFirst.Builderavoiding the need to create one manually viaSchedulingMaxPriorityOverrideAlwaysScheduleFirst.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toalwaysScheduleFirst(SchedulingMaxPriorityOverrideAlwaysScheduleFirst).- Parameters:
alwaysScheduleFirst- a consumer that will call methods onSchedulingMaxPriorityOverrideAlwaysScheduleFirst.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-