#[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.
This field is required.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 get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
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.
This field is required.sourcepub fn set_status(self, input: Option<DetailedModelPackageStatus>) -> Self
pub fn set_status(self, input: Option<DetailedModelPackageStatus>) -> Self
The current status.
sourcepub fn get_status(&self) -> &Option<DetailedModelPackageStatus>
pub fn get_status(&self) -> &Option<DetailedModelPackageStatus>
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 get_failure_reason(&self) -> &Option<String>
pub fn get_failure_reason(&self) -> &Option<String>
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 for ModelPackageStatusItemBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for ModelPackageStatusItemBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ModelPackageStatusItemBuilder
impl Send for ModelPackageStatusItemBuilder
impl Sync for ModelPackageStatusItemBuilder
impl Unpin for ModelPackageStatusItemBuilder
impl UnwindSafe for ModelPackageStatusItemBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.