Struct aws_sdk_iot::operation::create_package_version::builders::CreatePackageVersionOutputBuilder
source · #[non_exhaustive]pub struct CreatePackageVersionOutputBuilder { /* private fields */ }
Expand description
A builder for CreatePackageVersionOutput
.
Implementations§
source§impl CreatePackageVersionOutputBuilder
impl CreatePackageVersionOutputBuilder
sourcepub fn package_version_arn(self, input: impl Into<String>) -> Self
pub fn package_version_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the package.
sourcepub fn set_package_version_arn(self, input: Option<String>) -> Self
pub fn set_package_version_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the package.
sourcepub fn get_package_version_arn(&self) -> &Option<String>
pub fn get_package_version_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the package.
sourcepub fn package_name(self, input: impl Into<String>) -> Self
pub fn package_name(self, input: impl Into<String>) -> Self
The name of the associated 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 associated software package.
sourcepub fn get_package_name(&self) -> &Option<String>
pub fn get_package_name(&self) -> &Option<String>
The name of the associated 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 new 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 new package version.
sourcepub fn get_version_name(&self) -> &Option<String>
pub fn get_version_name(&self) -> &Option<String>
The name of the new 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 of 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 of 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 of 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 build(self) -> CreatePackageVersionOutput
pub fn build(self) -> CreatePackageVersionOutput
Consumes the builder and constructs a CreatePackageVersionOutput
.
Trait Implementations§
source§impl Clone for CreatePackageVersionOutputBuilder
impl Clone for CreatePackageVersionOutputBuilder
source§fn clone(&self) -> CreatePackageVersionOutputBuilder
fn clone(&self) -> CreatePackageVersionOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreatePackageVersionOutputBuilder
impl Default for CreatePackageVersionOutputBuilder
source§fn default() -> CreatePackageVersionOutputBuilder
fn default() -> CreatePackageVersionOutputBuilder
source§impl PartialEq for CreatePackageVersionOutputBuilder
impl PartialEq for CreatePackageVersionOutputBuilder
source§fn eq(&self, other: &CreatePackageVersionOutputBuilder) -> bool
fn eq(&self, other: &CreatePackageVersionOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreatePackageVersionOutputBuilder
Auto Trait Implementations§
impl Freeze for CreatePackageVersionOutputBuilder
impl RefUnwindSafe for CreatePackageVersionOutputBuilder
impl Send for CreatePackageVersionOutputBuilder
impl Sync for CreatePackageVersionOutputBuilder
impl Unpin for CreatePackageVersionOutputBuilder
impl UnwindSafe for CreatePackageVersionOutputBuilder
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