Interface CreateJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateJobRequest.Builder,,CreateJobRequest> SageMakerRequest.Builder,SdkBuilder<CreateJobRequest.Builder,,CreateJobRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateJobRequest
-
Method Summary
Modifier and TypeMethodDescriptionjobCategory(String jobCategory) The category of the job.jobCategory(JobCategory jobCategory) The category of the job.jobConfigDocument(String jobConfigDocument) The JSON configuration document for the job.jobConfigSchemaVersion(String jobConfigSchemaVersion) The version of the configuration schema to use for the job configuration document.The name of the job.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker assumes to perform the job.tags(Collection<Tag> tags) An array of key-value pairs to apply to the job as tags.tags(Consumer<Tag.Builder>... tags) An array of key-value pairs to apply to the job as tags.An array of key-value pairs to apply to the job as tags.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
jobName
The name of the job. The name must be unique within your account and Amazon Web Services Region.
- Parameters:
jobName- The name of the job. The name must be unique within your account and Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker assumes to perform the job. The role must have the necessary permissions to access the resources required by the job configuration.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker assumes to perform the job. The role must have the necessary permissions to access the resources required by the job configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobCategory
The category of the job. The category determines the type of workload that the job runs.
- Parameters:
jobCategory- The category of the job. The category determines the type of workload that the job runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobCategory
The category of the job. The category determines the type of workload that the job runs.
- Parameters:
jobCategory- The category of the job. The category determines the type of workload that the job runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobConfigSchemaVersion
The version of the configuration schema to use for the job configuration document. Use
ListJobSchemaVersionsto get available schema versions for a job category.- Parameters:
jobConfigSchemaVersion- The version of the configuration schema to use for the job configuration document. UseListJobSchemaVersionsto get available schema versions for a job category.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobConfigDocument
The JSON configuration document for the job. The document must conform to the schema specified by
JobConfigSchemaVersion. UseDescribeJobSchemaVersionto retrieve the schema for validation.- Parameters:
jobConfigDocument- The JSON configuration document for the job. The document must conform to the schema specified byJobConfigSchemaVersion. UseDescribeJobSchemaVersionto retrieve the schema for validation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs to apply to the job as tags. For more information, see Tagging Amazon Web Services Resources.
- Parameters:
tags- An array of key-value pairs to apply to the job as tags. For more information, see Tagging Amazon Web Services Resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs to apply to the job as tags. For more information, see Tagging Amazon Web Services Resources.
- Parameters:
tags- An array of key-value pairs to apply to the job as tags. For more information, see Tagging Amazon Web Services Resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of key-value pairs to apply to the job as tags. For more information, see Tagging Amazon Web Services Resources.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-