/* * 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; public class DescribeJobTemplateResult implements Serializable { /** *
* The ARN of the job template. *
*
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*/
private String jobTemplateArn;
/**
*
* The unique identifier of the job template. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9_-]+
*/
private String jobTemplateId;
/**
*
* A description of the job template. *
*
* Constraints:
* Length: - 2028
* Pattern: [^\p{C}]+
*/
private String description;
/**
*
* An S3 link to the job document. *
*
* Constraints:
* Length: 1 - 1350
*/
private String documentSource;
/**
*
* The job document. *
*
* Constraints:
* Length: - 32768
*/
private String document;
/**
*
* The time, in seconds since the epoch, when the job template was created. *
*/ private java.util.Date createdAt; /** ** Configuration for pre-signed S3 URLs. *
*/ private PresignedUrlConfig presignedUrlConfig; /** ** Allows you to create a staged rollout of a job. *
*/ private JobExecutionsRolloutConfig jobExecutionsRolloutConfig; /** ** The criteria that determine when and how a job abort takes place. *
*/ private AbortConfig abortConfig; /** *
* Specifies the amount of time each device has to finish its execution of
* the job. A 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 timer expires, it will be automatically
* set to TIMED_OUT
.
*
* The configuration that determines how many retries are allowed for each * failure type for a job. *
*/ private JobExecutionsRetryConfig jobExecutionsRetryConfig; /** ** Allows you to configure an optional maintenance window for the rollout of * a job document to all devices in the target group for a job. *
*/ private java.util.List* 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* The ARN of the job template. *
*
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*
* @return
* The ARN of the job template. *
*/ public String getJobTemplateArn() { return jobTemplateArn; } /** ** The ARN of the job template. *
*
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*
* @param jobTemplateArn
* The ARN of the job template. *
*/ public void setJobTemplateArn(String jobTemplateArn) { this.jobTemplateArn = jobTemplateArn; } /** ** The ARN of the job template. *
** 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withJobTemplateArn(String jobTemplateArn) { this.jobTemplateArn = jobTemplateArn; return this; } /** ** The unique identifier of the job template. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9_-]+
*
* @return
* The unique identifier of the job template. *
*/ public String getJobTemplateId() { return jobTemplateId; } /** ** The unique identifier of the job template. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9_-]+
*
* @param jobTemplateId
* The unique identifier of the job template. *
*/ public void setJobTemplateId(String jobTemplateId) { this.jobTemplateId = jobTemplateId; } /** ** The unique identifier of the job template. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9_-]+
*
* @param jobTemplateId
* The unique identifier of the job template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withJobTemplateId(String jobTemplateId) { this.jobTemplateId = jobTemplateId; return this; } /** ** A description of the job template. *
*
* Constraints:
* Length: - 2028
* Pattern: [^\p{C}]+
*
* @return
* A description of the job template. *
*/ public String getDescription() { return description; } /** ** A description of the job template. *
*
* Constraints:
* Length: - 2028
* Pattern: [^\p{C}]+
*
* @param description
* A description of the job template. *
*/ public void setDescription(String description) { this.description = description; } /** ** A description of the job template. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 2028
* Pattern: [^\p{C}]+
*
* @param description
* A description of the job template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withDescription(String description) { this.description = description; return this; } /** ** An S3 link to the job document. *
*
* Constraints:
* Length: 1 - 1350
*
* @return
* An S3 link to the job document. *
*/ public String getDocumentSource() { return documentSource; } /** ** An S3 link to the job document. *
*
* Constraints:
* Length: 1 - 1350
*
* @param documentSource
* An S3 link to the job document. *
*/ public void setDocumentSource(String documentSource) { this.documentSource = documentSource; } /** ** An S3 link to the job document. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 1350
*
* @param documentSource
* An S3 link to the job document. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withDocumentSource(String documentSource) { this.documentSource = documentSource; return this; } /** ** The job document. *
*
* Constraints:
* Length: - 32768
*
* @return
* The job document. *
*/ public String getDocument() { return document; } /** ** The job document. *
*
* Constraints:
* Length: - 32768
*
* @param document
* The job document. *
*/ public void setDocument(String document) { this.document = document; } /** ** The job document. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 32768
*
* @param document
* The job document. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withDocument(String document) { this.document = document; return this; } /** ** The time, in seconds since the epoch, when the job template was created. *
* * @return* The time, in seconds since the epoch, when the job template was * created. *
*/ public java.util.Date getCreatedAt() { return createdAt; } /** ** The time, in seconds since the epoch, when the job template was created. *
* * @param createdAt* The time, in seconds since the epoch, when the job template * was created. *
*/ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The time, in seconds since the epoch, when the job template was created. *
** Returns a reference to this object so that method calls can be chained * together. * * @param createdAt
* The time, in seconds since the epoch, when the job template * was created. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; return this; } /** ** Configuration for pre-signed S3 URLs. *
* * @return* Configuration for pre-signed S3 URLs. *
*/ public PresignedUrlConfig getPresignedUrlConfig() { return presignedUrlConfig; } /** ** Configuration for pre-signed S3 URLs. *
* * @param presignedUrlConfig* Configuration for pre-signed S3 URLs. *
*/ public void setPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig) { this.presignedUrlConfig = presignedUrlConfig; } /** ** Configuration for pre-signed S3 URLs. *
** Returns a reference to this object so that method calls can be chained * together. * * @param presignedUrlConfig
* Configuration for pre-signed S3 URLs. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig) { this.presignedUrlConfig = presignedUrlConfig; return this; } /** ** Allows you to create a staged rollout of a job. *
* * @return* Allows you to create a staged rollout of a job. *
*/ public JobExecutionsRolloutConfig getJobExecutionsRolloutConfig() { return jobExecutionsRolloutConfig; } /** ** Allows you to create a staged rollout of a job. *
* * @param jobExecutionsRolloutConfig* Allows you to create a staged rollout of a job. *
*/ public void setJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig) { this.jobExecutionsRolloutConfig = jobExecutionsRolloutConfig; } /** ** Allows you to create a staged rollout of a 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 a job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withJobExecutionsRolloutConfig( JobExecutionsRolloutConfig jobExecutionsRolloutConfig) { this.jobExecutionsRolloutConfig = jobExecutionsRolloutConfig; return this; } /** ** The criteria that determine when and how a job abort takes place. *
* * @return* The criteria that determine when and how a job abort takes place. *
*/ public AbortConfig getAbortConfig() { return abortConfig; } /** ** The criteria that determine when and how a job abort takes place. *
* * @param abortConfig* The criteria that determine when and how a job abort takes * place. *
*/ public void setAbortConfig(AbortConfig abortConfig) { this.abortConfig = abortConfig; } /** ** The criteria that determine when and how a job abort takes place. *
** Returns a reference to this object so that method calls can be chained * together. * * @param abortConfig
* The criteria that determine when and how a job abort takes * place. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withAbortConfig(AbortConfig abortConfig) { this.abortConfig = abortConfig; return this; } /** *
* Specifies the amount of time each device has to finish its execution of
* the job. A 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 timer expires, it will be automatically
* set to TIMED_OUT
.
*
* Specifies the amount of time each device has to finish its
* execution of the job. A 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 timer
* expires, it will be automatically set to TIMED_OUT
.
*
* Specifies the amount of time each device has to finish its execution of
* the job. A 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 timer expires, it will be automatically
* set to TIMED_OUT
.
*
* Specifies the amount of time each device has to finish its
* execution of the job. A 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 timer expires, it will be automatically set to
* TIMED_OUT
.
*
* Specifies the amount of time each device has to finish its execution of
* the job. A 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 timer 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. A 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 timer expires, it will be automatically set to
* TIMED_OUT
.
*
* The configuration that determines how many retries are allowed for each * failure type for a job. *
* * @return* The configuration that determines how many retries are allowed * for each failure type for a job. *
*/ public JobExecutionsRetryConfig getJobExecutionsRetryConfig() { return jobExecutionsRetryConfig; } /** ** The configuration that determines how many retries are allowed for each * failure type for a job. *
* * @param jobExecutionsRetryConfig* The configuration that determines how many retries are allowed * for each failure type for a job. *
*/ public void setJobExecutionsRetryConfig(JobExecutionsRetryConfig jobExecutionsRetryConfig) { this.jobExecutionsRetryConfig = jobExecutionsRetryConfig; } /** ** The configuration that determines how many retries are allowed for each * failure type for a job. *
** Returns a reference to this object so that method calls can be chained * together. * * @param jobExecutionsRetryConfig
* The configuration that determines how many retries are allowed * for each failure type for a job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withJobExecutionsRetryConfig( JobExecutionsRetryConfig jobExecutionsRetryConfig) { this.jobExecutionsRetryConfig = jobExecutionsRetryConfig; return this; } /** ** Allows you to configure an optional maintenance window for the rollout of * a job document to all devices in the target group for a job. *
* * @return* Allows you to configure an optional maintenance window for the * rollout of a job document to all devices in the target group for * a job. *
*/ public java.util.List* Allows you to configure an optional maintenance window for the rollout of * a job document to all devices in the target group for a job. *
* * @param maintenanceWindows* Allows you to configure an optional maintenance window for the * rollout of a job document to all devices in the target group * for a job. *
*/ public void setMaintenanceWindows(java.util.Collection* Allows you to configure an optional maintenance window for the rollout of * a job document to all devices in the target group for a job. *
** Returns a reference to this object so that method calls can be chained * together. * * @param maintenanceWindows
* Allows you to configure an optional maintenance window for the * rollout of a job document to all devices in the target group * for a job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withMaintenanceWindows(MaintenanceWindow... maintenanceWindows) { if (getMaintenanceWindows() == null) { this.maintenanceWindows = new java.util.ArrayList* Allows you to configure an optional maintenance window for the rollout of * a job document to all devices in the target group for a job. *
** Returns a reference to this object so that method calls can be chained * together. * * @param maintenanceWindows
* Allows you to configure an optional maintenance window for the * rollout of a job document to all devices in the target group * for a job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withMaintenanceWindows( java.util.Collection* 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. *
* * @return* 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. *
*/ public java.util.List* 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. *
* * @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. *
*/ public void setDestinationPackageVersions( java.util.Collection* 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withDestinationPackageVersions( String... destinationPackageVersions) { if (getDestinationPackageVersions() == null) { this.destinationPackageVersions = new java.util.ArrayList* 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeJobTemplateResult withDestinationPackageVersions( java.util.Collection