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