Struct aws_sdk_ec2::operation::get_snapshot_block_public_access_state::builders::GetSnapshotBlockPublicAccessStateOutputBuilder
source · #[non_exhaustive]pub struct GetSnapshotBlockPublicAccessStateOutputBuilder { /* private fields */ }Expand description
A builder for GetSnapshotBlockPublicAccessStateOutput.
Implementations§
source§impl GetSnapshotBlockPublicAccessStateOutputBuilder
impl GetSnapshotBlockPublicAccessStateOutputBuilder
sourcepub fn state(self, input: SnapshotBlockPublicAccessState) -> Self
pub fn state(self, input: SnapshotBlockPublicAccessState) -> Self
The current state of block public access for snapshots. Possible values include:
-
block-all-sharing- All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available. -
block-new-sharing- Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available. -
unblocked- Public sharing is not blocked. Users can publicly share snapshots.
sourcepub fn set_state(self, input: Option<SnapshotBlockPublicAccessState>) -> Self
pub fn set_state(self, input: Option<SnapshotBlockPublicAccessState>) -> Self
The current state of block public access for snapshots. Possible values include:
-
block-all-sharing- All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available. -
block-new-sharing- Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available. -
unblocked- Public sharing is not blocked. Users can publicly share snapshots.
sourcepub fn get_state(&self) -> &Option<SnapshotBlockPublicAccessState>
pub fn get_state(&self) -> &Option<SnapshotBlockPublicAccessState>
The current state of block public access for snapshots. Possible values include:
-
block-all-sharing- All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available. -
block-new-sharing- Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available. -
unblocked- Public sharing is not blocked. Users can publicly share snapshots.
sourcepub fn build(self) -> GetSnapshotBlockPublicAccessStateOutput
pub fn build(self) -> GetSnapshotBlockPublicAccessStateOutput
Consumes the builder and constructs a GetSnapshotBlockPublicAccessStateOutput.
Trait Implementations§
source§impl Clone for GetSnapshotBlockPublicAccessStateOutputBuilder
impl Clone for GetSnapshotBlockPublicAccessStateOutputBuilder
source§fn clone(&self) -> GetSnapshotBlockPublicAccessStateOutputBuilder
fn clone(&self) -> GetSnapshotBlockPublicAccessStateOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GetSnapshotBlockPublicAccessStateOutputBuilder
impl Default for GetSnapshotBlockPublicAccessStateOutputBuilder
source§fn default() -> GetSnapshotBlockPublicAccessStateOutputBuilder
fn default() -> GetSnapshotBlockPublicAccessStateOutputBuilder
source§impl PartialEq for GetSnapshotBlockPublicAccessStateOutputBuilder
impl PartialEq for GetSnapshotBlockPublicAccessStateOutputBuilder
source§fn eq(&self, other: &GetSnapshotBlockPublicAccessStateOutputBuilder) -> bool
fn eq(&self, other: &GetSnapshotBlockPublicAccessStateOutputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetSnapshotBlockPublicAccessStateOutputBuilder
Auto Trait Implementations§
impl Freeze for GetSnapshotBlockPublicAccessStateOutputBuilder
impl RefUnwindSafe for GetSnapshotBlockPublicAccessStateOutputBuilder
impl Send for GetSnapshotBlockPublicAccessStateOutputBuilder
impl Sync for GetSnapshotBlockPublicAccessStateOutputBuilder
impl Unpin for GetSnapshotBlockPublicAccessStateOutputBuilder
impl UnwindSafe for GetSnapshotBlockPublicAccessStateOutputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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