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
impl StructuralPartialEq for JobSummaryBuilder
Auto Trait Implementations§
impl Freeze for JobSummaryBuilder
impl RefUnwindSafe for JobSummaryBuilder
impl Send for JobSummaryBuilder
impl Sync for JobSummaryBuilder
impl Unpin for JobSummaryBuilder
impl UnwindSafe for JobSummaryBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more