Struct aws_sdk_amplify::types::builders::JobSummaryBuilder
source · #[non_exhaustive]pub struct JobSummaryBuilder { /* private fields */ }Expand description
A builder for JobSummary.
Implementations§
source§impl JobSummaryBuilder
impl JobSummaryBuilder
sourcepub fn job_arn(self, input: impl Into<String>) -> Self
pub fn job_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the job.
This field is required.sourcepub fn set_job_arn(self, input: Option<String>) -> Self
pub fn set_job_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the job.
sourcepub fn get_job_arn(&self) -> &Option<String>
pub fn get_job_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the job.
sourcepub fn job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
The unique ID for the job.
This field is required.sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The unique ID for the job.
sourcepub fn get_job_id(&self) -> &Option<String>
pub fn get_job_id(&self) -> &Option<String>
The unique ID for the job.
sourcepub fn commit_id(self, input: impl Into<String>) -> Self
pub fn commit_id(self, input: impl Into<String>) -> Self
The commit ID from a third-party repository provider for the job.
This field is required.sourcepub fn set_commit_id(self, input: Option<String>) -> Self
pub fn set_commit_id(self, input: Option<String>) -> Self
The commit ID from a third-party repository provider for the job.
sourcepub fn get_commit_id(&self) -> &Option<String>
pub fn get_commit_id(&self) -> &Option<String>
The commit ID from a third-party repository provider for the job.
sourcepub fn commit_message(self, input: impl Into<String>) -> Self
pub fn commit_message(self, input: impl Into<String>) -> Self
The commit message from a third-party repository provider for the job.
This field is required.sourcepub fn set_commit_message(self, input: Option<String>) -> Self
pub fn set_commit_message(self, input: Option<String>) -> Self
The commit message from a third-party repository provider for the job.
sourcepub fn get_commit_message(&self) -> &Option<String>
pub fn get_commit_message(&self) -> &Option<String>
The commit message from a third-party repository provider for the job.
sourcepub fn commit_time(self, input: DateTime) -> Self
pub fn commit_time(self, input: DateTime) -> Self
The commit date and time for the job.
This field is required.sourcepub fn set_commit_time(self, input: Option<DateTime>) -> Self
pub fn set_commit_time(self, input: Option<DateTime>) -> Self
The commit date and time for the job.
sourcepub fn get_commit_time(&self) -> &Option<DateTime>
pub fn get_commit_time(&self) -> &Option<DateTime>
The commit date and time for the job.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The start date and time for the job.
This field is required.sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The start date and time for the job.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The start date and time for the job.
sourcepub fn status(self, input: JobStatus) -> Self
pub fn status(self, input: JobStatus) -> Self
The current status for the job.
This field is required.sourcepub fn set_status(self, input: Option<JobStatus>) -> Self
pub fn set_status(self, input: Option<JobStatus>) -> Self
The current status for the job.
sourcepub fn get_status(&self) -> &Option<JobStatus>
pub fn get_status(&self) -> &Option<JobStatus>
The current status for the job.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The end date and time for the job.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The end date and time for the job.
sourcepub fn job_type(self, input: JobType) -> Self
pub fn job_type(self, input: JobType) -> Self
The type for the job. If the value is RELEASE, the job was manually released from its source by using the StartJob API. If the value is RETRY, the job was manually retried using the StartJob API. If the value is WEB_HOOK, the job was automatically triggered by webhooks.
sourcepub fn set_job_type(self, input: Option<JobType>) -> Self
pub fn set_job_type(self, input: Option<JobType>) -> Self
The type for the job. If the value is RELEASE, the job was manually released from its source by using the StartJob API. If the value is RETRY, the job was manually retried using the StartJob API. If the value is WEB_HOOK, the job was automatically triggered by webhooks.
sourcepub fn get_job_type(&self) -> &Option<JobType>
pub fn get_job_type(&self) -> &Option<JobType>
The type for the job. If the value is RELEASE, the job was manually released from its source by using the StartJob API. If the value is RETRY, the job was manually retried using the StartJob API. If the value is WEB_HOOK, the job was automatically triggered by webhooks.
sourcepub fn build(self) -> Result<JobSummary, BuildError>
pub fn build(self) -> Result<JobSummary, BuildError>
Consumes the builder and constructs a JobSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for JobSummaryBuilder
impl Clone for JobSummaryBuilder
source§fn clone(&self) -> JobSummaryBuilder
fn clone(&self) -> JobSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for JobSummaryBuilder
impl Debug for JobSummaryBuilder
source§impl Default for JobSummaryBuilder
impl Default for JobSummaryBuilder
source§fn default() -> JobSummaryBuilder
fn default() -> JobSummaryBuilder
source§impl PartialEq for JobSummaryBuilder
impl PartialEq for JobSummaryBuilder
source§fn eq(&self, other: &JobSummaryBuilder) -> bool
fn eq(&self, other: &JobSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.