Struct aws_sdk_gamelift::types::builders::RoutingStrategyBuilder
source · #[non_exhaustive]pub struct RoutingStrategyBuilder { /* private fields */ }Expand description
A builder for RoutingStrategy.
Implementations§
source§impl RoutingStrategyBuilder
impl RoutingStrategyBuilder
sourcepub fn type(self, input: RoutingStrategyType) -> Self
pub fn type(self, input: RoutingStrategyType) -> Self
The type of routing strategy for the alias.
Possible routing types include the following:
-
SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.
-
TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the message embedded.
sourcepub fn set_type(self, input: Option<RoutingStrategyType>) -> Self
pub fn set_type(self, input: Option<RoutingStrategyType>) -> Self
The type of routing strategy for the alias.
Possible routing types include the following:
-
SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.
-
TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the message embedded.
sourcepub fn get_type(&self) -> &Option<RoutingStrategyType>
pub fn get_type(&self) -> &Option<RoutingStrategyType>
The type of routing strategy for the alias.
Possible routing types include the following:
-
SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.
-
TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the message embedded.
sourcepub fn fleet_id(self, input: impl Into<String>) -> Self
pub fn fleet_id(self, input: impl Into<String>) -> Self
A unique identifier for the fleet that the alias points to. This value is the fleet ID, not the fleet ARN.
sourcepub fn set_fleet_id(self, input: Option<String>) -> Self
pub fn set_fleet_id(self, input: Option<String>) -> Self
A unique identifier for the fleet that the alias points to. This value is the fleet ID, not the fleet ARN.
sourcepub fn get_fleet_id(&self) -> &Option<String>
pub fn get_fleet_id(&self) -> &Option<String>
A unique identifier for the fleet that the alias points to. This value is the fleet ID, not the fleet ARN.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
The message text to be used with a terminal routing strategy.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The message text to be used with a terminal routing strategy.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The message text to be used with a terminal routing strategy.
sourcepub fn build(self) -> RoutingStrategy
pub fn build(self) -> RoutingStrategy
Consumes the builder and constructs a RoutingStrategy.
Trait Implementations§
source§impl Clone for RoutingStrategyBuilder
impl Clone for RoutingStrategyBuilder
source§fn clone(&self) -> RoutingStrategyBuilder
fn clone(&self) -> RoutingStrategyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RoutingStrategyBuilder
impl Debug for RoutingStrategyBuilder
source§impl Default for RoutingStrategyBuilder
impl Default for RoutingStrategyBuilder
source§fn default() -> RoutingStrategyBuilder
fn default() -> RoutingStrategyBuilder
source§impl PartialEq for RoutingStrategyBuilder
impl PartialEq for RoutingStrategyBuilder
source§fn eq(&self, other: &RoutingStrategyBuilder) -> bool
fn eq(&self, other: &RoutingStrategyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RoutingStrategyBuilder
Auto Trait Implementations§
impl Freeze for RoutingStrategyBuilder
impl RefUnwindSafe for RoutingStrategyBuilder
impl Send for RoutingStrategyBuilder
impl Sync for RoutingStrategyBuilder
impl Unpin for RoutingStrategyBuilder
impl UnwindSafe for RoutingStrategyBuilder
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