Struct aws_sdk_gamelift::types::builders::InstanceDefinitionBuilder
source · #[non_exhaustive]pub struct InstanceDefinitionBuilder { /* private fields */ }Expand description
A builder for InstanceDefinition.
Implementations§
source§impl InstanceDefinitionBuilder
impl InstanceDefinitionBuilder
sourcepub fn instance_type(self, input: GameServerGroupInstanceType) -> Self
pub fn instance_type(self, input: GameServerGroupInstanceType) -> Self
An Amazon EC2 instance type designation.
sourcepub fn set_instance_type(
self,
input: Option<GameServerGroupInstanceType>
) -> Self
pub fn set_instance_type( self, input: Option<GameServerGroupInstanceType> ) -> Self
An Amazon EC2 instance type designation.
sourcepub fn get_instance_type(&self) -> &Option<GameServerGroupInstanceType>
pub fn get_instance_type(&self) -> &Option<GameServerGroupInstanceType>
An Amazon EC2 instance type designation.
sourcepub fn weighted_capacity(self, input: impl Into<String>) -> Self
pub fn weighted_capacity(self, input: impl Into<String>) -> Self
Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. Instance weights are used by Amazon GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify the most cost-effective options. For detailed information on weighting instance capacity, see Instance Weighting in the Amazon Elastic Compute Cloud Auto Scaling User Guide. Default value is "1".
sourcepub fn set_weighted_capacity(self, input: Option<String>) -> Self
pub fn set_weighted_capacity(self, input: Option<String>) -> Self
Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. Instance weights are used by Amazon GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify the most cost-effective options. For detailed information on weighting instance capacity, see Instance Weighting in the Amazon Elastic Compute Cloud Auto Scaling User Guide. Default value is "1".
sourcepub fn get_weighted_capacity(&self) -> &Option<String>
pub fn get_weighted_capacity(&self) -> &Option<String>
Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. Instance weights are used by Amazon GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify the most cost-effective options. For detailed information on weighting instance capacity, see Instance Weighting in the Amazon Elastic Compute Cloud Auto Scaling User Guide. Default value is "1".
sourcepub fn build(self) -> InstanceDefinition
pub fn build(self) -> InstanceDefinition
Consumes the builder and constructs a InstanceDefinition.
Trait Implementations§
source§impl Clone for InstanceDefinitionBuilder
impl Clone for InstanceDefinitionBuilder
source§fn clone(&self) -> InstanceDefinitionBuilder
fn clone(&self) -> InstanceDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for InstanceDefinitionBuilder
impl Debug for InstanceDefinitionBuilder
source§impl Default for InstanceDefinitionBuilder
impl Default for InstanceDefinitionBuilder
source§fn default() -> InstanceDefinitionBuilder
fn default() -> InstanceDefinitionBuilder
source§impl PartialEq<InstanceDefinitionBuilder> for InstanceDefinitionBuilder
impl PartialEq<InstanceDefinitionBuilder> for InstanceDefinitionBuilder
source§fn eq(&self, other: &InstanceDefinitionBuilder) -> bool
fn eq(&self, other: &InstanceDefinitionBuilder) -> bool
self and other values to be equal, and is used
by ==.