#[non_exhaustive]pub struct GameSessionConnectionInfoBuilder { /* private fields */ }Expand description
A builder for GameSessionConnectionInfo.
Implementations§
source§impl GameSessionConnectionInfoBuilder
impl GameSessionConnectionInfoBuilder
sourcepub fn game_session_arn(self, input: impl Into<String>) -> Self
pub fn game_session_arn(self, input: impl Into<String>) -> Self
A unique identifier for the game session. Use the game session ID.
sourcepub fn set_game_session_arn(self, input: Option<String>) -> Self
pub fn set_game_session_arn(self, input: Option<String>) -> Self
A unique identifier for the game session. Use the game session ID.
sourcepub fn get_game_session_arn(&self) -> &Option<String>
pub fn get_game_session_arn(&self) -> &Option<String>
A unique identifier for the game session. Use the game session ID.
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.
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.
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.
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.
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.
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.
sourcepub fn matched_player_sessions(self, input: MatchedPlayerSession) -> Self
pub fn matched_player_sessions(self, input: MatchedPlayerSession) -> Self
Appends an item to matched_player_sessions.
To override the contents of this collection use set_matched_player_sessions.
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
sourcepub fn set_matched_player_sessions(
self,
input: Option<Vec<MatchedPlayerSession>>
) -> Self
pub fn set_matched_player_sessions( self, input: Option<Vec<MatchedPlayerSession>> ) -> Self
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
sourcepub fn get_matched_player_sessions(&self) -> &Option<Vec<MatchedPlayerSession>>
pub fn get_matched_player_sessions(&self) -> &Option<Vec<MatchedPlayerSession>>
A collection of player session IDs, one for each player ID that was included in the original matchmaking request.
sourcepub fn build(self) -> GameSessionConnectionInfo
pub fn build(self) -> GameSessionConnectionInfo
Consumes the builder and constructs a GameSessionConnectionInfo.
Trait Implementations§
source§impl Clone for GameSessionConnectionInfoBuilder
impl Clone for GameSessionConnectionInfoBuilder
source§fn clone(&self) -> GameSessionConnectionInfoBuilder
fn clone(&self) -> GameSessionConnectionInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GameSessionConnectionInfoBuilder
impl Default for GameSessionConnectionInfoBuilder
source§fn default() -> GameSessionConnectionInfoBuilder
fn default() -> GameSessionConnectionInfoBuilder
source§impl PartialEq for GameSessionConnectionInfoBuilder
impl PartialEq for GameSessionConnectionInfoBuilder
source§fn eq(&self, other: &GameSessionConnectionInfoBuilder) -> bool
fn eq(&self, other: &GameSessionConnectionInfoBuilder) -> bool
self and other values to be equal, and is used
by ==.