/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.iot.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *
* Creates a job. *
** Requires permission to access the CreateJob action. *
*/ public class CreateJobRequest extends AmazonWebServiceRequest implements Serializable { /** ** A job identifier which must be unique for your Amazon Web Services * account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" * are valid for use here. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9_-]+
*/
private String jobId;
/**
*
* A list of things and thing groups to which the job should be sent. *
*/ private java.util.List
* An S3 link, or S3 object URL, to the job document. The link is an Amazon
* S3 object URL and is required if you don't specify a value for
* document
.
*
* For example,
* --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
*
* For more information, see Methods for accessing a bucket. *
*
* Constraints:
* Length: 1 - 1350
*/
private String documentSource;
/**
*
* The job document. Required if you don't specify a value for
* documentSource
.
*
* Constraints:
* Length: - 32768
*/
private String document;
/**
*
* A short text description of the job. *
*
* Constraints:
* Length: - 2028
* Pattern: [^\p{C}]+
*/
private String description;
/**
*
* Configuration information for pre-signed S3 URLs. *
*/ private PresignedUrlConfig presignedUrlConfig; /** ** Specifies whether the job will continue to run (CONTINUOUS), or will be * complete after all those things specified as targets have completed the * job (SNAPSHOT). If continuous, the job may also be run on a thing when a * change is detected in a target. For example, a job will run on a thing * when the thing is added to a target group, even after the job was * completed by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot jobs for * dynamic thing group targets. By using continuous jobs, devices that join * the group receive the job execution even after the job has been created. *
*
* Constraints:
* Allowed Values: CONTINUOUS, SNAPSHOT
*/
private String targetSelection;
/**
*
* Allows you to create a staged rollout of the job. *
*/ private JobExecutionsRolloutConfig jobExecutionsRolloutConfig; /** ** Allows you to create the criteria to abort a job. *
*/ private AbortConfig abortConfig; /** *
* Specifies the amount of time each device has to finish its execution of
* the job. The timer is started when the job execution status is set to
* IN_PROGRESS
. If the job execution status is not set to
* another terminal state before the time expires, it will be automatically
* set to TIMED_OUT
.
*
* Metadata which can be used to manage the job. *
*/ private java.util.List* The namespace used to indicate that a job is a customer-managed job. *
** When you specify a value for this parameter, Amazon Web Services IoT Core * sends jobs notifications to MQTT topics that contain the value in the * following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* Constraints:
* Pattern: [a-zA-Z0-9_-]+
*/
private String namespaceId;
/**
*
* The ARN of the job template used to create the job. *
*
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*/
private String jobTemplateArn;
/**
*
* Allows you to create the criteria to retry a job. *
*/ private JobExecutionsRetryConfig jobExecutionsRetryConfig; /** ** Parameters of an Amazon Web Services managed template that you can * specify to create the job document. *
*
* documentParameters
can only be used when creating jobs from
* Amazon Web Services managed templates. This parameter can't be used with
* custom job templates or to create jobs from them.
*
* The configuration that allows you to schedule a job for a future date and * time in addition to specifying the end behavior for each job execution. *
*/ private SchedulingConfig schedulingConfig; /** ** The package version Amazon Resource Names (ARNs) that are installed on * the device when the job successfully completes. *
** Note:The following Length Constraints relates to a single string. * Up to five strings are allowed. *
*/ private java.util.List* A job identifier which must be unique for your Amazon Web Services * account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" * are valid for use here. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9_-]+
*
* @return
* A job identifier which must be unique for your Amazon Web * Services account. We recommend using a UUID. Alpha-numeric * characters, "-" and "_" are valid for use here. *
*/ public String getJobId() { return jobId; } /** ** A job identifier which must be unique for your Amazon Web Services * account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" * are valid for use here. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9_-]+
*
* @param jobId
* A job identifier which must be unique for your Amazon Web * Services account. We recommend using a UUID. Alpha-numeric * characters, "-" and "_" are valid for use here. *
*/ public void setJobId(String jobId) { this.jobId = jobId; } /** ** A job identifier which must be unique for your Amazon Web Services * account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" * are valid for use here. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9_-]+
*
* @param jobId
* A job identifier which must be unique for your Amazon Web * Services account. We recommend using a UUID. Alpha-numeric * characters, "-" and "_" are valid for use here. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withJobId(String jobId) { this.jobId = jobId; return this; } /** ** A list of things and thing groups to which the job should be sent. *
* * @return* A list of things and thing groups to which the job should be * sent. *
*/ public java.util.List* A list of things and thing groups to which the job should be sent. *
* * @param targets* A list of things and thing groups to which the job should be * sent. *
*/ public void setTargets(java.util.Collection* A list of things and thing groups to which the job should be sent. *
** Returns a reference to this object so that method calls can be chained * together. * * @param targets
* A list of things and thing groups to which the job should be * sent. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withTargets(String... targets) { if (getTargets() == null) { this.targets = new java.util.ArrayList* A list of things and thing groups to which the job should be sent. *
** Returns a reference to this object so that method calls can be chained * together. * * @param targets
* A list of things and thing groups to which the job should be * sent. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withTargets(java.util.Collection
* An S3 link, or S3 object URL, to the job document. The link is an Amazon
* S3 object URL and is required if you don't specify a value for
* document
.
*
* For example,
* --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
*
* For more information, see Methods for accessing a bucket. *
*
* Constraints:
* Length: 1 - 1350
*
* @return
* An S3 link, or S3 object URL, to the job document. The link is an
* Amazon S3 object URL and is required if you don't specify a value
* for document
.
*
* For example,
* --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
*
* For more information, see Methods for accessing a bucket. *
*/ public String getDocumentSource() { return documentSource; } /** *
* An S3 link, or S3 object URL, to the job document. The link is an Amazon
* S3 object URL and is required if you don't specify a value for
* document
.
*
* For example,
* --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
*
* For more information, see Methods for accessing a bucket. *
*
* Constraints:
* Length: 1 - 1350
*
* @param documentSource
* An S3 link, or S3 object URL, to the job document. The link is
* an Amazon S3 object URL and is required if you don't specify a
* value for document
.
*
* For example,
* --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
*
* For more information, see Methods for accessing a bucket. *
*/ public void setDocumentSource(String documentSource) { this.documentSource = documentSource; } /** *
* An S3 link, or S3 object URL, to the job document. The link is an Amazon
* S3 object URL and is required if you don't specify a value for
* document
.
*
* For example,
* --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
*
* For more information, see Methods for accessing a bucket. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 1350
*
* @param documentSource
* An S3 link, or S3 object URL, to the job document. The link is
* an Amazon S3 object URL and is required if you don't specify a
* value for document
.
*
* For example,
* --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
*
* For more information, see Methods for accessing a bucket. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withDocumentSource(String documentSource) { this.documentSource = documentSource; return this; } /** *
* The job document. Required if you don't specify a value for
* documentSource
.
*
* Constraints:
* Length: - 32768
*
* @return
* The job document. Required if you don't specify a value for
* documentSource
.
*
* The job document. Required if you don't specify a value for
* documentSource
.
*
* Constraints:
* Length: - 32768
*
* @param document
* The job document. Required if you don't specify a value for
* documentSource
.
*
* The job document. Required if you don't specify a value for
* documentSource
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 32768
*
* @param document
* The job document. Required if you don't specify a value for
* documentSource
.
*
* A short text description of the job. *
*
* Constraints:
* Length: - 2028
* Pattern: [^\p{C}]+
*
* @return
* A short text description of the job. *
*/ public String getDescription() { return description; } /** ** A short text description of the job. *
*
* Constraints:
* Length: - 2028
* Pattern: [^\p{C}]+
*
* @param description
* A short text description of the job. *
*/ public void setDescription(String description) { this.description = description; } /** ** A short text description of the job. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 2028
* Pattern: [^\p{C}]+
*
* @param description
* A short text description of the job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withDescription(String description) { this.description = description; return this; } /** ** Configuration information for pre-signed S3 URLs. *
* * @return* Configuration information for pre-signed S3 URLs. *
*/ public PresignedUrlConfig getPresignedUrlConfig() { return presignedUrlConfig; } /** ** Configuration information for pre-signed S3 URLs. *
* * @param presignedUrlConfig* Configuration information for pre-signed S3 URLs. *
*/ public void setPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig) { this.presignedUrlConfig = presignedUrlConfig; } /** ** Configuration information for pre-signed S3 URLs. *
** Returns a reference to this object so that method calls can be chained * together. * * @param presignedUrlConfig
* Configuration information for pre-signed S3 URLs. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig) { this.presignedUrlConfig = presignedUrlConfig; return this; } /** ** Specifies whether the job will continue to run (CONTINUOUS), or will be * complete after all those things specified as targets have completed the * job (SNAPSHOT). If continuous, the job may also be run on a thing when a * change is detected in a target. For example, a job will run on a thing * when the thing is added to a target group, even after the job was * completed by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot jobs for * dynamic thing group targets. By using continuous jobs, devices that join * the group receive the job execution even after the job has been created. *
*
* Constraints:
* Allowed Values: CONTINUOUS, SNAPSHOT
*
* @return
* Specifies whether the job will continue to run (CONTINUOUS), or * will be complete after all those things specified as targets have * completed the job (SNAPSHOT). If continuous, the job may also be * run on a thing when a change is detected in a target. For * example, a job will run on a thing when the thing is added to a * target group, even after the job was completed by all things * originally in the group. *
** We recommend that you use continuous jobs instead of snapshot * jobs for dynamic thing group targets. By using continuous jobs, * devices that join the group receive the job execution even after * the job has been created. *
** Specifies whether the job will continue to run (CONTINUOUS), or will be * complete after all those things specified as targets have completed the * job (SNAPSHOT). If continuous, the job may also be run on a thing when a * change is detected in a target. For example, a job will run on a thing * when the thing is added to a target group, even after the job was * completed by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot jobs for * dynamic thing group targets. By using continuous jobs, devices that join * the group receive the job execution even after the job has been created. *
*
* Constraints:
* Allowed Values: CONTINUOUS, SNAPSHOT
*
* @param targetSelection
* Specifies whether the job will continue to run (CONTINUOUS), * or will be complete after all those things specified as * targets have completed the job (SNAPSHOT). If continuous, the * job may also be run on a thing when a change is detected in a * target. For example, a job will run on a thing when the thing * is added to a target group, even after the job was completed * by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot * jobs for dynamic thing group targets. By using continuous * jobs, devices that join the group receive the job execution * even after the job has been created. *
** Specifies whether the job will continue to run (CONTINUOUS), or will be * complete after all those things specified as targets have completed the * job (SNAPSHOT). If continuous, the job may also be run on a thing when a * change is detected in a target. For example, a job will run on a thing * when the thing is added to a target group, even after the job was * completed by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot jobs for * dynamic thing group targets. By using continuous jobs, devices that join * the group receive the job execution even after the job has been created. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: CONTINUOUS, SNAPSHOT
*
* @param targetSelection
* Specifies whether the job will continue to run (CONTINUOUS), * or will be complete after all those things specified as * targets have completed the job (SNAPSHOT). If continuous, the * job may also be run on a thing when a change is detected in a * target. For example, a job will run on a thing when the thing * is added to a target group, even after the job was completed * by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot * jobs for dynamic thing group targets. By using continuous * jobs, devices that join the group receive the job execution * even after the job has been created. *
** Specifies whether the job will continue to run (CONTINUOUS), or will be * complete after all those things specified as targets have completed the * job (SNAPSHOT). If continuous, the job may also be run on a thing when a * change is detected in a target. For example, a job will run on a thing * when the thing is added to a target group, even after the job was * completed by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot jobs for * dynamic thing group targets. By using continuous jobs, devices that join * the group receive the job execution even after the job has been created. *
*
* Constraints:
* Allowed Values: CONTINUOUS, SNAPSHOT
*
* @param targetSelection
* Specifies whether the job will continue to run (CONTINUOUS), * or will be complete after all those things specified as * targets have completed the job (SNAPSHOT). If continuous, the * job may also be run on a thing when a change is detected in a * target. For example, a job will run on a thing when the thing * is added to a target group, even after the job was completed * by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot * jobs for dynamic thing group targets. By using continuous * jobs, devices that join the group receive the job execution * even after the job has been created. *
** Specifies whether the job will continue to run (CONTINUOUS), or will be * complete after all those things specified as targets have completed the * job (SNAPSHOT). If continuous, the job may also be run on a thing when a * change is detected in a target. For example, a job will run on a thing * when the thing is added to a target group, even after the job was * completed by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot jobs for * dynamic thing group targets. By using continuous jobs, devices that join * the group receive the job execution even after the job has been created. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: CONTINUOUS, SNAPSHOT
*
* @param targetSelection
* Specifies whether the job will continue to run (CONTINUOUS), * or will be complete after all those things specified as * targets have completed the job (SNAPSHOT). If continuous, the * job may also be run on a thing when a change is detected in a * target. For example, a job will run on a thing when the thing * is added to a target group, even after the job was completed * by all things originally in the group. *
** We recommend that you use continuous jobs instead of snapshot * jobs for dynamic thing group targets. By using continuous * jobs, devices that join the group receive the job execution * even after the job has been created. *
** Allows you to create a staged rollout of the job. *
* * @return* Allows you to create a staged rollout of the job. *
*/ public JobExecutionsRolloutConfig getJobExecutionsRolloutConfig() { return jobExecutionsRolloutConfig; } /** ** Allows you to create a staged rollout of the job. *
* * @param jobExecutionsRolloutConfig* Allows you to create a staged rollout of the job. *
*/ public void setJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig) { this.jobExecutionsRolloutConfig = jobExecutionsRolloutConfig; } /** ** Allows you to create a staged rollout of the job. *
** Returns a reference to this object so that method calls can be chained * together. * * @param jobExecutionsRolloutConfig
* Allows you to create a staged rollout of the job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withJobExecutionsRolloutConfig( JobExecutionsRolloutConfig jobExecutionsRolloutConfig) { this.jobExecutionsRolloutConfig = jobExecutionsRolloutConfig; return this; } /** ** Allows you to create the criteria to abort a job. *
* * @return* Allows you to create the criteria to abort a job. *
*/ public AbortConfig getAbortConfig() { return abortConfig; } /** ** Allows you to create the criteria to abort a job. *
* * @param abortConfig* Allows you to create the criteria to abort a job. *
*/ public void setAbortConfig(AbortConfig abortConfig) { this.abortConfig = abortConfig; } /** ** Allows you to create the criteria to abort a job. *
** Returns a reference to this object so that method calls can be chained * together. * * @param abortConfig
* Allows you to create the criteria to abort a job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withAbortConfig(AbortConfig abortConfig) { this.abortConfig = abortConfig; return this; } /** *
* Specifies the amount of time each device has to finish its execution of
* the job. The timer is started when the job execution status is set to
* IN_PROGRESS
. If the job execution status is not set to
* another terminal state before the time expires, it will be automatically
* set to TIMED_OUT
.
*
* Specifies the amount of time each device has to finish its
* execution of the job. The timer is started when the job execution
* status is set to IN_PROGRESS
. If the job execution
* status is not set to another terminal state before the time
* expires, it will be automatically set to TIMED_OUT
.
*
* Specifies the amount of time each device has to finish its execution of
* the job. The timer is started when the job execution status is set to
* IN_PROGRESS
. If the job execution status is not set to
* another terminal state before the time expires, it will be automatically
* set to TIMED_OUT
.
*
* Specifies the amount of time each device has to finish its
* execution of the job. The timer is started when the job
* execution status is set to IN_PROGRESS
. If the
* job execution status is not set to another terminal state
* before the time expires, it will be automatically set to
* TIMED_OUT
.
*
* Specifies the amount of time each device has to finish its execution of
* the job. The timer is started when the job execution status is set to
* IN_PROGRESS
. If the job execution status is not set to
* another terminal state before the time expires, it will be automatically
* set to TIMED_OUT
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param timeoutConfig
* Specifies the amount of time each device has to finish its
* execution of the job. The timer is started when the job
* execution status is set to IN_PROGRESS
. If the
* job execution status is not set to another terminal state
* before the time expires, it will be automatically set to
* TIMED_OUT
.
*
* Metadata which can be used to manage the job. *
* * @return* Metadata which can be used to manage the job. *
*/ public java.util.List* Metadata which can be used to manage the job. *
* * @param tags* Metadata which can be used to manage the job. *
*/ public void setTags(java.util.Collection* Metadata which can be used to manage the job. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
* Metadata which can be used to manage the job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withTags(Tag... tags) { if (getTags() == null) { this.tags = new java.util.ArrayList* Metadata which can be used to manage the job. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
* Metadata which can be used to manage the job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withTags(java.util.Collection* The namespace used to indicate that a job is a customer-managed job. *
** When you specify a value for this parameter, Amazon Web Services IoT Core * sends jobs notifications to MQTT topics that contain the value in the * following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* Constraints:
* Pattern: [a-zA-Z0-9_-]+
*
* @return
* The namespace used to indicate that a job is a customer-managed * job. *
** When you specify a value for this parameter, Amazon Web Services * IoT Core sends jobs notifications to MQTT topics that contain the * value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* The namespace used to indicate that a job is a customer-managed job. *
** When you specify a value for this parameter, Amazon Web Services IoT Core * sends jobs notifications to MQTT topics that contain the value in the * following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* Constraints:
* Pattern: [a-zA-Z0-9_-]+
*
* @param namespaceId
* The namespace used to indicate that a job is a * customer-managed job. *
** When you specify a value for this parameter, Amazon Web * Services IoT Core sends jobs notifications to MQTT topics that * contain the value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* The namespace used to indicate that a job is a customer-managed job. *
** When you specify a value for this parameter, Amazon Web Services IoT Core * sends jobs notifications to MQTT topics that contain the value in the * following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Pattern: [a-zA-Z0-9_-]+
*
* @param namespaceId
* The namespace used to indicate that a job is a * customer-managed job. *
** When you specify a value for this parameter, Amazon Web * Services IoT Core sends jobs notifications to MQTT topics that * contain the value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* The ARN of the job template used to create the job. *
*
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*
* @return
* The ARN of the job template used to create the job. *
*/ public String getJobTemplateArn() { return jobTemplateArn; } /** ** The ARN of the job template used to create the job. *
*
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*
* @param jobTemplateArn
* The ARN of the job template used to create the job. *
*/ public void setJobTemplateArn(String jobTemplateArn) { this.jobTemplateArn = jobTemplateArn; } /** ** The ARN of the job template used to create the job. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*
* @param jobTemplateArn
* The ARN of the job template used to create the job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withJobTemplateArn(String jobTemplateArn) { this.jobTemplateArn = jobTemplateArn; return this; } /** ** Allows you to create the criteria to retry a job. *
* * @return* Allows you to create the criteria to retry a job. *
*/ public JobExecutionsRetryConfig getJobExecutionsRetryConfig() { return jobExecutionsRetryConfig; } /** ** Allows you to create the criteria to retry a job. *
* * @param jobExecutionsRetryConfig* Allows you to create the criteria to retry a job. *
*/ public void setJobExecutionsRetryConfig(JobExecutionsRetryConfig jobExecutionsRetryConfig) { this.jobExecutionsRetryConfig = jobExecutionsRetryConfig; } /** ** Allows you to create the criteria to retry a job. *
** Returns a reference to this object so that method calls can be chained * together. * * @param jobExecutionsRetryConfig
* Allows you to create the criteria to retry a job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateJobRequest withJobExecutionsRetryConfig( JobExecutionsRetryConfig jobExecutionsRetryConfig) { this.jobExecutionsRetryConfig = jobExecutionsRetryConfig; return this; } /** ** Parameters of an Amazon Web Services managed template that you can * specify to create the job document. *
*
* documentParameters
can only be used when creating jobs from
* Amazon Web Services managed templates. This parameter can't be used with
* custom job templates or to create jobs from them.
*
* Parameters of an Amazon Web Services managed template that you * can specify to create the job document. *
*
* documentParameters
can only be used when creating
* jobs from Amazon Web Services managed templates. This parameter
* can't be used with custom job templates or to create jobs from
* them.
*
* Parameters of an Amazon Web Services managed template that you can * specify to create the job document. *
*
* documentParameters
can only be used when creating jobs from
* Amazon Web Services managed templates. This parameter can't be used with
* custom job templates or to create jobs from them.
*
* Parameters of an Amazon Web Services managed template that you * can specify to create the job document. *
*
* documentParameters
can only be used when creating
* jobs from Amazon Web Services managed templates. This
* parameter can't be used with custom job templates or to create
* jobs from them.
*
* Parameters of an Amazon Web Services managed template that you can * specify to create the job document. *
*
* documentParameters
can only be used when creating jobs from
* Amazon Web Services managed templates. This parameter can't be used with
* custom job templates or to create jobs from them.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param documentParameters
* Parameters of an Amazon Web Services managed template that you * can specify to create the job document. *
*
* documentParameters
can only be used when creating
* jobs from Amazon Web Services managed templates. This
* parameter can't be used with custom job templates or to create
* jobs from them.
*
* Parameters of an Amazon Web Services managed template that you can * specify to create the job document. *
*
* documentParameters
can only be used when creating jobs from
* Amazon Web Services managed templates. This parameter can't be used with
* custom job templates or to create jobs from them.
*
* The method adds a new key-value pair into documentParameters parameter,
* and returns a reference to this object so that method calls can be
* chained together.
*
* @param key The key of the entry to be added into documentParameters.
* @param value The corresponding value of the entry to be added into
* documentParameters.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateJobRequest adddocumentParametersEntry(String key, String value) {
if (null == this.documentParameters) {
this.documentParameters = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public CreateJobRequest cleardocumentParametersEntries() {
this.documentParameters = null;
return this;
}
/**
*
* The configuration that allows you to schedule a job for a future date and
* time in addition to specifying the end behavior for each job execution.
*
* The configuration that allows you to schedule a job for a future
* date and time in addition to specifying the end behavior for each
* job execution.
*
* The configuration that allows you to schedule a job for a future date and
* time in addition to specifying the end behavior for each job execution.
*
* The configuration that allows you to schedule a job for a
* future date and time in addition to specifying the end
* behavior for each job execution.
*
* The configuration that allows you to schedule a job for a future date and
* time in addition to specifying the end behavior for each job execution.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param schedulingConfig
* The configuration that allows you to schedule a job for a
* future date and time in addition to specifying the end
* behavior for each job execution.
*
* The package version Amazon Resource Names (ARNs) that are installed on
* the device when the job successfully completes.
*
* Note:The following Length Constraints relates to a single string.
* Up to five strings are allowed.
*
* The package version Amazon Resource Names (ARNs) that are
* installed on the device when the job successfully completes.
*
* Note:The following Length Constraints relates to a single
* string. Up to five strings are allowed.
*
* The package version Amazon Resource Names (ARNs) that are installed on
* the device when the job successfully completes.
*
* Note:The following Length Constraints relates to a single string.
* Up to five strings are allowed.
*
* The package version Amazon Resource Names (ARNs) that are
* installed on the device when the job successfully completes.
*
* Note:The following Length Constraints relates to a
* single string. Up to five strings are allowed.
*
* The package version Amazon Resource Names (ARNs) that are installed on
* the device when the job successfully completes.
*
* Note:The following Length Constraints relates to a single string.
* Up to five strings are allowed.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param destinationPackageVersions
* The package version Amazon Resource Names (ARNs) that are
* installed on the device when the job successfully completes.
*
* Note:The following Length Constraints relates to a
* single string. Up to five strings are allowed.
*
* The package version Amazon Resource Names (ARNs) that are installed on
* the device when the job successfully completes.
*
* Note:The following Length Constraints relates to a single string.
* Up to five strings are allowed.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param destinationPackageVersions
* The package version Amazon Resource Names (ARNs) that are
* installed on the device when the job successfully completes.
*
* Note:The following Length Constraints relates to a
* single string. Up to five strings are allowed.
*