Class CfnProcessingJob.StoppingConditionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnProcessingJob.StoppingConditionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProcessingJob.StoppingConditionProperty>
- Enclosing interface:
CfnProcessingJob.StoppingConditionProperty
@Stability(Stable)
public static final class CfnProcessingJob.StoppingConditionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProcessingJob.StoppingConditionProperty>
A builder for
CfnProcessingJob.StoppingConditionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxRuntimeInSeconds(Number maxRuntimeInSeconds) Sets the value ofCfnProcessingJob.StoppingConditionProperty.getMaxRuntimeInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxRuntimeInSeconds
@Stability(Stable) public CfnProcessingJob.StoppingConditionProperty.Builder maxRuntimeInSeconds(Number maxRuntimeInSeconds) Sets the value ofCfnProcessingJob.StoppingConditionProperty.getMaxRuntimeInSeconds()- Parameters:
maxRuntimeInSeconds- The maximum length of time, in seconds, that a training or compilation job can run before it is stopped. This parameter is required. For compilation jobs, if the job does not complete during this time, aTimeOuterror is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.For all other jobs, if the job does not complete during this time, SageMaker ends the job. When
RetryStrategyis specified in the job request,MaxRuntimeInSecondsspecifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.The maximum time that a
TrainingJobcan run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProcessingJob.StoppingConditionProperty>- Returns:
- a new instance of
CfnProcessingJob.StoppingConditionProperty - Throws:
NullPointerException- if any required attribute was not provided
-