#[non_exhaustive]pub struct CreateJobTemplateInputBuilder { /* private fields */ }
Expand description
A builder for CreateJobTemplateInput
.
Implementations§
source§impl CreateJobTemplateInputBuilder
impl CreateJobTemplateInputBuilder
sourcepub fn job_template_id(self, input: impl Into<String>) -> Self
pub fn job_template_id(self, input: impl Into<String>) -> Self
A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
This field is required.sourcepub fn set_job_template_id(self, input: Option<String>) -> Self
pub fn set_job_template_id(self, input: Option<String>) -> Self
A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
sourcepub fn get_job_template_id(&self) -> &Option<String>
pub fn get_job_template_id(&self) -> &Option<String>
A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
sourcepub fn job_arn(self, input: impl Into<String>) -> Self
pub fn job_arn(self, input: impl Into<String>) -> Self
The ARN of the job to use as the basis for the job template.
sourcepub fn set_job_arn(self, input: Option<String>) -> Self
pub fn set_job_arn(self, input: Option<String>) -> Self
The ARN of the job to use as the basis for the job template.
sourcepub fn get_job_arn(&self) -> &Option<String>
pub fn get_job_arn(&self) -> &Option<String>
The ARN of the job to use as the basis for the job template.
sourcepub fn document_source(self, input: impl Into<String>) -> Self
pub fn document_source(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_document_source(self, input: Option<String>) -> Self
pub fn set_document_source(self, input: Option<String>) -> Self
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.
sourcepub fn get_document_source(&self) -> &Option<String>
pub fn get_document_source(&self) -> &Option<String>
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.
sourcepub fn document(self, input: impl Into<String>) -> Self
pub fn document(self, input: impl Into<String>) -> Self
The job document. Required if you don't specify a value for documentSource
.
sourcepub fn set_document(self, input: Option<String>) -> Self
pub fn set_document(self, input: Option<String>) -> Self
The job document. Required if you don't specify a value for documentSource
.
sourcepub fn get_document(&self) -> &Option<String>
pub fn get_document(&self) -> &Option<String>
The job document. Required if you don't specify a value for documentSource
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the job document.
This field is required.sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the job document.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the job document.
sourcepub fn presigned_url_config(self, input: PresignedUrlConfig) -> Self
pub fn presigned_url_config(self, input: PresignedUrlConfig) -> Self
Configuration for pre-signed S3 URLs.
sourcepub fn set_presigned_url_config(self, input: Option<PresignedUrlConfig>) -> Self
pub fn set_presigned_url_config(self, input: Option<PresignedUrlConfig>) -> Self
Configuration for pre-signed S3 URLs.
sourcepub fn get_presigned_url_config(&self) -> &Option<PresignedUrlConfig>
pub fn get_presigned_url_config(&self) -> &Option<PresignedUrlConfig>
Configuration for pre-signed S3 URLs.
sourcepub fn job_executions_rollout_config(
self,
input: JobExecutionsRolloutConfig
) -> Self
pub fn job_executions_rollout_config( self, input: JobExecutionsRolloutConfig ) -> Self
Allows you to create a staged rollout of a job.
sourcepub fn set_job_executions_rollout_config(
self,
input: Option<JobExecutionsRolloutConfig>
) -> Self
pub fn set_job_executions_rollout_config( self, input: Option<JobExecutionsRolloutConfig> ) -> Self
Allows you to create a staged rollout of a job.
sourcepub fn get_job_executions_rollout_config(
&self
) -> &Option<JobExecutionsRolloutConfig>
pub fn get_job_executions_rollout_config( &self ) -> &Option<JobExecutionsRolloutConfig>
Allows you to create a staged rollout of a job.
sourcepub fn abort_config(self, input: AbortConfig) -> Self
pub fn abort_config(self, input: AbortConfig) -> Self
The criteria that determine when and how a job abort takes place.
sourcepub fn set_abort_config(self, input: Option<AbortConfig>) -> Self
pub fn set_abort_config(self, input: Option<AbortConfig>) -> Self
The criteria that determine when and how a job abort takes place.
sourcepub fn get_abort_config(&self) -> &Option<AbortConfig>
pub fn get_abort_config(&self) -> &Option<AbortConfig>
The criteria that determine when and how a job abort takes place.
sourcepub fn timeout_config(self, input: TimeoutConfig) -> Self
pub fn timeout_config(self, input: TimeoutConfig) -> Self
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
.
sourcepub fn set_timeout_config(self, input: Option<TimeoutConfig>) -> Self
pub fn set_timeout_config(self, input: Option<TimeoutConfig>) -> Self
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
.
sourcepub fn get_timeout_config(&self) -> &Option<TimeoutConfig>
pub fn get_timeout_config(&self) -> &Option<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
.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata that can be used to manage the job template.
Metadata that can be used to manage the job template.
Metadata that can be used to manage the job template.
sourcepub fn job_executions_retry_config(
self,
input: JobExecutionsRetryConfig
) -> Self
pub fn job_executions_retry_config( self, input: JobExecutionsRetryConfig ) -> Self
Allows you to create the criteria to retry a job.
sourcepub fn set_job_executions_retry_config(
self,
input: Option<JobExecutionsRetryConfig>
) -> Self
pub fn set_job_executions_retry_config( self, input: Option<JobExecutionsRetryConfig> ) -> Self
Allows you to create the criteria to retry a job.
sourcepub fn get_job_executions_retry_config(
&self
) -> &Option<JobExecutionsRetryConfig>
pub fn get_job_executions_retry_config( &self ) -> &Option<JobExecutionsRetryConfig>
Allows you to create the criteria to retry a job.
sourcepub fn maintenance_windows(self, input: MaintenanceWindow) -> Self
pub fn maintenance_windows(self, input: MaintenanceWindow) -> Self
Appends an item to maintenance_windows
.
To override the contents of this collection use set_maintenance_windows
.
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.
sourcepub fn set_maintenance_windows(
self,
input: Option<Vec<MaintenanceWindow>>
) -> Self
pub fn set_maintenance_windows( self, input: Option<Vec<MaintenanceWindow>> ) -> Self
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.
sourcepub fn get_maintenance_windows(&self) -> &Option<Vec<MaintenanceWindow>>
pub fn get_maintenance_windows(&self) -> &Option<Vec<MaintenanceWindow>>
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.
sourcepub fn destination_package_versions(self, input: impl Into<String>) -> Self
pub fn destination_package_versions(self, input: impl Into<String>) -> Self
Appends an item to destination_package_versions
.
To override the contents of this collection use set_destination_package_versions
.
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.
sourcepub fn set_destination_package_versions(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_destination_package_versions( self, input: Option<Vec<String>> ) -> Self
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.
sourcepub fn get_destination_package_versions(&self) -> &Option<Vec<String>>
pub fn get_destination_package_versions(&self) -> &Option<Vec<String>>
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.
sourcepub fn build(self) -> Result<CreateJobTemplateInput, BuildError>
pub fn build(self) -> Result<CreateJobTemplateInput, BuildError>
Consumes the builder and constructs a CreateJobTemplateInput
.
source§impl CreateJobTemplateInputBuilder
impl CreateJobTemplateInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateJobTemplateOutput, SdkError<CreateJobTemplateError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateJobTemplateOutput, SdkError<CreateJobTemplateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateJobTemplateInputBuilder
impl Clone for CreateJobTemplateInputBuilder
source§fn clone(&self) -> CreateJobTemplateInputBuilder
fn clone(&self) -> CreateJobTemplateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateJobTemplateInputBuilder
impl Default for CreateJobTemplateInputBuilder
source§fn default() -> CreateJobTemplateInputBuilder
fn default() -> CreateJobTemplateInputBuilder
source§impl PartialEq for CreateJobTemplateInputBuilder
impl PartialEq for CreateJobTemplateInputBuilder
source§fn eq(&self, other: &CreateJobTemplateInputBuilder) -> bool
fn eq(&self, other: &CreateJobTemplateInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.