#[non_exhaustive]pub struct CloudComponentStatusBuilder { /* private fields */ }
Expand description
A builder for CloudComponentStatus
.
Implementations§
source§impl CloudComponentStatusBuilder
impl CloudComponentStatusBuilder
sourcepub fn component_state(self, input: CloudComponentState) -> Self
pub fn component_state(self, input: CloudComponentState) -> Self
The state of the component version.
sourcepub fn set_component_state(self, input: Option<CloudComponentState>) -> Self
pub fn set_component_state(self, input: Option<CloudComponentState>) -> Self
The state of the component version.
sourcepub fn get_component_state(&self) -> &Option<CloudComponentState>
pub fn get_component_state(&self) -> &Option<CloudComponentState>
The state of the component version.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
A message that communicates details, such as errors, about the status of the component version.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A message that communicates details, such as errors, about the status of the component version.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
A message that communicates details, such as errors, about the status of the component version.
sourcepub fn errors(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn errors(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to errors
.
To override the contents of this collection use set_errors
.
A dictionary of errors that communicate why the component version is in an error state. For example, if IoT Greengrass can't access an artifact for the component version, then errors
contains the artifact's URI as a key, and the error message as the value for that key.
sourcepub fn set_errors(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_errors(self, input: Option<HashMap<String, String>>) -> Self
A dictionary of errors that communicate why the component version is in an error state. For example, if IoT Greengrass can't access an artifact for the component version, then errors
contains the artifact's URI as a key, and the error message as the value for that key.
sourcepub fn get_errors(&self) -> &Option<HashMap<String, String>>
pub fn get_errors(&self) -> &Option<HashMap<String, String>>
A dictionary of errors that communicate why the component version is in an error state. For example, if IoT Greengrass can't access an artifact for the component version, then errors
contains the artifact's URI as a key, and the error message as the value for that key.
sourcepub fn vendor_guidance(self, input: VendorGuidance) -> Self
pub fn vendor_guidance(self, input: VendorGuidance) -> Self
The vendor guidance state for the component version. This state indicates whether the component version has any issues that you should consider before you deploy it. The vendor guidance state can be:
-
ACTIVE
– This component version is available and recommended for use. -
DISCONTINUED
– This component version has been discontinued by its publisher. You can deploy this component version, but we recommend that you use a different version of this component. -
DELETED
– This component version has been deleted by its publisher, so you can't deploy it. If you have any existing deployments that specify this component version, those deployments will fail.
sourcepub fn set_vendor_guidance(self, input: Option<VendorGuidance>) -> Self
pub fn set_vendor_guidance(self, input: Option<VendorGuidance>) -> Self
The vendor guidance state for the component version. This state indicates whether the component version has any issues that you should consider before you deploy it. The vendor guidance state can be:
-
ACTIVE
– This component version is available and recommended for use. -
DISCONTINUED
– This component version has been discontinued by its publisher. You can deploy this component version, but we recommend that you use a different version of this component. -
DELETED
– This component version has been deleted by its publisher, so you can't deploy it. If you have any existing deployments that specify this component version, those deployments will fail.
sourcepub fn get_vendor_guidance(&self) -> &Option<VendorGuidance>
pub fn get_vendor_guidance(&self) -> &Option<VendorGuidance>
The vendor guidance state for the component version. This state indicates whether the component version has any issues that you should consider before you deploy it. The vendor guidance state can be:
-
ACTIVE
– This component version is available and recommended for use. -
DISCONTINUED
– This component version has been discontinued by its publisher. You can deploy this component version, but we recommend that you use a different version of this component. -
DELETED
– This component version has been deleted by its publisher, so you can't deploy it. If you have any existing deployments that specify this component version, those deployments will fail.
sourcepub fn vendor_guidance_message(self, input: impl Into<String>) -> Self
pub fn vendor_guidance_message(self, input: impl Into<String>) -> Self
A message that communicates details about the vendor guidance state of the component version. This message communicates why a component version is discontinued or deleted.
sourcepub fn set_vendor_guidance_message(self, input: Option<String>) -> Self
pub fn set_vendor_guidance_message(self, input: Option<String>) -> Self
A message that communicates details about the vendor guidance state of the component version. This message communicates why a component version is discontinued or deleted.
sourcepub fn get_vendor_guidance_message(&self) -> &Option<String>
pub fn get_vendor_guidance_message(&self) -> &Option<String>
A message that communicates details about the vendor guidance state of the component version. This message communicates why a component version is discontinued or deleted.
sourcepub fn build(self) -> CloudComponentStatus
pub fn build(self) -> CloudComponentStatus
Consumes the builder and constructs a CloudComponentStatus
.
Trait Implementations§
source§impl Clone for CloudComponentStatusBuilder
impl Clone for CloudComponentStatusBuilder
source§fn clone(&self) -> CloudComponentStatusBuilder
fn clone(&self) -> CloudComponentStatusBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloudComponentStatusBuilder
impl Debug for CloudComponentStatusBuilder
source§impl Default for CloudComponentStatusBuilder
impl Default for CloudComponentStatusBuilder
source§fn default() -> CloudComponentStatusBuilder
fn default() -> CloudComponentStatusBuilder
source§impl PartialEq for CloudComponentStatusBuilder
impl PartialEq for CloudComponentStatusBuilder
source§fn eq(&self, other: &CloudComponentStatusBuilder) -> bool
fn eq(&self, other: &CloudComponentStatusBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudComponentStatusBuilder
Auto Trait Implementations§
impl Freeze for CloudComponentStatusBuilder
impl RefUnwindSafe for CloudComponentStatusBuilder
impl Send for CloudComponentStatusBuilder
impl Sync for CloudComponentStatusBuilder
impl Unpin for CloudComponentStatusBuilder
impl UnwindSafe for CloudComponentStatusBuilder
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