#[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 ==
.