#[non_exhaustive]pub struct PolicyGenerationBuilder { /* private fields */ }Expand description
A builder for PolicyGeneration.
Implementations§
source§impl PolicyGenerationBuilder
impl PolicyGenerationBuilder
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 principal_arn(self, input: impl Into<String>) -> Self
pub fn principal_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM entity (user or role) for which you are generating a policy.
This field is required.sourcepub fn set_principal_arn(self, input: Option<String>) -> Self
pub fn set_principal_arn(self, input: Option<String>) -> Self
The ARN of the IAM entity (user or role) for which you are generating a policy.
sourcepub fn get_principal_arn(&self) -> &Option<String>
pub fn get_principal_arn(&self) -> &Option<String>
The ARN of the IAM entity (user or role) for which you are generating a policy.
sourcepub fn status(self, input: JobStatus) -> Self
pub fn status(self, input: JobStatus) -> Self
The status of the policy generation 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 policy generation request.
sourcepub fn get_status(&self) -> &Option<JobStatus>
pub fn get_status(&self) -> &Option<JobStatus>
The status of the policy generation request.
sourcepub fn started_on(self, input: DateTime) -> Self
pub fn started_on(self, input: DateTime) -> Self
A timestamp of when the policy generation 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 policy generation started.
sourcepub fn get_started_on(&self) -> &Option<DateTime>
pub fn get_started_on(&self) -> &Option<DateTime>
A timestamp of when the policy generation started.
sourcepub fn completed_on(self, input: DateTime) -> Self
pub fn completed_on(self, input: DateTime) -> Self
A timestamp of when the policy generation 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 policy generation was completed.
sourcepub fn get_completed_on(&self) -> &Option<DateTime>
pub fn get_completed_on(&self) -> &Option<DateTime>
A timestamp of when the policy generation was completed.
sourcepub fn build(self) -> Result<PolicyGeneration, BuildError>
pub fn build(self) -> Result<PolicyGeneration, BuildError>
Consumes the builder and constructs a PolicyGeneration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PolicyGenerationBuilder
impl Clone for PolicyGenerationBuilder
source§fn clone(&self) -> PolicyGenerationBuilder
fn clone(&self) -> PolicyGenerationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PolicyGenerationBuilder
impl Debug for PolicyGenerationBuilder
source§impl Default for PolicyGenerationBuilder
impl Default for PolicyGenerationBuilder
source§fn default() -> PolicyGenerationBuilder
fn default() -> PolicyGenerationBuilder
source§impl PartialEq for PolicyGenerationBuilder
impl PartialEq for PolicyGenerationBuilder
source§fn eq(&self, other: &PolicyGenerationBuilder) -> bool
fn eq(&self, other: &PolicyGenerationBuilder) -> bool
self and other values to be equal, and is used
by ==.