Struct aws_sdk_imagebuilder::types::builders::ImagePackageBuilder
source · #[non_exhaustive]pub struct ImagePackageBuilder { /* private fields */ }
Expand description
A builder for ImagePackage
.
Implementations§
source§impl ImagePackageBuilder
impl ImagePackageBuilder
sourcepub fn package_name(self, input: impl Into<String>) -> Self
pub fn package_name(self, input: impl Into<String>) -> Self
The name of the package as reported to the operating system package manager.
sourcepub fn set_package_name(self, input: Option<String>) -> Self
pub fn set_package_name(self, input: Option<String>) -> Self
The name of the package as reported to the operating system package manager.
sourcepub fn get_package_name(&self) -> &Option<String>
pub fn get_package_name(&self) -> &Option<String>
The name of the package as reported to the operating system package manager.
sourcepub fn package_version(self, input: impl Into<String>) -> Self
pub fn package_version(self, input: impl Into<String>) -> Self
The version of the package as reported to the operating system package manager.
sourcepub fn set_package_version(self, input: Option<String>) -> Self
pub fn set_package_version(self, input: Option<String>) -> Self
The version of the package as reported to the operating system package manager.
sourcepub fn get_package_version(&self) -> &Option<String>
pub fn get_package_version(&self) -> &Option<String>
The version of the package as reported to the operating system package manager.
sourcepub fn build(self) -> ImagePackage
pub fn build(self) -> ImagePackage
Consumes the builder and constructs a ImagePackage
.
Trait Implementations§
source§impl Clone for ImagePackageBuilder
impl Clone for ImagePackageBuilder
source§fn clone(&self) -> ImagePackageBuilder
fn clone(&self) -> ImagePackageBuilder
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 ImagePackageBuilder
impl Debug for ImagePackageBuilder
source§impl Default for ImagePackageBuilder
impl Default for ImagePackageBuilder
source§fn default() -> ImagePackageBuilder
fn default() -> ImagePackageBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ImagePackageBuilder
impl PartialEq for ImagePackageBuilder
source§fn eq(&self, other: &ImagePackageBuilder) -> bool
fn eq(&self, other: &ImagePackageBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImagePackageBuilder
Auto Trait Implementations§
impl Freeze for ImagePackageBuilder
impl RefUnwindSafe for ImagePackageBuilder
impl Send for ImagePackageBuilder
impl Sync for ImagePackageBuilder
impl Unpin for ImagePackageBuilder
impl UnwindSafe for ImagePackageBuilder
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.