#[non_exhaustive]pub struct ModelPackageStatusItemBuilder { /* private fields */ }
Expand description
A builder for ModelPackageStatusItem
.
Implementations§
source§impl ModelPackageStatusItemBuilder
impl ModelPackageStatusItemBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the model package for which the overall status is being reported.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the model package for which the overall status is being reported.
sourcepub fn status(self, input: DetailedModelPackageStatus) -> Self
pub fn status(self, input: DetailedModelPackageStatus) -> Self
The current status.
sourcepub fn set_status(self, input: Option<DetailedModelPackageStatus>) -> Self
pub fn set_status(self, input: Option<DetailedModelPackageStatus>) -> Self
The current status.
sourcepub fn failure_reason(self, input: impl Into<String>) -> Self
pub fn failure_reason(self, input: impl Into<String>) -> Self
if the overall status is Failed
, the reason for the failure.
sourcepub fn set_failure_reason(self, input: Option<String>) -> Self
pub fn set_failure_reason(self, input: Option<String>) -> Self
if the overall status is Failed
, the reason for the failure.
sourcepub fn build(self) -> ModelPackageStatusItem
pub fn build(self) -> ModelPackageStatusItem
Consumes the builder and constructs a ModelPackageStatusItem
.
Trait Implementations§
source§impl Clone for ModelPackageStatusItemBuilder
impl Clone for ModelPackageStatusItemBuilder
source§fn clone(&self) -> ModelPackageStatusItemBuilder
fn clone(&self) -> ModelPackageStatusItemBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ModelPackageStatusItemBuilder
impl Default for ModelPackageStatusItemBuilder
source§fn default() -> ModelPackageStatusItemBuilder
fn default() -> ModelPackageStatusItemBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ModelPackageStatusItemBuilder> for ModelPackageStatusItemBuilder
impl PartialEq<ModelPackageStatusItemBuilder> for ModelPackageStatusItemBuilder
source§fn eq(&self, other: &ModelPackageStatusItemBuilder) -> bool
fn eq(&self, other: &ModelPackageStatusItemBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.