#[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 ==.