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<RoutingStrategyBuilder> for RoutingStrategyBuilder
impl PartialEq<RoutingStrategyBuilder> 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 ==.