Struct aws_sdk_ec2::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeOutputBuilder
source · #[non_exhaustive]pub struct DescribeSnapshotAttributeOutputBuilder { /* private fields */ }Expand description
A builder for DescribeSnapshotAttributeOutput.
Implementations§
source§impl DescribeSnapshotAttributeOutputBuilder
impl DescribeSnapshotAttributeOutputBuilder
sourcepub fn create_volume_permissions(self, input: CreateVolumePermission) -> Self
pub fn create_volume_permissions(self, input: CreateVolumePermission) -> Self
Appends an item to create_volume_permissions.
To override the contents of this collection use set_create_volume_permissions.
The users and groups that have the permissions for creating volumes from the snapshot.
sourcepub fn set_create_volume_permissions(
self,
input: Option<Vec<CreateVolumePermission>>
) -> Self
pub fn set_create_volume_permissions( self, input: Option<Vec<CreateVolumePermission>> ) -> Self
The users and groups that have the permissions for creating volumes from the snapshot.
sourcepub fn get_create_volume_permissions(
&self
) -> &Option<Vec<CreateVolumePermission>>
pub fn get_create_volume_permissions( &self ) -> &Option<Vec<CreateVolumePermission>>
The users and groups that have the permissions for creating volumes from the snapshot.
sourcepub fn product_codes(self, input: ProductCode) -> Self
pub fn product_codes(self, input: ProductCode) -> Self
Appends an item to product_codes.
To override the contents of this collection use set_product_codes.
The product codes.
sourcepub fn set_product_codes(self, input: Option<Vec<ProductCode>>) -> Self
pub fn set_product_codes(self, input: Option<Vec<ProductCode>>) -> Self
The product codes.
sourcepub fn get_product_codes(&self) -> &Option<Vec<ProductCode>>
pub fn get_product_codes(&self) -> &Option<Vec<ProductCode>>
The product codes.
sourcepub fn snapshot_id(self, input: impl Into<String>) -> Self
pub fn snapshot_id(self, input: impl Into<String>) -> Self
The ID of the EBS snapshot.
sourcepub fn set_snapshot_id(self, input: Option<String>) -> Self
pub fn set_snapshot_id(self, input: Option<String>) -> Self
The ID of the EBS snapshot.
sourcepub fn get_snapshot_id(&self) -> &Option<String>
pub fn get_snapshot_id(&self) -> &Option<String>
The ID of the EBS snapshot.
sourcepub fn build(self) -> DescribeSnapshotAttributeOutput
pub fn build(self) -> DescribeSnapshotAttributeOutput
Consumes the builder and constructs a DescribeSnapshotAttributeOutput.
Trait Implementations§
source§impl Clone for DescribeSnapshotAttributeOutputBuilder
impl Clone for DescribeSnapshotAttributeOutputBuilder
source§fn clone(&self) -> DescribeSnapshotAttributeOutputBuilder
fn clone(&self) -> DescribeSnapshotAttributeOutputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for DescribeSnapshotAttributeOutputBuilder
impl Default for DescribeSnapshotAttributeOutputBuilder
source§fn default() -> DescribeSnapshotAttributeOutputBuilder
fn default() -> DescribeSnapshotAttributeOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DescribeSnapshotAttributeOutputBuilder
impl PartialEq for DescribeSnapshotAttributeOutputBuilder
source§fn eq(&self, other: &DescribeSnapshotAttributeOutputBuilder) -> bool
fn eq(&self, other: &DescribeSnapshotAttributeOutputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DescribeSnapshotAttributeOutputBuilder
Auto Trait Implementations§
impl Freeze for DescribeSnapshotAttributeOutputBuilder
impl RefUnwindSafe for DescribeSnapshotAttributeOutputBuilder
impl Send for DescribeSnapshotAttributeOutputBuilder
impl Sync for DescribeSnapshotAttributeOutputBuilder
impl Unpin for DescribeSnapshotAttributeOutputBuilder
impl UnwindSafe for DescribeSnapshotAttributeOutputBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.