Struct aws_sdk_ec2::operation::reset_image_attribute::builders::ResetImageAttributeInputBuilder
source · #[non_exhaustive]pub struct ResetImageAttributeInputBuilder { /* private fields */ }
Expand description
A builder for ResetImageAttributeInput
.
Implementations§
source§impl ResetImageAttributeInputBuilder
impl ResetImageAttributeInputBuilder
sourcepub fn attribute(self, input: ResetImageAttributeName) -> Self
pub fn attribute(self, input: ResetImageAttributeName) -> Self
The attribute to reset (currently you can only reset the launch permission attribute).
sourcepub fn set_attribute(self, input: Option<ResetImageAttributeName>) -> Self
pub fn set_attribute(self, input: Option<ResetImageAttributeName>) -> Self
The attribute to reset (currently you can only reset the launch permission attribute).
sourcepub fn get_attribute(&self) -> &Option<ResetImageAttributeName>
pub fn get_attribute(&self) -> &Option<ResetImageAttributeName>
The attribute to reset (currently you can only reset the launch permission attribute).
sourcepub fn set_image_id(self, input: Option<String>) -> Self
pub fn set_image_id(self, input: Option<String>) -> Self
The ID of the AMI.
sourcepub fn get_image_id(&self) -> &Option<String>
pub fn get_image_id(&self) -> &Option<String>
The ID of the AMI.
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<ResetImageAttributeInput, BuildError>
pub fn build(self) -> Result<ResetImageAttributeInput, BuildError>
Consumes the builder and constructs a ResetImageAttributeInput
.
source§impl ResetImageAttributeInputBuilder
impl ResetImageAttributeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ResetImageAttributeOutput, SdkError<ResetImageAttributeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ResetImageAttributeOutput, SdkError<ResetImageAttributeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ResetImageAttributeInputBuilder
impl Clone for ResetImageAttributeInputBuilder
source§fn clone(&self) -> ResetImageAttributeInputBuilder
fn clone(&self) -> ResetImageAttributeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResetImageAttributeInputBuilder
impl Default for ResetImageAttributeInputBuilder
source§fn default() -> ResetImageAttributeInputBuilder
fn default() -> ResetImageAttributeInputBuilder
source§impl PartialEq<ResetImageAttributeInputBuilder> for ResetImageAttributeInputBuilder
impl PartialEq<ResetImageAttributeInputBuilder> for ResetImageAttributeInputBuilder
source§fn eq(&self, other: &ResetImageAttributeInputBuilder) -> bool
fn eq(&self, other: &ResetImageAttributeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.