#[non_exhaustive]pub struct ResolvedComponentVersionBuilder { /* private fields */ }
Expand description
A builder for ResolvedComponentVersion
.
Implementations§
source§impl ResolvedComponentVersionBuilder
impl ResolvedComponentVersionBuilder
sourcepub fn component_name(self, input: impl Into<String>) -> Self
pub fn component_name(self, input: impl Into<String>) -> Self
The name of the component.
sourcepub fn set_component_name(self, input: Option<String>) -> Self
pub fn set_component_name(self, input: Option<String>) -> Self
The name of the component.
sourcepub fn get_component_name(&self) -> &Option<String>
pub fn get_component_name(&self) -> &Option<String>
The name of the component.
sourcepub fn component_version(self, input: impl Into<String>) -> Self
pub fn component_version(self, input: impl Into<String>) -> Self
The version of the component.
sourcepub fn set_component_version(self, input: Option<String>) -> Self
pub fn set_component_version(self, input: Option<String>) -> Self
The version of the component.
sourcepub fn get_component_version(&self) -> &Option<String>
pub fn get_component_version(&self) -> &Option<String>
The version of the component.
sourcepub fn set_recipe(self, input: Option<Blob>) -> Self
pub fn set_recipe(self, input: Option<Blob>) -> Self
The recipe of the component version.
sourcepub fn get_recipe(&self) -> &Option<Blob>
pub fn get_recipe(&self) -> &Option<Blob>
The recipe of the component version.
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 message(self, input: impl Into<String>) -> Self
pub fn 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_message(self, input: Option<String>) -> Self
pub fn set_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_message(&self) -> &Option<String>
pub fn get_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) -> ResolvedComponentVersion
pub fn build(self) -> ResolvedComponentVersion
Consumes the builder and constructs a ResolvedComponentVersion
.
Trait Implementations§
source§impl Clone for ResolvedComponentVersionBuilder
impl Clone for ResolvedComponentVersionBuilder
source§fn clone(&self) -> ResolvedComponentVersionBuilder
fn clone(&self) -> ResolvedComponentVersionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResolvedComponentVersionBuilder
impl Default for ResolvedComponentVersionBuilder
source§fn default() -> ResolvedComponentVersionBuilder
fn default() -> ResolvedComponentVersionBuilder
source§impl PartialEq for ResolvedComponentVersionBuilder
impl PartialEq for ResolvedComponentVersionBuilder
source§fn eq(&self, other: &ResolvedComponentVersionBuilder) -> bool
fn eq(&self, other: &ResolvedComponentVersionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResolvedComponentVersionBuilder
Auto Trait Implementations§
impl Freeze for ResolvedComponentVersionBuilder
impl RefUnwindSafe for ResolvedComponentVersionBuilder
impl Send for ResolvedComponentVersionBuilder
impl Sync for ResolvedComponentVersionBuilder
impl Unpin for ResolvedComponentVersionBuilder
impl UnwindSafe for ResolvedComponentVersionBuilder
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