Struct aws_sdk_accessanalyzer::types::builders::JobDetailsBuilder
source · #[non_exhaustive]pub struct JobDetailsBuilder { /* private fields */ }Expand description
A builder for JobDetails.
Implementations§
source§impl JobDetailsBuilder
impl JobDetailsBuilder
sourcepub fn job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
sourcepub fn get_job_id(&self) -> &Option<String>
pub fn get_job_id(&self) -> &Option<String>
The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
sourcepub fn status(self, input: JobStatus) -> Self
pub fn status(self, input: JobStatus) -> Self
The status of the job request.
This field is required.sourcepub fn set_status(self, input: Option<JobStatus>) -> Self
pub fn set_status(self, input: Option<JobStatus>) -> Self
The status of the job request.
sourcepub fn get_status(&self) -> &Option<JobStatus>
pub fn get_status(&self) -> &Option<JobStatus>
The status of the job request.
sourcepub fn started_on(self, input: DateTime) -> Self
pub fn started_on(self, input: DateTime) -> Self
A timestamp of when the job was started.
This field is required.sourcepub fn set_started_on(self, input: Option<DateTime>) -> Self
pub fn set_started_on(self, input: Option<DateTime>) -> Self
A timestamp of when the job was started.
sourcepub fn get_started_on(&self) -> &Option<DateTime>
pub fn get_started_on(&self) -> &Option<DateTime>
A timestamp of when the job was started.
sourcepub fn completed_on(self, input: DateTime) -> Self
pub fn completed_on(self, input: DateTime) -> Self
A timestamp of when the job was completed.
sourcepub fn set_completed_on(self, input: Option<DateTime>) -> Self
pub fn set_completed_on(self, input: Option<DateTime>) -> Self
A timestamp of when the job was completed.
sourcepub fn get_completed_on(&self) -> &Option<DateTime>
pub fn get_completed_on(&self) -> &Option<DateTime>
A timestamp of when the job was completed.
sourcepub fn job_error(self, input: JobError) -> Self
pub fn job_error(self, input: JobError) -> Self
The job error for the policy generation request.
sourcepub fn set_job_error(self, input: Option<JobError>) -> Self
pub fn set_job_error(self, input: Option<JobError>) -> Self
The job error for the policy generation request.
sourcepub fn get_job_error(&self) -> &Option<JobError>
pub fn get_job_error(&self) -> &Option<JobError>
The job error for the policy generation request.
sourcepub fn build(self) -> Result<JobDetails, BuildError>
pub fn build(self) -> Result<JobDetails, BuildError>
Consumes the builder and constructs a JobDetails.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for JobDetailsBuilder
impl Clone for JobDetailsBuilder
source§fn clone(&self) -> JobDetailsBuilder
fn clone(&self) -> JobDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for JobDetailsBuilder
impl Debug for JobDetailsBuilder
source§impl Default for JobDetailsBuilder
impl Default for JobDetailsBuilder
source§fn default() -> JobDetailsBuilder
fn default() -> JobDetailsBuilder
source§impl PartialEq for JobDetailsBuilder
impl PartialEq for JobDetailsBuilder
source§fn eq(&self, other: &JobDetailsBuilder) -> bool
fn eq(&self, other: &JobDetailsBuilder) -> bool
self and other values to be equal, and is used
by ==.