Struct aws_sdk_iot::operation::get_package_version::builders::GetPackageVersionOutputBuilder
source · #[non_exhaustive]pub struct GetPackageVersionOutputBuilder { /* private fields */ }
Expand description
A builder for GetPackageVersionOutput
.
Implementations§
source§impl GetPackageVersionOutputBuilder
impl GetPackageVersionOutputBuilder
sourcepub fn package_version_arn(self, input: impl Into<String>) -> Self
pub fn package_version_arn(self, input: impl Into<String>) -> Self
The ARN for the package version.
sourcepub fn set_package_version_arn(self, input: Option<String>) -> Self
pub fn set_package_version_arn(self, input: Option<String>) -> Self
The ARN for the package version.
sourcepub fn get_package_version_arn(&self) -> &Option<String>
pub fn get_package_version_arn(&self) -> &Option<String>
The ARN for the package version.
sourcepub fn package_name(self, input: impl Into<String>) -> Self
pub fn package_name(self, input: impl Into<String>) -> Self
The name of the software package.
sourcepub fn set_package_name(self, input: Option<String>) -> Self
pub fn set_package_name(self, input: Option<String>) -> Self
The name of the software package.
sourcepub fn get_package_name(&self) -> &Option<String>
pub fn get_package_name(&self) -> &Option<String>
The name of the software package.
sourcepub fn version_name(self, input: impl Into<String>) -> Self
pub fn version_name(self, input: impl Into<String>) -> Self
The name of the package version.
sourcepub fn set_version_name(self, input: Option<String>) -> Self
pub fn set_version_name(self, input: Option<String>) -> Self
The name of the package version.
sourcepub fn get_version_name(&self) -> &Option<String>
pub fn get_version_name(&self) -> &Option<String>
The name of the package version.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The package version description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The package version description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The package version description.
sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to attributes
.
To override the contents of this collection use set_attributes
.
Metadata that were added to the package version that can be used to define a package version’s configuration.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
Metadata that were added to the package version that can be used to define a package version’s configuration.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
Metadata that were added to the package version that can be used to define a package version’s configuration.
sourcepub fn status(self, input: PackageVersionStatus) -> Self
pub fn status(self, input: PackageVersionStatus) -> Self
The status associated to the package version. For more information, see Package version lifecycle.
sourcepub fn set_status(self, input: Option<PackageVersionStatus>) -> Self
pub fn set_status(self, input: Option<PackageVersionStatus>) -> Self
The status associated to the package version. For more information, see Package version lifecycle.
sourcepub fn get_status(&self) -> &Option<PackageVersionStatus>
pub fn get_status(&self) -> &Option<PackageVersionStatus>
The status associated to the package version. For more information, see Package version lifecycle.
sourcepub fn error_reason(self, input: impl Into<String>) -> Self
pub fn error_reason(self, input: impl Into<String>) -> Self
Error reason for a package version failure during creation or update.
sourcepub fn set_error_reason(self, input: Option<String>) -> Self
pub fn set_error_reason(self, input: Option<String>) -> Self
Error reason for a package version failure during creation or update.
sourcepub fn get_error_reason(&self) -> &Option<String>
pub fn get_error_reason(&self) -> &Option<String>
Error reason for a package version failure during creation or update.
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The date when the package version was created.
sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The date when the package version was created.
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The date when the package version was created.
sourcepub fn last_modified_date(self, input: DateTime) -> Self
pub fn last_modified_date(self, input: DateTime) -> Self
The date when the package version was last updated.
sourcepub fn set_last_modified_date(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_date(self, input: Option<DateTime>) -> Self
The date when the package version was last updated.
sourcepub fn get_last_modified_date(&self) -> &Option<DateTime>
pub fn get_last_modified_date(&self) -> &Option<DateTime>
The date when the package version was last updated.
sourcepub fn build(self) -> GetPackageVersionOutput
pub fn build(self) -> GetPackageVersionOutput
Consumes the builder and constructs a GetPackageVersionOutput
.
Trait Implementations§
source§impl Clone for GetPackageVersionOutputBuilder
impl Clone for GetPackageVersionOutputBuilder
source§fn clone(&self) -> GetPackageVersionOutputBuilder
fn clone(&self) -> GetPackageVersionOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetPackageVersionOutputBuilder
impl Default for GetPackageVersionOutputBuilder
source§fn default() -> GetPackageVersionOutputBuilder
fn default() -> GetPackageVersionOutputBuilder
source§impl PartialEq for GetPackageVersionOutputBuilder
impl PartialEq for GetPackageVersionOutputBuilder
source§fn eq(&self, other: &GetPackageVersionOutputBuilder) -> bool
fn eq(&self, other: &GetPackageVersionOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetPackageVersionOutputBuilder
Auto Trait Implementations§
impl Freeze for GetPackageVersionOutputBuilder
impl RefUnwindSafe for GetPackageVersionOutputBuilder
impl Send for GetPackageVersionOutputBuilder
impl Sync for GetPackageVersionOutputBuilder
impl Unpin for GetPackageVersionOutputBuilder
impl UnwindSafe for GetPackageVersionOutputBuilder
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
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>
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>
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 more