Struct aws_sdk_accessanalyzer::operation::check_no_public_access::builders::CheckNoPublicAccessOutputBuilder
source · #[non_exhaustive]pub struct CheckNoPublicAccessOutputBuilder { /* private fields */ }
Expand description
A builder for CheckNoPublicAccessOutput
.
Implementations§
source§impl CheckNoPublicAccessOutputBuilder
impl CheckNoPublicAccessOutputBuilder
sourcepub fn result(self, input: CheckNoPublicAccessResult) -> Self
pub fn result(self, input: CheckNoPublicAccessResult) -> Self
The result of the check for public access to the specified resource type. If the result is PASS
, the policy doesn't allow public access to the specified resource type. If the result is FAIL
, the policy might allow public access to the specified resource type.
sourcepub fn set_result(self, input: Option<CheckNoPublicAccessResult>) -> Self
pub fn set_result(self, input: Option<CheckNoPublicAccessResult>) -> Self
The result of the check for public access to the specified resource type. If the result is PASS
, the policy doesn't allow public access to the specified resource type. If the result is FAIL
, the policy might allow public access to the specified resource type.
sourcepub fn get_result(&self) -> &Option<CheckNoPublicAccessResult>
pub fn get_result(&self) -> &Option<CheckNoPublicAccessResult>
The result of the check for public access to the specified resource type. If the result is PASS
, the policy doesn't allow public access to the specified resource type. If the result is FAIL
, the policy might allow public access to the specified resource type.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
The message indicating whether the specified policy allows public access to resources.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The message indicating whether the specified policy allows public access to resources.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The message indicating whether the specified policy allows public access to resources.
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 list of reasons why the specified resource policy grants public access for the resource type.
sourcepub fn set_reasons(self, input: Option<Vec<ReasonSummary>>) -> Self
pub fn set_reasons(self, input: Option<Vec<ReasonSummary>>) -> Self
A list of reasons why the specified resource policy grants public access for the resource type.
sourcepub fn get_reasons(&self) -> &Option<Vec<ReasonSummary>>
pub fn get_reasons(&self) -> &Option<Vec<ReasonSummary>>
A list of reasons why the specified resource policy grants public access for the resource type.
sourcepub fn build(self) -> CheckNoPublicAccessOutput
pub fn build(self) -> CheckNoPublicAccessOutput
Consumes the builder and constructs a CheckNoPublicAccessOutput
.
Trait Implementations§
source§impl Clone for CheckNoPublicAccessOutputBuilder
impl Clone for CheckNoPublicAccessOutputBuilder
source§fn clone(&self) -> CheckNoPublicAccessOutputBuilder
fn clone(&self) -> CheckNoPublicAccessOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CheckNoPublicAccessOutputBuilder
impl Default for CheckNoPublicAccessOutputBuilder
source§fn default() -> CheckNoPublicAccessOutputBuilder
fn default() -> CheckNoPublicAccessOutputBuilder
source§impl PartialEq for CheckNoPublicAccessOutputBuilder
impl PartialEq for CheckNoPublicAccessOutputBuilder
source§fn eq(&self, other: &CheckNoPublicAccessOutputBuilder) -> bool
fn eq(&self, other: &CheckNoPublicAccessOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CheckNoPublicAccessOutputBuilder
Auto Trait Implementations§
impl Freeze for CheckNoPublicAccessOutputBuilder
impl RefUnwindSafe for CheckNoPublicAccessOutputBuilder
impl Send for CheckNoPublicAccessOutputBuilder
impl Sync for CheckNoPublicAccessOutputBuilder
impl Unpin for CheckNoPublicAccessOutputBuilder
impl UnwindSafe for CheckNoPublicAccessOutputBuilder
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