Interface InstancePreference.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstancePreference.Builder,,InstancePreference> SdkBuilder<InstancePreference.Builder,,InstancePreference> SdkPojo
- Enclosing class:
InstancePreference
-
Method Summary
Modifier and TypeMethodDescriptioninstanceCount(Integer instanceCount) The number of instances to launch if this instance type is selected.instanceType(String instanceType) The ML compute instance type.instanceType(TrainingInstanceType instanceType) The ML compute instance type.trainingPlanArns(String... trainingPlanArns) The Amazon Resource Name (ARN) of a training plan to use if this instance type is selected.trainingPlanArns(Collection<String> trainingPlanArns) The Amazon Resource Name (ARN) of a training plan to use if this instance type is selected.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
-
instanceType
The ML compute instance type. An instance type can appear only once in an
InstancePreferenceslist.- Parameters:
instanceType- The ML compute instance type. An instance type can appear only once in anInstancePreferenceslist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The ML compute instance type. An instance type can appear only once in an
InstancePreferenceslist.- Parameters:
instanceType- The ML compute instance type. An instance type can appear only once in anInstancePreferenceslist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceCount
The number of instances to launch if this instance type is selected. Specify the instance count for the training job in one of the following two ways:
-
Per preference – Set
InstanceCounton every preference in theInstancePreferenceslist and don't setResourceConfig$InstanceCount. Use this when each instance type needs a different number of instances to deliver equivalent compute. -
One count for the job – Set
ResourceConfig$InstanceCountand omit it from every preference. SageMaker applies this to all instance types in the list.
For example, in a list of five preferences, either all five specify
InstanceCountor none of them do. SageMaker rejects requests that setInstanceCounton only some preferences, that set it both per preference and inResourceConfig, or that omit it in both places.- Parameters:
instanceCount- The number of instances to launch if this instance type is selected. Specify the instance count for the training job in one of the following two ways:-
Per preference – Set
InstanceCounton every preference in theInstancePreferenceslist and don't setResourceConfig$InstanceCount. Use this when each instance type needs a different number of instances to deliver equivalent compute. -
One count for the job – Set
ResourceConfig$InstanceCountand omit it from every preference. SageMaker applies this to all instance types in the list.
For example, in a list of five preferences, either all five specify
InstanceCountor none of them do. SageMaker rejects requests that setInstanceCounton only some preferences, that set it both per preference and inResourceConfig, or that omit it in both places.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
trainingPlanArns
The Amazon Resource Name (ARN) of a training plan to use if this instance type is selected. The plan's instance type must match
InstanceType. A preference with a training plan uses that plan's reserved capacity; a preference without one uses on-demand capacity. Per-preferenceTrainingPlanArnsis mutually exclusive with the job-levelTrainingPlanArninResourceConfig.- Parameters:
trainingPlanArns- The Amazon Resource Name (ARN) of a training plan to use if this instance type is selected. The plan's instance type must matchInstanceType. A preference with a training plan uses that plan's reserved capacity; a preference without one uses on-demand capacity. Per-preferenceTrainingPlanArnsis mutually exclusive with the job-levelTrainingPlanArninResourceConfig.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trainingPlanArns
The Amazon Resource Name (ARN) of a training plan to use if this instance type is selected. The plan's instance type must match
InstanceType. A preference with a training plan uses that plan's reserved capacity; a preference without one uses on-demand capacity. Per-preferenceTrainingPlanArnsis mutually exclusive with the job-levelTrainingPlanArninResourceConfig.- Parameters:
trainingPlanArns- The Amazon Resource Name (ARN) of a training plan to use if this instance type is selected. The plan's instance type must matchInstanceType. A preference with a training plan uses that plan's reserved capacity; a preference without one uses on-demand capacity. Per-preferenceTrainingPlanArnsis mutually exclusive with the job-levelTrainingPlanArninResourceConfig.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-