@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateJobTemplateRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateJobTemplateRequest() |
Modifier and Type | Method and Description |
---|---|
CreateJobTemplateRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
AbortConfig |
getAbortConfig() |
String |
getDescription()
A description of the job document.
|
List<String> |
getDestinationPackageVersions()
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully
completes.
|
String |
getDocument()
The job document.
|
String |
getDocumentSource()
An S3 link, or S3 object URL, to the job document.
|
String |
getJobArn()
The ARN of the job to use as the basis for the job template.
|
JobExecutionsRetryConfig |
getJobExecutionsRetryConfig()
Allows you to create the criteria to retry a job.
|
JobExecutionsRolloutConfig |
getJobExecutionsRolloutConfig() |
String |
getJobTemplateId()
A unique identifier for the job template.
|
List<MaintenanceWindow> |
getMaintenanceWindows()
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.
|
PresignedUrlConfig |
getPresignedUrlConfig() |
List<Tag> |
getTags()
Metadata that can be used to manage the job template.
|
TimeoutConfig |
getTimeoutConfig() |
int |
hashCode() |
void |
setAbortConfig(AbortConfig abortConfig) |
void |
setDescription(String description)
A description of the job document.
|
void |
setDestinationPackageVersions(Collection<String> destinationPackageVersions)
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully
completes.
|
void |
setDocument(String document)
The job document.
|
void |
setDocumentSource(String documentSource)
An S3 link, or S3 object URL, to the job document.
|
void |
setJobArn(String jobArn)
The ARN of the job to use as the basis for the job template.
|
void |
setJobExecutionsRetryConfig(JobExecutionsRetryConfig jobExecutionsRetryConfig)
Allows you to create the criteria to retry a job.
|
void |
setJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig) |
void |
setJobTemplateId(String jobTemplateId)
A unique identifier for the job template.
|
void |
setMaintenanceWindows(Collection<MaintenanceWindow> 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.
|
void |
setPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig) |
void |
setTags(Collection<Tag> tags)
Metadata that can be used to manage the job template.
|
void |
setTimeoutConfig(TimeoutConfig timeoutConfig) |
String |
toString()
Returns a string representation of this object.
|
CreateJobTemplateRequest |
withAbortConfig(AbortConfig abortConfig) |
CreateJobTemplateRequest |
withDescription(String description)
A description of the job document.
|
CreateJobTemplateRequest |
withDestinationPackageVersions(Collection<String> destinationPackageVersions)
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully
completes.
|
CreateJobTemplateRequest |
withDestinationPackageVersions(String... destinationPackageVersions)
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully
completes.
|
CreateJobTemplateRequest |
withDocument(String document)
The job document.
|
CreateJobTemplateRequest |
withDocumentSource(String documentSource)
An S3 link, or S3 object URL, to the job document.
|
CreateJobTemplateRequest |
withJobArn(String jobArn)
The ARN of the job to use as the basis for the job template.
|
CreateJobTemplateRequest |
withJobExecutionsRetryConfig(JobExecutionsRetryConfig jobExecutionsRetryConfig)
Allows you to create the criteria to retry a job.
|
CreateJobTemplateRequest |
withJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig) |
CreateJobTemplateRequest |
withJobTemplateId(String jobTemplateId)
A unique identifier for the job template.
|
CreateJobTemplateRequest |
withMaintenanceWindows(Collection<MaintenanceWindow> 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.
|
CreateJobTemplateRequest |
withMaintenanceWindows(MaintenanceWindow... 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.
|
CreateJobTemplateRequest |
withPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig) |
CreateJobTemplateRequest |
withTags(Collection<Tag> tags)
Metadata that can be used to manage the job template.
|
CreateJobTemplateRequest |
withTags(Tag... tags)
Metadata that can be used to manage the job template.
|
CreateJobTemplateRequest |
withTimeoutConfig(TimeoutConfig timeoutConfig) |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setJobTemplateId(String jobTemplateId)
A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
jobTemplateId
- A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and
"_" are valid for use here.public String getJobTemplateId()
A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
public CreateJobTemplateRequest withJobTemplateId(String jobTemplateId)
A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
jobTemplateId
- A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and
"_" are valid for use here.public void setJobArn(String jobArn)
The ARN of the job to use as the basis for the job template.
jobArn
- The ARN of the job to use as the basis for the job template.public String getJobArn()
The ARN of the job to use as the basis for the job template.
public CreateJobTemplateRequest withJobArn(String jobArn)
The ARN of the job to use as the basis for the job template.
jobArn
- The ARN of the job to use as the basis for the job template.public void setDocumentSource(String 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.
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 String getDocumentSource()
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.
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 CreateJobTemplateRequest withDocumentSource(String 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.
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 setDocument(String document)
The job document. Required if you don't specify a value for documentSource
.
document
- The job document. Required if you don't specify a value for documentSource
.public String getDocument()
The job document. Required if you don't specify a value for documentSource
.
documentSource
.public CreateJobTemplateRequest withDocument(String document)
The job document. Required if you don't specify a value for documentSource
.
document
- The job document. Required if you don't specify a value for documentSource
.public void setDescription(String description)
A description of the job document.
description
- A description of the job document.public String getDescription()
A description of the job document.
public CreateJobTemplateRequest withDescription(String description)
A description of the job document.
description
- A description of the job document.public void setPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
presignedUrlConfig
- public PresignedUrlConfig getPresignedUrlConfig()
public CreateJobTemplateRequest withPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
presignedUrlConfig
- public void setJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
jobExecutionsRolloutConfig
- public JobExecutionsRolloutConfig getJobExecutionsRolloutConfig()
public CreateJobTemplateRequest withJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
jobExecutionsRolloutConfig
- public void setAbortConfig(AbortConfig abortConfig)
abortConfig
- public AbortConfig getAbortConfig()
public CreateJobTemplateRequest withAbortConfig(AbortConfig abortConfig)
abortConfig
- public void setTimeoutConfig(TimeoutConfig timeoutConfig)
timeoutConfig
- public TimeoutConfig getTimeoutConfig()
public CreateJobTemplateRequest withTimeoutConfig(TimeoutConfig timeoutConfig)
timeoutConfig
- public List<Tag> getTags()
Metadata that can be used to manage the job template.
public void setTags(Collection<Tag> tags)
Metadata that can be used to manage the job template.
tags
- Metadata that can be used to manage the job template.public CreateJobTemplateRequest withTags(Tag... tags)
Metadata that can be used to manage the job template.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Metadata that can be used to manage the job template.public CreateJobTemplateRequest withTags(Collection<Tag> tags)
Metadata that can be used to manage the job template.
tags
- Metadata that can be used to manage the job template.public void setJobExecutionsRetryConfig(JobExecutionsRetryConfig jobExecutionsRetryConfig)
Allows you to create the criteria to retry a job.
jobExecutionsRetryConfig
- Allows you to create the criteria to retry a job.public JobExecutionsRetryConfig getJobExecutionsRetryConfig()
Allows you to create the criteria to retry a job.
public CreateJobTemplateRequest withJobExecutionsRetryConfig(JobExecutionsRetryConfig jobExecutionsRetryConfig)
Allows you to create the criteria to retry a job.
jobExecutionsRetryConfig
- Allows you to create the criteria to retry a job.public List<MaintenanceWindow> getMaintenanceWindows()
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(Collection<MaintenanceWindow> 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.
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 CreateJobTemplateRequest withMaintenanceWindows(MaintenanceWindow... 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.
NOTE: This method appends the values to the existing list (if any). Use
setMaintenanceWindows(java.util.Collection)
or withMaintenanceWindows(java.util.Collection)
if
you want to override the existing values.
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 CreateJobTemplateRequest withMaintenanceWindows(Collection<MaintenanceWindow> 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.
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 List<String> getDestinationPackageVersions()
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
public void setDestinationPackageVersions(Collection<String> destinationPackageVersions)
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
destinationPackageVersions
- The package version Amazon Resource Names (ARNs) that are installed on the device when the job
successfully completes. The package version must be in either the Published or Deprecated state when the
job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
public CreateJobTemplateRequest withDestinationPackageVersions(String... destinationPackageVersions)
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
NOTE: This method appends the values to the existing list (if any). Use
setDestinationPackageVersions(java.util.Collection)
or
withDestinationPackageVersions(java.util.Collection)
if you want to override the existing values.
destinationPackageVersions
- The package version Amazon Resource Names (ARNs) that are installed on the device when the job
successfully completes. The package version must be in either the Published or Deprecated state when the
job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
public CreateJobTemplateRequest withDestinationPackageVersions(Collection<String> destinationPackageVersions)
The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. The package version must be in either the Published or Deprecated state when the job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
destinationPackageVersions
- The package version Amazon Resource Names (ARNs) that are installed on the device when the job
successfully completes. The package version must be in either the Published or Deprecated state when the
job deploys. For more information, see Package version lifecycle.
Note:The following Length Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
public String toString()
toString
in class Object
Object.toString()
public CreateJobTemplateRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()