Interface JobTemplate.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<JobTemplate.Builder,JobTemplate>,SdkBuilder<JobTemplate.Builder,JobTemplate>,SdkPojo
- Enclosing class:
- JobTemplate
public static interface JobTemplate.Builder extends SdkPojo, CopyableBuilder<JobTemplate.Builder,JobTemplate>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description JobTemplate.Builderarn(String arn)The ARN of the job template.JobTemplate.BuildercreatedAt(Instant createdAt)The date and time when the job template was created.JobTemplate.BuildercreatedBy(String createdBy)The user who created the job template.JobTemplate.BuilderdecryptionError(String decryptionError)The error message in case the decryption of job template fails.JobTemplate.Builderid(String id)The ID of the job template.default JobTemplate.BuilderjobTemplateData(Consumer<JobTemplateData.Builder> jobTemplateData)The job template data which holds values of StartJobRun API request.JobTemplate.BuilderjobTemplateData(JobTemplateData jobTemplateData)The job template data which holds values of StartJobRun API request.JobTemplate.BuilderkmsKeyArn(String kmsKeyArn)The KMS key ARN used to encrypt the job template.JobTemplate.Buildername(String name)The name of the job template.JobTemplate.Buildertags(Map<String,String> tags)The tags assigned to the job template.-
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, sdkFields
-
-
-
-
Method Detail
-
name
JobTemplate.Builder name(String name)
The name of the job template.
- Parameters:
name- The name of the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
JobTemplate.Builder id(String id)
The ID of the job template.
- Parameters:
id- The ID of the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
JobTemplate.Builder arn(String arn)
The ARN of the job template.
- Parameters:
arn- The ARN of the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
JobTemplate.Builder createdAt(Instant createdAt)
The date and time when the job template was created.
- Parameters:
createdAt- The date and time when the job template was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
JobTemplate.Builder createdBy(String createdBy)
The user who created the job template.
- Parameters:
createdBy- The user who created the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
JobTemplate.Builder tags(Map<String,String> tags)
The tags assigned to the job template.
- Parameters:
tags- The tags assigned to the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTemplateData
JobTemplate.Builder jobTemplateData(JobTemplateData jobTemplateData)
The job template data which holds values of StartJobRun API request.
- Parameters:
jobTemplateData- The job template data which holds values of StartJobRun API request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobTemplateData
default JobTemplate.Builder jobTemplateData(Consumer<JobTemplateData.Builder> jobTemplateData)
The job template data which holds values of StartJobRun API request.
This is a convenience method that creates an instance of theJobTemplateData.Builderavoiding the need to create one manually viaJobTemplateData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tojobTemplateData(JobTemplateData).- Parameters:
jobTemplateData- a consumer that will call methods onJobTemplateData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
jobTemplateData(JobTemplateData)
-
kmsKeyArn
JobTemplate.Builder kmsKeyArn(String kmsKeyArn)
The KMS key ARN used to encrypt the job template.
- Parameters:
kmsKeyArn- The KMS key ARN used to encrypt the job template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
decryptionError
JobTemplate.Builder decryptionError(String decryptionError)
The error message in case the decryption of job template fails.
- Parameters:
decryptionError- The error message in case the decryption of job template fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-