#[non_exhaustive]pub struct ResourceCreationLimitPolicyBuilder { /* private fields */ }Expand description
A builder for ResourceCreationLimitPolicy.
Implementations§
source§impl ResourceCreationLimitPolicyBuilder
impl ResourceCreationLimitPolicyBuilder
sourcepub fn new_game_sessions_per_creator(self, input: i32) -> Self
pub fn new_game_sessions_per_creator(self, input: i32) -> Self
A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.
The policy is evaluated when a player tries to create a new game session. On receiving a CreateGameSession request, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than game session limit in the specified time period.
sourcepub fn set_new_game_sessions_per_creator(self, input: Option<i32>) -> Self
pub fn set_new_game_sessions_per_creator(self, input: Option<i32>) -> Self
A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.
The policy is evaluated when a player tries to create a new game session. On receiving a CreateGameSession request, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than game session limit in the specified time period.
sourcepub fn get_new_game_sessions_per_creator(&self) -> &Option<i32>
pub fn get_new_game_sessions_per_creator(&self) -> &Option<i32>
A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.
The policy is evaluated when a player tries to create a new game session. On receiving a CreateGameSession request, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than game session limit in the specified time period.
sourcepub fn policy_period_in_minutes(self, input: i32) -> Self
pub fn policy_period_in_minutes(self, input: i32) -> Self
The time span used in evaluating the resource creation limit policy.
sourcepub fn set_policy_period_in_minutes(self, input: Option<i32>) -> Self
pub fn set_policy_period_in_minutes(self, input: Option<i32>) -> Self
The time span used in evaluating the resource creation limit policy.
sourcepub fn get_policy_period_in_minutes(&self) -> &Option<i32>
pub fn get_policy_period_in_minutes(&self) -> &Option<i32>
The time span used in evaluating the resource creation limit policy.
sourcepub fn build(self) -> ResourceCreationLimitPolicy
pub fn build(self) -> ResourceCreationLimitPolicy
Consumes the builder and constructs a ResourceCreationLimitPolicy.
Trait Implementations§
source§impl Clone for ResourceCreationLimitPolicyBuilder
impl Clone for ResourceCreationLimitPolicyBuilder
source§fn clone(&self) -> ResourceCreationLimitPolicyBuilder
fn clone(&self) -> ResourceCreationLimitPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ResourceCreationLimitPolicyBuilder
impl Default for ResourceCreationLimitPolicyBuilder
source§fn default() -> ResourceCreationLimitPolicyBuilder
fn default() -> ResourceCreationLimitPolicyBuilder
source§impl PartialEq for ResourceCreationLimitPolicyBuilder
impl PartialEq for ResourceCreationLimitPolicyBuilder
source§fn eq(&self, other: &ResourceCreationLimitPolicyBuilder) -> bool
fn eq(&self, other: &ResourceCreationLimitPolicyBuilder) -> bool
self and other values to be equal, and is used
by ==.