#[non_exhaustive]pub struct EnableImageInputBuilder { /* private fields */ }
Expand description
A builder for EnableImageInput
.
Implementations§
source§impl EnableImageInputBuilder
impl EnableImageInputBuilder
sourcepub fn image_id(self, input: impl Into<String>) -> Self
pub fn image_id(self, input: impl Into<String>) -> Self
The ID of the AMI.
This field is required.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<EnableImageInput, BuildError>
pub fn build(self) -> Result<EnableImageInput, BuildError>
Consumes the builder and constructs a EnableImageInput
.
source§impl EnableImageInputBuilder
impl EnableImageInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<EnableImageOutput, SdkError<EnableImageError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<EnableImageOutput, SdkError<EnableImageError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for EnableImageInputBuilder
impl Clone for EnableImageInputBuilder
source§fn clone(&self) -> EnableImageInputBuilder
fn clone(&self) -> EnableImageInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnableImageInputBuilder
impl Debug for EnableImageInputBuilder
source§impl Default for EnableImageInputBuilder
impl Default for EnableImageInputBuilder
source§fn default() -> EnableImageInputBuilder
fn default() -> EnableImageInputBuilder
source§impl PartialEq for EnableImageInputBuilder
impl PartialEq for EnableImageInputBuilder
source§fn eq(&self, other: &EnableImageInputBuilder) -> bool
fn eq(&self, other: &EnableImageInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.