Struct aws_sdk_imagebuilder::types::builders::AmiBuilder
source · #[non_exhaustive]pub struct AmiBuilder { /* private fields */ }
Expand description
A builder for Ami
.
Implementations§
source§impl AmiBuilder
impl AmiBuilder
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region of the Amazon EC2 AMI.
sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The Amazon Web Services Region of the Amazon EC2 AMI.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The Amazon Web Services Region of the Amazon EC2 AMI.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
sourcepub fn state(self, input: ImageState) -> Self
pub fn state(self, input: ImageState) -> Self
Image status and the reason for that status.
sourcepub fn set_state(self, input: Option<ImageState>) -> Self
pub fn set_state(self, input: Option<ImageState>) -> Self
Image status and the reason for that status.
sourcepub fn get_state(&self) -> &Option<ImageState>
pub fn get_state(&self) -> &Option<ImageState>
Image status and the reason for that status.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The account ID of the owner of the AMI.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The account ID of the owner of the AMI.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The account ID of the owner of the AMI.
Trait Implementations§
source§impl Clone for AmiBuilder
impl Clone for AmiBuilder
source§fn clone(&self) -> AmiBuilder
fn clone(&self) -> AmiBuilder
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 Debug for AmiBuilder
impl Debug for AmiBuilder
source§impl Default for AmiBuilder
impl Default for AmiBuilder
source§fn default() -> AmiBuilder
fn default() -> AmiBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AmiBuilder
impl PartialEq for AmiBuilder
source§fn eq(&self, other: &AmiBuilder) -> bool
fn eq(&self, other: &AmiBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AmiBuilder
Auto Trait Implementations§
impl Freeze for AmiBuilder
impl RefUnwindSafe for AmiBuilder
impl Send for AmiBuilder
impl Sync for AmiBuilder
impl Unpin for AmiBuilder
impl UnwindSafe for AmiBuilder
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.