Struct aws_sdk_gamelift::types::builders::ServerProcessBuilder
source · #[non_exhaustive]pub struct ServerProcessBuilder { /* private fields */ }Expand description
A builder for ServerProcess.
Implementations§
source§impl ServerProcessBuilder
impl ServerProcessBuilder
sourcepub fn launch_path(self, input: impl Into<String>) -> Self
pub fn launch_path(self, input: impl Into<String>) -> Self
The location of a game build executable or the Realtime script file that contains the Init() function. Game builds and Realtime scripts are installed on instances at the root:
-
Windows (custom game builds only):
C:\game. Example: "C:\game\MyGame\server.exe" -
Linux:
/local/game. Examples: "/local/game/MyGame/server.exe" or "/local/game/MyRealtimeScript.js"
sourcepub fn set_launch_path(self, input: Option<String>) -> Self
pub fn set_launch_path(self, input: Option<String>) -> Self
The location of a game build executable or the Realtime script file that contains the Init() function. Game builds and Realtime scripts are installed on instances at the root:
-
Windows (custom game builds only):
C:\game. Example: "C:\game\MyGame\server.exe" -
Linux:
/local/game. Examples: "/local/game/MyGame/server.exe" or "/local/game/MyRealtimeScript.js"
sourcepub fn get_launch_path(&self) -> &Option<String>
pub fn get_launch_path(&self) -> &Option<String>
The location of a game build executable or the Realtime script file that contains the Init() function. Game builds and Realtime scripts are installed on instances at the root:
-
Windows (custom game builds only):
C:\game. Example: "C:\game\MyGame\server.exe" -
Linux:
/local/game. Examples: "/local/game/MyGame/server.exe" or "/local/game/MyRealtimeScript.js"
sourcepub fn parameters(self, input: impl Into<String>) -> Self
pub fn parameters(self, input: impl Into<String>) -> Self
An optional list of parameters to pass to the server executable or Realtime script on launch.
sourcepub fn set_parameters(self, input: Option<String>) -> Self
pub fn set_parameters(self, input: Option<String>) -> Self
An optional list of parameters to pass to the server executable or Realtime script on launch.
sourcepub fn get_parameters(&self) -> &Option<String>
pub fn get_parameters(&self) -> &Option<String>
An optional list of parameters to pass to the server executable or Realtime script on launch.
sourcepub fn concurrent_executions(self, input: i32) -> Self
pub fn concurrent_executions(self, input: i32) -> Self
The number of server processes using this configuration that run concurrently on each instance.
sourcepub fn set_concurrent_executions(self, input: Option<i32>) -> Self
pub fn set_concurrent_executions(self, input: Option<i32>) -> Self
The number of server processes using this configuration that run concurrently on each instance.
sourcepub fn get_concurrent_executions(&self) -> &Option<i32>
pub fn get_concurrent_executions(&self) -> &Option<i32>
The number of server processes using this configuration that run concurrently on each instance.
sourcepub fn build(self) -> ServerProcess
pub fn build(self) -> ServerProcess
Consumes the builder and constructs a ServerProcess.
Trait Implementations§
source§impl Clone for ServerProcessBuilder
impl Clone for ServerProcessBuilder
source§fn clone(&self) -> ServerProcessBuilder
fn clone(&self) -> ServerProcessBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ServerProcessBuilder
impl Debug for ServerProcessBuilder
source§impl Default for ServerProcessBuilder
impl Default for ServerProcessBuilder
source§fn default() -> ServerProcessBuilder
fn default() -> ServerProcessBuilder
source§impl PartialEq<ServerProcessBuilder> for ServerProcessBuilder
impl PartialEq<ServerProcessBuilder> for ServerProcessBuilder
source§fn eq(&self, other: &ServerProcessBuilder) -> bool
fn eq(&self, other: &ServerProcessBuilder) -> bool
self and other values to be equal, and is used
by ==.