Struct aws_sdk_ec2::operation::describe_volume_attribute::builders::DescribeVolumeAttributeInputBuilder
source · #[non_exhaustive]pub struct DescribeVolumeAttributeInputBuilder { /* private fields */ }
Expand description
A builder for DescribeVolumeAttributeInput
.
Implementations§
source§impl DescribeVolumeAttributeInputBuilder
impl DescribeVolumeAttributeInputBuilder
sourcepub fn attribute(self, input: VolumeAttributeName) -> Self
pub fn attribute(self, input: VolumeAttributeName) -> Self
The attribute of the volume. This parameter is required.
sourcepub fn set_attribute(self, input: Option<VolumeAttributeName>) -> Self
pub fn set_attribute(self, input: Option<VolumeAttributeName>) -> Self
The attribute of the volume. This parameter is required.
sourcepub fn get_attribute(&self) -> &Option<VolumeAttributeName>
pub fn get_attribute(&self) -> &Option<VolumeAttributeName>
The attribute of the volume. This parameter is required.
sourcepub fn set_volume_id(self, input: Option<String>) -> Self
pub fn set_volume_id(self, input: Option<String>) -> Self
The ID of the volume.
sourcepub fn get_volume_id(&self) -> &Option<String>
pub fn get_volume_id(&self) -> &Option<String>
The ID of the volume.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn build(self) -> Result<DescribeVolumeAttributeInput, BuildError>
pub fn build(self) -> Result<DescribeVolumeAttributeInput, BuildError>
Consumes the builder and constructs a DescribeVolumeAttributeInput
.
source§impl DescribeVolumeAttributeInputBuilder
impl DescribeVolumeAttributeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DescribeVolumeAttributeOutput, SdkError<DescribeVolumeAttributeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DescribeVolumeAttributeOutput, SdkError<DescribeVolumeAttributeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DescribeVolumeAttributeInputBuilder
impl Clone for DescribeVolumeAttributeInputBuilder
source§fn clone(&self) -> DescribeVolumeAttributeInputBuilder
fn clone(&self) -> DescribeVolumeAttributeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DescribeVolumeAttributeInputBuilder
impl Default for DescribeVolumeAttributeInputBuilder
source§fn default() -> DescribeVolumeAttributeInputBuilder
fn default() -> DescribeVolumeAttributeInputBuilder
source§impl PartialEq<DescribeVolumeAttributeInputBuilder> for DescribeVolumeAttributeInputBuilder
impl PartialEq<DescribeVolumeAttributeInputBuilder> for DescribeVolumeAttributeInputBuilder
source§fn eq(&self, other: &DescribeVolumeAttributeInputBuilder) -> bool
fn eq(&self, other: &DescribeVolumeAttributeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.