Interface SchedulerConfig.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SchedulerConfig.Builder,SchedulerConfig>
,SdkBuilder<SchedulerConfig.Builder,SchedulerConfig>
,SdkPojo
- Enclosing class:
- SchedulerConfig
public static interface SchedulerConfig.Builder extends SdkPojo, CopyableBuilder<SchedulerConfig.Builder,SchedulerConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SchedulerConfig.Builder
fairShare(String fairShare)
When enabled, entities borrow idle compute based on their assignedFairShareWeight
.SchedulerConfig.Builder
fairShare(FairShare fairShare)
When enabled, entities borrow idle compute based on their assignedFairShareWeight
.SchedulerConfig.Builder
priorityClasses(Collection<PriorityClass> priorityClasses)
List of the priority classes,PriorityClass
, of the cluster policy.SchedulerConfig.Builder
priorityClasses(Consumer<PriorityClass.Builder>... priorityClasses)
List of the priority classes,PriorityClass
, of the cluster policy.SchedulerConfig.Builder
priorityClasses(PriorityClass... priorityClasses)
List of the priority classes,PriorityClass
, of the cluster policy.-
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
-
priorityClasses
SchedulerConfig.Builder priorityClasses(Collection<PriorityClass> priorityClasses)
List of the priority classes,
PriorityClass
, of the cluster policy. When specified, these class configurations define how tasks are queued.- Parameters:
priorityClasses
- List of the priority classes,PriorityClass
, of the cluster policy. When specified, these class configurations define how tasks are queued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priorityClasses
SchedulerConfig.Builder priorityClasses(PriorityClass... priorityClasses)
List of the priority classes,
PriorityClass
, of the cluster policy. When specified, these class configurations define how tasks are queued.- Parameters:
priorityClasses
- List of the priority classes,PriorityClass
, of the cluster policy. When specified, these class configurations define how tasks are queued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priorityClasses
SchedulerConfig.Builder priorityClasses(Consumer<PriorityClass.Builder>... priorityClasses)
List of the priority classes,
This is a convenience method that creates an instance of thePriorityClass
, of the cluster policy. When specified, these class configurations define how tasks are queued.PriorityClass.Builder
avoiding the need to create one manually viaPriorityClass.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#priorityClasses(List
.) - Parameters:
priorityClasses
- a consumer that will call methods onPriorityClass.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#priorityClasses(java.util.Collection
)
-
fairShare
SchedulerConfig.Builder fairShare(String fairShare)
When enabled, entities borrow idle compute based on their assigned
FairShareWeight
.When disabled, entities borrow idle compute based on a first-come first-serve basis.
Default is
Enabled
.- Parameters:
fairShare
- When enabled, entities borrow idle compute based on their assignedFairShareWeight
.When disabled, entities borrow idle compute based on a first-come first-serve basis.
Default is
Enabled
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FairShare
,FairShare
-
fairShare
SchedulerConfig.Builder fairShare(FairShare fairShare)
When enabled, entities borrow idle compute based on their assigned
FairShareWeight
.When disabled, entities borrow idle compute based on a first-come first-serve basis.
Default is
Enabled
.- Parameters:
fairShare
- When enabled, entities borrow idle compute based on their assignedFairShareWeight
.When disabled, entities borrow idle compute based on a first-come first-serve basis.
Default is
Enabled
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FairShare
,FairShare
-
-