#[non_exhaustive]pub struct GetUserPolicyOutputBuilder { /* private fields */ }Expand description
A builder for GetUserPolicyOutput.
Implementations§
source§impl GetUserPolicyOutputBuilder
impl GetUserPolicyOutputBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The user the policy is associated with.
This field is required.sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The user the policy is associated with.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The user the policy is associated with.
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the policy.
This field is required.sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the policy.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the policy.
sourcepub fn policy_document(self, input: impl Into<String>) -> Self
pub fn policy_document(self, input: impl Into<String>) -> Self
The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
This field is required.sourcepub fn set_policy_document(self, input: Option<String>) -> Self
pub fn set_policy_document(self, input: Option<String>) -> Self
The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
sourcepub fn get_policy_document(&self) -> &Option<String>
pub fn get_policy_document(&self) -> &Option<String>
The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
sourcepub fn build(self) -> Result<GetUserPolicyOutput, BuildError>
pub fn build(self) -> Result<GetUserPolicyOutput, BuildError>
Consumes the builder and constructs a GetUserPolicyOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetUserPolicyOutputBuilder
impl Clone for GetUserPolicyOutputBuilder
source§fn clone(&self) -> GetUserPolicyOutputBuilder
fn clone(&self) -> GetUserPolicyOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetUserPolicyOutputBuilder
impl Debug for GetUserPolicyOutputBuilder
source§impl Default for GetUserPolicyOutputBuilder
impl Default for GetUserPolicyOutputBuilder
source§fn default() -> GetUserPolicyOutputBuilder
fn default() -> GetUserPolicyOutputBuilder
source§impl PartialEq for GetUserPolicyOutputBuilder
impl PartialEq for GetUserPolicyOutputBuilder
source§fn eq(&self, other: &GetUserPolicyOutputBuilder) -> bool
fn eq(&self, other: &GetUserPolicyOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GetUserPolicyOutputBuilder
Auto Trait Implementations§
impl Freeze for GetUserPolicyOutputBuilder
impl RefUnwindSafe for GetUserPolicyOutputBuilder
impl Send for GetUserPolicyOutputBuilder
impl Sync for GetUserPolicyOutputBuilder
impl Unpin for GetUserPolicyOutputBuilder
impl UnwindSafe for GetUserPolicyOutputBuilder
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> 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