Struct aws_sdk_codeartifact::operation::dispose_package_versions::builders::DisposePackageVersionsOutputBuilder
source · #[non_exhaustive]pub struct DisposePackageVersionsOutputBuilder { /* private fields */ }
Expand description
A builder for DisposePackageVersionsOutput
.
Implementations§
source§impl DisposePackageVersionsOutputBuilder
impl DisposePackageVersionsOutputBuilder
sourcepub fn successful_versions(
self,
k: impl Into<String>,
v: SuccessfulPackageVersionInfo,
) -> Self
pub fn successful_versions( self, k: impl Into<String>, v: SuccessfulPackageVersionInfo, ) -> Self
Adds a key-value pair to successful_versions
.
To override the contents of this collection use set_successful_versions
.
A list of the package versions that were successfully disposed.
sourcepub fn set_successful_versions(
self,
input: Option<HashMap<String, SuccessfulPackageVersionInfo>>,
) -> Self
pub fn set_successful_versions( self, input: Option<HashMap<String, SuccessfulPackageVersionInfo>>, ) -> Self
A list of the package versions that were successfully disposed.
sourcepub fn get_successful_versions(
&self,
) -> &Option<HashMap<String, SuccessfulPackageVersionInfo>>
pub fn get_successful_versions( &self, ) -> &Option<HashMap<String, SuccessfulPackageVersionInfo>>
A list of the package versions that were successfully disposed.
sourcepub fn failed_versions(
self,
k: impl Into<String>,
v: PackageVersionError,
) -> Self
pub fn failed_versions( self, k: impl Into<String>, v: PackageVersionError, ) -> Self
Adds a key-value pair to failed_versions
.
To override the contents of this collection use set_failed_versions
.
A PackageVersionError
object that contains a map of errors codes for the disposed package versions that failed. The possible error codes are:
-
ALREADY_EXISTS
-
MISMATCHED_REVISION
-
MISMATCHED_STATUS
-
NOT_ALLOWED
-
NOT_FOUND
-
SKIPPED
sourcepub fn set_failed_versions(
self,
input: Option<HashMap<String, PackageVersionError>>,
) -> Self
pub fn set_failed_versions( self, input: Option<HashMap<String, PackageVersionError>>, ) -> Self
A PackageVersionError
object that contains a map of errors codes for the disposed package versions that failed. The possible error codes are:
-
ALREADY_EXISTS
-
MISMATCHED_REVISION
-
MISMATCHED_STATUS
-
NOT_ALLOWED
-
NOT_FOUND
-
SKIPPED
sourcepub fn get_failed_versions(
&self,
) -> &Option<HashMap<String, PackageVersionError>>
pub fn get_failed_versions( &self, ) -> &Option<HashMap<String, PackageVersionError>>
A PackageVersionError
object that contains a map of errors codes for the disposed package versions that failed. The possible error codes are:
-
ALREADY_EXISTS
-
MISMATCHED_REVISION
-
MISMATCHED_STATUS
-
NOT_ALLOWED
-
NOT_FOUND
-
SKIPPED
sourcepub fn build(self) -> DisposePackageVersionsOutput
pub fn build(self) -> DisposePackageVersionsOutput
Consumes the builder and constructs a DisposePackageVersionsOutput
.
Trait Implementations§
source§impl Clone for DisposePackageVersionsOutputBuilder
impl Clone for DisposePackageVersionsOutputBuilder
source§fn clone(&self) -> DisposePackageVersionsOutputBuilder
fn clone(&self) -> DisposePackageVersionsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DisposePackageVersionsOutputBuilder
impl Default for DisposePackageVersionsOutputBuilder
source§fn default() -> DisposePackageVersionsOutputBuilder
fn default() -> DisposePackageVersionsOutputBuilder
source§impl PartialEq for DisposePackageVersionsOutputBuilder
impl PartialEq for DisposePackageVersionsOutputBuilder
source§fn eq(&self, other: &DisposePackageVersionsOutputBuilder) -> bool
fn eq(&self, other: &DisposePackageVersionsOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DisposePackageVersionsOutputBuilder
Auto Trait Implementations§
impl Freeze for DisposePackageVersionsOutputBuilder
impl RefUnwindSafe for DisposePackageVersionsOutputBuilder
impl Send for DisposePackageVersionsOutputBuilder
impl Sync for DisposePackageVersionsOutputBuilder
impl Unpin for DisposePackageVersionsOutputBuilder
impl UnwindSafe for DisposePackageVersionsOutputBuilder
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