Struct aws_sdk_codeartifact::operation::delete_package_versions::builders::DeletePackageVersionsOutputBuilder
source · #[non_exhaustive]pub struct DeletePackageVersionsOutputBuilder { /* private fields */ }
Expand description
A builder for DeletePackageVersionsOutput
.
Implementations§
source§impl DeletePackageVersionsOutputBuilder
impl DeletePackageVersionsOutputBuilder
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 deleted. The status of every successful version will be Deleted
.
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 deleted. The status of every successful version will be Deleted
.
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 deleted. The status of every successful version will be Deleted
.
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 deleted package 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 deleted package 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 deleted package that failed. The possible error codes are:
-
ALREADY_EXISTS
-
MISMATCHED_REVISION
-
MISMATCHED_STATUS
-
NOT_ALLOWED
-
NOT_FOUND
-
SKIPPED
sourcepub fn build(self) -> DeletePackageVersionsOutput
pub fn build(self) -> DeletePackageVersionsOutput
Consumes the builder and constructs a DeletePackageVersionsOutput
.
Trait Implementations§
source§impl Clone for DeletePackageVersionsOutputBuilder
impl Clone for DeletePackageVersionsOutputBuilder
source§fn clone(&self) -> DeletePackageVersionsOutputBuilder
fn clone(&self) -> DeletePackageVersionsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeletePackageVersionsOutputBuilder
impl Default for DeletePackageVersionsOutputBuilder
source§fn default() -> DeletePackageVersionsOutputBuilder
fn default() -> DeletePackageVersionsOutputBuilder
source§impl PartialEq for DeletePackageVersionsOutputBuilder
impl PartialEq for DeletePackageVersionsOutputBuilder
source§fn eq(&self, other: &DeletePackageVersionsOutputBuilder) -> bool
fn eq(&self, other: &DeletePackageVersionsOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeletePackageVersionsOutputBuilder
Auto Trait Implementations§
impl Freeze for DeletePackageVersionsOutputBuilder
impl RefUnwindSafe for DeletePackageVersionsOutputBuilder
impl Send for DeletePackageVersionsOutputBuilder
impl Sync for DeletePackageVersionsOutputBuilder
impl Unpin for DeletePackageVersionsOutputBuilder
impl UnwindSafe for DeletePackageVersionsOutputBuilder
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