#[non_exhaustive]pub struct GameSessionPlacementBuilder { /* private fields */ }Expand description
A builder for GameSessionPlacement.
Implementations§
source§impl GameSessionPlacementBuilder
impl GameSessionPlacementBuilder
sourcepub fn placement_id(self, input: impl Into<String>) -> Self
pub fn placement_id(self, input: impl Into<String>) -> Self
A unique identifier for a game session placement.
sourcepub fn set_placement_id(self, input: Option<String>) -> Self
pub fn set_placement_id(self, input: Option<String>) -> Self
A unique identifier for a game session placement.
sourcepub fn get_placement_id(&self) -> &Option<String>
pub fn get_placement_id(&self) -> &Option<String>
A unique identifier for a game session placement.
sourcepub fn game_session_queue_name(self, input: impl Into<String>) -> Self
pub fn game_session_queue_name(self, input: impl Into<String>) -> Self
A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
sourcepub fn set_game_session_queue_name(self, input: Option<String>) -> Self
pub fn set_game_session_queue_name(self, input: Option<String>) -> Self
A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
sourcepub fn get_game_session_queue_name(&self) -> &Option<String>
pub fn get_game_session_queue_name(&self) -> &Option<String>
A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
sourcepub fn status(self, input: GameSessionPlacementState) -> Self
pub fn status(self, input: GameSessionPlacementState) -> Self
Current status of the game session placement request.
-
PENDING -- The placement request is in the queue waiting to be processed. Game session properties are not yet final.
-
FULFILLED -- A new game session has been successfully placed. Game session properties are now final.
-
CANCELLED -- The placement request was canceled.
-
TIMED_OUT -- A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.
-
FAILED -- Amazon GameLift is not able to complete the process of placing the game session. Common reasons are the game session terminated before the placement process was completed, or an unexpected internal error.
sourcepub fn set_status(self, input: Option<GameSessionPlacementState>) -> Self
pub fn set_status(self, input: Option<GameSessionPlacementState>) -> Self
Current status of the game session placement request.
-
PENDING -- The placement request is in the queue waiting to be processed. Game session properties are not yet final.
-
FULFILLED -- A new game session has been successfully placed. Game session properties are now final.
-
CANCELLED -- The placement request was canceled.
-
TIMED_OUT -- A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.
-
FAILED -- Amazon GameLift is not able to complete the process of placing the game session. Common reasons are the game session terminated before the placement process was completed, or an unexpected internal error.
sourcepub fn get_status(&self) -> &Option<GameSessionPlacementState>
pub fn get_status(&self) -> &Option<GameSessionPlacementState>
Current status of the game session placement request.
-
PENDING -- The placement request is in the queue waiting to be processed. Game session properties are not yet final.
-
FULFILLED -- A new game session has been successfully placed. Game session properties are now final.
-
CANCELLED -- The placement request was canceled.
-
TIMED_OUT -- A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.
-
FAILED -- Amazon GameLift is not able to complete the process of placing the game session. Common reasons are the game session terminated before the placement process was completed, or an unexpected internal error.
sourcepub fn game_properties(self, input: GameProperty) -> Self
pub fn game_properties(self, input: GameProperty) -> Self
Appends an item to game_properties.
To override the contents of this collection use set_game_properties.
A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see Start a Game Session).
sourcepub fn set_game_properties(self, input: Option<Vec<GameProperty>>) -> Self
pub fn set_game_properties(self, input: Option<Vec<GameProperty>>) -> Self
A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see Start a Game Session).
sourcepub fn get_game_properties(&self) -> &Option<Vec<GameProperty>>
pub fn get_game_properties(&self) -> &Option<Vec<GameProperty>>
A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see Start a Game Session).
sourcepub fn maximum_player_session_count(self, input: i32) -> Self
pub fn maximum_player_session_count(self, input: i32) -> Self
The maximum number of players that can be connected simultaneously to the game session.
sourcepub fn set_maximum_player_session_count(self, input: Option<i32>) -> Self
pub fn set_maximum_player_session_count(self, input: Option<i32>) -> Self
The maximum number of players that can be connected simultaneously to the game session.
sourcepub fn get_maximum_player_session_count(&self) -> &Option<i32>
pub fn get_maximum_player_session_count(&self) -> &Option<i32>
The maximum number of players that can be connected simultaneously to the game session.
sourcepub fn game_session_name(self, input: impl Into<String>) -> Self
pub fn game_session_name(self, input: impl Into<String>) -> Self
A descriptive label that is associated with a game session. Session names do not need to be unique.
sourcepub fn set_game_session_name(self, input: Option<String>) -> Self
pub fn set_game_session_name(self, input: Option<String>) -> Self
A descriptive label that is associated with a game session. Session names do not need to be unique.
sourcepub fn get_game_session_name(&self) -> &Option<String>
pub fn get_game_session_name(&self) -> &Option<String>
A descriptive label that is associated with a game session. Session names do not need to be unique.
sourcepub fn game_session_id(self, input: impl Into<String>) -> Self
pub fn game_session_id(self, input: impl Into<String>) -> Self
A unique identifier for the game session. This value isn't final until placement status is FULFILLED.
sourcepub fn set_game_session_id(self, input: Option<String>) -> Self
pub fn set_game_session_id(self, input: Option<String>) -> Self
A unique identifier for the game session. This value isn't final until placement status is FULFILLED.
sourcepub fn get_game_session_id(&self) -> &Option<String>
pub fn get_game_session_id(&self) -> &Option<String>
A unique identifier for the game session. This value isn't final until placement status is FULFILLED.
sourcepub fn game_session_arn(self, input: impl Into<String>) -> Self
pub fn game_session_arn(self, input: impl Into<String>) -> Self
Identifier for the game session created by this placement request. This identifier is unique across all Regions. This value isn't final until placement status is FULFILLED.
sourcepub fn set_game_session_arn(self, input: Option<String>) -> Self
pub fn set_game_session_arn(self, input: Option<String>) -> Self
Identifier for the game session created by this placement request. This identifier is unique across all Regions. This value isn't final until placement status is FULFILLED.
sourcepub fn get_game_session_arn(&self) -> &Option<String>
pub fn get_game_session_arn(&self) -> &Option<String>
Identifier for the game session created by this placement request. This identifier is unique across all Regions. This value isn't final until placement status is FULFILLED.
sourcepub fn game_session_region(self, input: impl Into<String>) -> Self
pub fn game_session_region(self, input: impl Into<String>) -> Self
Name of the Region where the game session created by this placement request is running. This value isn't final until placement status is FULFILLED.
sourcepub fn set_game_session_region(self, input: Option<String>) -> Self
pub fn set_game_session_region(self, input: Option<String>) -> Self
Name of the Region where the game session created by this placement request is running. This value isn't final until placement status is FULFILLED.
sourcepub fn get_game_session_region(&self) -> &Option<String>
pub fn get_game_session_region(&self) -> &Option<String>
Name of the Region where the game session created by this placement request is running. This value isn't final until placement status is FULFILLED.
sourcepub fn player_latencies(self, input: PlayerLatency) -> Self
pub fn player_latencies(self, input: PlayerLatency) -> Self
Appends an item to player_latencies.
To override the contents of this collection use set_player_latencies.
A set of values, expressed in milliseconds, that indicates the amount of latency that a player experiences when connected to Amazon Web Services Regions.
sourcepub fn set_player_latencies(self, input: Option<Vec<PlayerLatency>>) -> Self
pub fn set_player_latencies(self, input: Option<Vec<PlayerLatency>>) -> Self
A set of values, expressed in milliseconds, that indicates the amount of latency that a player experiences when connected to Amazon Web Services Regions.
sourcepub fn get_player_latencies(&self) -> &Option<Vec<PlayerLatency>>
pub fn get_player_latencies(&self) -> &Option<Vec<PlayerLatency>>
A set of values, expressed in milliseconds, that indicates the amount of latency that a player experiences when connected to Amazon Web Services Regions.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
Time stamp indicating when this request was placed in the queue. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
Time stamp indicating when this request was placed in the queue. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
Time stamp indicating when this request was placed in the queue. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
Time stamp indicating when this request was completed, canceled, or timed out.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
Time stamp indicating when this request was completed, canceled, or timed out.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
Time stamp indicating when this request was completed, canceled, or timed out.
sourcepub fn ip_address(self, input: impl Into<String>) -> Self
pub fn ip_address(self, input: impl Into<String>) -> Self
The IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. This value isn't final until placement status is FULFILLED.
sourcepub fn set_ip_address(self, input: Option<String>) -> Self
pub fn set_ip_address(self, input: Option<String>) -> Self
The IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. This value isn't final until placement status is FULFILLED.
sourcepub fn get_ip_address(&self) -> &Option<String>
pub fn get_ip_address(&self) -> &Option<String>
The IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. This value isn't final until placement status is FULFILLED.
sourcepub fn dns_name(self, input: impl Into<String>) -> Self
pub fn dns_name(self, input: impl Into<String>) -> Self
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
-
TLS-enabled fleets:
.. .amazongamelift.com -
Non-TLS-enabled fleets:
ec2-. (See Amazon EC2 Instance IP Addressing.).compute.amazonaws.com
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
sourcepub fn set_dns_name(self, input: Option<String>) -> Self
pub fn set_dns_name(self, input: Option<String>) -> Self
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
-
TLS-enabled fleets:
.. .amazongamelift.com -
Non-TLS-enabled fleets:
ec2-. (See Amazon EC2 Instance IP Addressing.).compute.amazonaws.com
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
sourcepub fn get_dns_name(&self) -> &Option<String>
pub fn get_dns_name(&self) -> &Option<String>
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
-
TLS-enabled fleets:
.. .amazongamelift.com -
Non-TLS-enabled fleets:
ec2-. (See Amazon EC2 Instance IP Addressing.).compute.amazonaws.com
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The port number for the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. This value isn't final until placement status is FULFILLED.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port number for the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. This value isn't final until placement status is FULFILLED.
sourcepub fn get_port(&self) -> &Option<i32>
pub fn get_port(&self) -> &Option<i32>
The port number for the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. This value isn't final until placement status is FULFILLED.
sourcepub fn placed_player_sessions(self, input: PlacedPlayerSession) -> Self
pub fn placed_player_sessions(self, input: PlacedPlayerSession) -> Self
Appends an item to placed_player_sessions.
To override the contents of this collection use set_placed_player_sessions.
A collection of information on player sessions created in response to the game session placement request. These player sessions are created only after a new game session is successfully placed (placement status is FULFILLED). This information includes the player ID, provided in the placement request, and a corresponding player session ID.
sourcepub fn set_placed_player_sessions(
self,
input: Option<Vec<PlacedPlayerSession>>
) -> Self
pub fn set_placed_player_sessions( self, input: Option<Vec<PlacedPlayerSession>> ) -> Self
A collection of information on player sessions created in response to the game session placement request. These player sessions are created only after a new game session is successfully placed (placement status is FULFILLED). This information includes the player ID, provided in the placement request, and a corresponding player session ID.
sourcepub fn get_placed_player_sessions(&self) -> &Option<Vec<PlacedPlayerSession>>
pub fn get_placed_player_sessions(&self) -> &Option<Vec<PlacedPlayerSession>>
A collection of information on player sessions created in response to the game session placement request. These player sessions are created only after a new game session is successfully placed (placement status is FULFILLED). This information includes the player ID, provided in the placement request, and a corresponding player session ID.
sourcepub fn game_session_data(self, input: impl Into<String>) -> Self
pub fn game_session_data(self, input: impl Into<String>) -> Self
A set of custom game session properties, formatted as a single string value. This data is passed to a game server process in the GameSession object with a request to start a new game session (see Start a Game Session).
sourcepub fn set_game_session_data(self, input: Option<String>) -> Self
pub fn set_game_session_data(self, input: Option<String>) -> Self
A set of custom game session properties, formatted as a single string value. This data is passed to a game server process in the GameSession object with a request to start a new game session (see Start a Game Session).
sourcepub fn get_game_session_data(&self) -> &Option<String>
pub fn get_game_session_data(&self) -> &Option<String>
A set of custom game session properties, formatted as a single string value. This data is passed to a game server process in the GameSession object with a request to start a new game session (see Start a Game Session).
sourcepub fn matchmaker_data(self, input: impl Into<String>) -> Self
pub fn matchmaker_data(self, input: impl Into<String>) -> Self
Information on the matchmaking process for this game. Data is in JSON syntax, formatted as a string. It identifies the matchmaking configuration used to create the match, and contains data on all players assigned to the match, including player attributes and team assignments. For more details on matchmaker data, see Match Data.
sourcepub fn set_matchmaker_data(self, input: Option<String>) -> Self
pub fn set_matchmaker_data(self, input: Option<String>) -> Self
Information on the matchmaking process for this game. Data is in JSON syntax, formatted as a string. It identifies the matchmaking configuration used to create the match, and contains data on all players assigned to the match, including player attributes and team assignments. For more details on matchmaker data, see Match Data.
sourcepub fn get_matchmaker_data(&self) -> &Option<String>
pub fn get_matchmaker_data(&self) -> &Option<String>
Information on the matchmaking process for this game. Data is in JSON syntax, formatted as a string. It identifies the matchmaking configuration used to create the match, and contains data on all players assigned to the match, including player attributes and team assignments. For more details on matchmaker data, see Match Data.
sourcepub fn build(self) -> GameSessionPlacement
pub fn build(self) -> GameSessionPlacement
Consumes the builder and constructs a GameSessionPlacement.
Trait Implementations§
source§impl Clone for GameSessionPlacementBuilder
impl Clone for GameSessionPlacementBuilder
source§fn clone(&self) -> GameSessionPlacementBuilder
fn clone(&self) -> GameSessionPlacementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GameSessionPlacementBuilder
impl Debug for GameSessionPlacementBuilder
source§impl Default for GameSessionPlacementBuilder
impl Default for GameSessionPlacementBuilder
source§fn default() -> GameSessionPlacementBuilder
fn default() -> GameSessionPlacementBuilder
source§impl PartialEq for GameSessionPlacementBuilder
impl PartialEq for GameSessionPlacementBuilder
source§fn eq(&self, other: &GameSessionPlacementBuilder) -> bool
fn eq(&self, other: &GameSessionPlacementBuilder) -> bool
self and other values to be equal, and is used
by ==.