Struct aws_sdk_codeartifact::model::package_version_error::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for PackageVersionError.
Implementations§
source§impl Builder
impl Builder
sourcepub fn error_code(self, input: PackageVersionErrorCode) -> Self
pub fn error_code(self, input: PackageVersionErrorCode) -> Self
The error code associated with the error. Valid error codes are:
-
ALREADY_EXISTS -
MISMATCHED_REVISION -
MISMATCHED_STATUS -
NOT_ALLOWED -
NOT_FOUND -
SKIPPED
sourcepub fn set_error_code(self, input: Option<PackageVersionErrorCode>) -> Self
pub fn set_error_code(self, input: Option<PackageVersionErrorCode>) -> Self
The error code associated with the error. Valid error codes are:
-
ALREADY_EXISTS -
MISMATCHED_REVISION -
MISMATCHED_STATUS -
NOT_ALLOWED -
NOT_FOUND -
SKIPPED
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
The error message associated with the error.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
The error message associated with the error.
sourcepub fn build(self) -> PackageVersionError
pub fn build(self) -> PackageVersionError
Consumes the builder and constructs a PackageVersionError.