#[non_exhaustive]pub struct PolicyGenerationDetailsBuilder { /* private fields */ }Expand description
A builder for PolicyGenerationDetails.
Implementations§
source§impl PolicyGenerationDetailsBuilder
impl PolicyGenerationDetailsBuilder
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 build(self) -> Result<PolicyGenerationDetails, BuildError>
pub fn build(self) -> Result<PolicyGenerationDetails, BuildError>
Consumes the builder and constructs a PolicyGenerationDetails.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PolicyGenerationDetailsBuilder
impl Clone for PolicyGenerationDetailsBuilder
source§fn clone(&self) -> PolicyGenerationDetailsBuilder
fn clone(&self) -> PolicyGenerationDetailsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for PolicyGenerationDetailsBuilder
impl Default for PolicyGenerationDetailsBuilder
source§fn default() -> PolicyGenerationDetailsBuilder
fn default() -> PolicyGenerationDetailsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PolicyGenerationDetailsBuilder
impl PartialEq for PolicyGenerationDetailsBuilder
source§fn eq(&self, other: &PolicyGenerationDetailsBuilder) -> bool
fn eq(&self, other: &PolicyGenerationDetailsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PolicyGenerationDetailsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PolicyGenerationDetailsBuilder
impl Send for PolicyGenerationDetailsBuilder
impl Sync for PolicyGenerationDetailsBuilder
impl Unpin for PolicyGenerationDetailsBuilder
impl UnwindSafe for PolicyGenerationDetailsBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.