Struct aws_sdk_accessanalyzer::operation::check_access_not_granted::builders::CheckAccessNotGrantedOutputBuilder
source · #[non_exhaustive]pub struct CheckAccessNotGrantedOutputBuilder { /* private fields */ }
Expand description
A builder for CheckAccessNotGrantedOutput
.
Implementations§
source§impl CheckAccessNotGrantedOutputBuilder
impl CheckAccessNotGrantedOutputBuilder
sourcepub fn result(self, input: CheckAccessNotGrantedResult) -> Self
pub fn result(self, input: CheckAccessNotGrantedResult) -> Self
The result of the check for whether the access is allowed. If the result is PASS
, the specified policy doesn't allow any of the specified permissions in the access object. If the result is FAIL
, the specified policy might allow some or all of the permissions in the access object.
sourcepub fn set_result(self, input: Option<CheckAccessNotGrantedResult>) -> Self
pub fn set_result(self, input: Option<CheckAccessNotGrantedResult>) -> Self
The result of the check for whether the access is allowed. If the result is PASS
, the specified policy doesn't allow any of the specified permissions in the access object. If the result is FAIL
, the specified policy might allow some or all of the permissions in the access object.
sourcepub fn get_result(&self) -> &Option<CheckAccessNotGrantedResult>
pub fn get_result(&self) -> &Option<CheckAccessNotGrantedResult>
The result of the check for whether the access is allowed. If the result is PASS
, the specified policy doesn't allow any of the specified permissions in the access object. If the result is FAIL
, the specified policy might allow some or all of the permissions in the access object.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
The message indicating whether the specified access is allowed.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The message indicating whether the specified access is allowed.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The message indicating whether the specified access is allowed.
sourcepub fn reasons(self, input: ReasonSummary) -> Self
pub fn reasons(self, input: ReasonSummary) -> Self
Appends an item to reasons
.
To override the contents of this collection use set_reasons
.
A description of the reasoning of the result.
sourcepub fn set_reasons(self, input: Option<Vec<ReasonSummary>>) -> Self
pub fn set_reasons(self, input: Option<Vec<ReasonSummary>>) -> Self
A description of the reasoning of the result.
sourcepub fn get_reasons(&self) -> &Option<Vec<ReasonSummary>>
pub fn get_reasons(&self) -> &Option<Vec<ReasonSummary>>
A description of the reasoning of the result.
sourcepub fn build(self) -> CheckAccessNotGrantedOutput
pub fn build(self) -> CheckAccessNotGrantedOutput
Consumes the builder and constructs a CheckAccessNotGrantedOutput
.
Trait Implementations§
source§impl Clone for CheckAccessNotGrantedOutputBuilder
impl Clone for CheckAccessNotGrantedOutputBuilder
source§fn clone(&self) -> CheckAccessNotGrantedOutputBuilder
fn clone(&self) -> CheckAccessNotGrantedOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CheckAccessNotGrantedOutputBuilder
impl Default for CheckAccessNotGrantedOutputBuilder
source§fn default() -> CheckAccessNotGrantedOutputBuilder
fn default() -> CheckAccessNotGrantedOutputBuilder
source§impl PartialEq for CheckAccessNotGrantedOutputBuilder
impl PartialEq for CheckAccessNotGrantedOutputBuilder
source§fn eq(&self, other: &CheckAccessNotGrantedOutputBuilder) -> bool
fn eq(&self, other: &CheckAccessNotGrantedOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CheckAccessNotGrantedOutputBuilder
Auto Trait Implementations§
impl Freeze for CheckAccessNotGrantedOutputBuilder
impl RefUnwindSafe for CheckAccessNotGrantedOutputBuilder
impl Send for CheckAccessNotGrantedOutputBuilder
impl Sync for CheckAccessNotGrantedOutputBuilder
impl Unpin for CheckAccessNotGrantedOutputBuilder
impl UnwindSafe for CheckAccessNotGrantedOutputBuilder
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