#[non_exhaustive]pub struct ServerStrategyBuilder { /* private fields */ }Expand description
A builder for ServerStrategy.
Implementations§
source§impl ServerStrategyBuilder
impl ServerStrategyBuilder
sourcepub fn recommendation(self, input: RecommendationSet) -> Self
pub fn recommendation(self, input: RecommendationSet) -> Self
Strategy recommendation for the server.
sourcepub fn set_recommendation(self, input: Option<RecommendationSet>) -> Self
pub fn set_recommendation(self, input: Option<RecommendationSet>) -> Self
Strategy recommendation for the server.
sourcepub fn get_recommendation(&self) -> &Option<RecommendationSet>
pub fn get_recommendation(&self) -> &Option<RecommendationSet>
Strategy recommendation for the server.
sourcepub fn status(self, input: StrategyRecommendation) -> Self
pub fn status(self, input: StrategyRecommendation) -> Self
The recommendation status of the strategy for the server.
sourcepub fn set_status(self, input: Option<StrategyRecommendation>) -> Self
pub fn set_status(self, input: Option<StrategyRecommendation>) -> Self
The recommendation status of the strategy for the server.
sourcepub fn get_status(&self) -> &Option<StrategyRecommendation>
pub fn get_status(&self) -> &Option<StrategyRecommendation>
The recommendation status of the strategy for the server.
sourcepub fn number_of_application_components(self, input: i32) -> Self
pub fn number_of_application_components(self, input: i32) -> Self
The number of application components with this strategy recommendation running on the server.
sourcepub fn set_number_of_application_components(self, input: Option<i32>) -> Self
pub fn set_number_of_application_components(self, input: Option<i32>) -> Self
The number of application components with this strategy recommendation running on the server.
sourcepub fn get_number_of_application_components(&self) -> &Option<i32>
pub fn get_number_of_application_components(&self) -> &Option<i32>
The number of application components with this strategy recommendation running on the server.
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) -> ServerStrategy
pub fn build(self) -> ServerStrategy
Consumes the builder and constructs a ServerStrategy.
Trait Implementations§
source§impl Clone for ServerStrategyBuilder
impl Clone for ServerStrategyBuilder
source§fn clone(&self) -> ServerStrategyBuilder
fn clone(&self) -> ServerStrategyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ServerStrategyBuilder
impl Debug for ServerStrategyBuilder
source§impl Default for ServerStrategyBuilder
impl Default for ServerStrategyBuilder
source§fn default() -> ServerStrategyBuilder
fn default() -> ServerStrategyBuilder
source§impl PartialEq for ServerStrategyBuilder
impl PartialEq for ServerStrategyBuilder
source§fn eq(&self, other: &ServerStrategyBuilder) -> bool
fn eq(&self, other: &ServerStrategyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ServerStrategyBuilder
Auto Trait Implementations§
impl Freeze for ServerStrategyBuilder
impl RefUnwindSafe for ServerStrategyBuilder
impl Send for ServerStrategyBuilder
impl Sync for ServerStrategyBuilder
impl Unpin for ServerStrategyBuilder
impl UnwindSafe for ServerStrategyBuilder
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