#[non_exhaustive]pub struct ApplicationComponentStrategyBuilder { /* private fields */ }
Expand description
A builder for ApplicationComponentStrategy
.
Implementations§
source§impl ApplicationComponentStrategyBuilder
impl ApplicationComponentStrategyBuilder
sourcepub fn recommendation(self, input: RecommendationSet) -> Self
pub fn recommendation(self, input: RecommendationSet) -> Self
Strategy recommendation for the application component.
sourcepub fn set_recommendation(self, input: Option<RecommendationSet>) -> Self
pub fn set_recommendation(self, input: Option<RecommendationSet>) -> Self
Strategy recommendation for the application component.
sourcepub fn get_recommendation(&self) -> &Option<RecommendationSet>
pub fn get_recommendation(&self) -> &Option<RecommendationSet>
Strategy recommendation for the application component.
sourcepub fn status(self, input: StrategyRecommendation) -> Self
pub fn status(self, input: StrategyRecommendation) -> Self
The recommendation status of a strategy for an application component.
sourcepub fn set_status(self, input: Option<StrategyRecommendation>) -> Self
pub fn set_status(self, input: Option<StrategyRecommendation>) -> Self
The recommendation status of a strategy for an application component.
sourcepub fn get_status(&self) -> &Option<StrategyRecommendation>
pub fn get_status(&self) -> &Option<StrategyRecommendation>
The recommendation status of a strategy for an application component.
sourcepub fn is_preferred(self, input: bool) -> Self
pub fn is_preferred(self, input: bool) -> Self
Set to true if the recommendation is set as preferred.
sourcepub fn set_is_preferred(self, input: Option<bool>) -> Self
pub fn set_is_preferred(self, input: Option<bool>) -> Self
Set to true if the recommendation is set as preferred.
sourcepub fn get_is_preferred(&self) -> &Option<bool>
pub fn get_is_preferred(&self) -> &Option<bool>
Set to true if the recommendation is set as preferred.
sourcepub fn build(self) -> ApplicationComponentStrategy
pub fn build(self) -> ApplicationComponentStrategy
Consumes the builder and constructs a ApplicationComponentStrategy
.
Trait Implementations§
source§impl Clone for ApplicationComponentStrategyBuilder
impl Clone for ApplicationComponentStrategyBuilder
source§fn clone(&self) -> ApplicationComponentStrategyBuilder
fn clone(&self) -> ApplicationComponentStrategyBuilder
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 ApplicationComponentStrategyBuilder
impl Default for ApplicationComponentStrategyBuilder
source§fn default() -> ApplicationComponentStrategyBuilder
fn default() -> ApplicationComponentStrategyBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ApplicationComponentStrategyBuilder
impl PartialEq for ApplicationComponentStrategyBuilder
source§fn eq(&self, other: &ApplicationComponentStrategyBuilder) -> bool
fn eq(&self, other: &ApplicationComponentStrategyBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApplicationComponentStrategyBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ApplicationComponentStrategyBuilder
impl Send for ApplicationComponentStrategyBuilder
impl Sync for ApplicationComponentStrategyBuilder
impl Unpin for ApplicationComponentStrategyBuilder
impl UnwindSafe for ApplicationComponentStrategyBuilder
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.