/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This data type is part of Amazon GameLift FleetIQ with game server
* groups, which is in preview release and is subject to change. An
* allowed instance type for your game server group. GameLift FleetIQ periodically
* evaluates each defined instance type for viability. It then updates the Auto
* Scaling group with the list of viable instance types.See Also:
* AWS
* API Reference
An EC2 instance type designation.
*/ inline const GameServerGroupInstanceType& GetInstanceType() const{ return m_instanceType; } /** *An EC2 instance type designation.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *An EC2 instance type designation.
*/ inline void SetInstanceType(const GameServerGroupInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *An EC2 instance type designation.
*/ inline void SetInstanceType(GameServerGroupInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *An EC2 instance type designation.
*/ inline InstanceDefinition& WithInstanceType(const GameServerGroupInstanceType& value) { SetInstanceType(value); return *this;} /** *An EC2 instance type designation.
*/ inline InstanceDefinition& WithInstanceType(GameServerGroupInstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *Instance weighting that indicates how much this instance type contributes to * the total capacity of a game server group. Instance weights are used by 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 EC2 Auto Scaling User Guide. Default value is * "1".
*/ inline const Aws::String& GetWeightedCapacity() const{ return m_weightedCapacity; } /** *Instance weighting that indicates how much this instance type contributes to * the total capacity of a game server group. Instance weights are used by 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 EC2 Auto Scaling User Guide. Default value is * "1".
*/ inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; } /** *Instance weighting that indicates how much this instance type contributes to * the total capacity of a game server group. Instance weights are used by 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 EC2 Auto Scaling User Guide. Default value is * "1".
*/ inline void SetWeightedCapacity(const Aws::String& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; } /** *Instance weighting that indicates how much this instance type contributes to * the total capacity of a game server group. Instance weights are used by 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 EC2 Auto Scaling User Guide. Default value is * "1".
*/ inline void SetWeightedCapacity(Aws::String&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::move(value); } /** *Instance weighting that indicates how much this instance type contributes to * the total capacity of a game server group. Instance weights are used by 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 EC2 Auto Scaling User Guide. Default value is * "1".
*/ inline void SetWeightedCapacity(const char* value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity.assign(value); } /** *Instance weighting that indicates how much this instance type contributes to * the total capacity of a game server group. Instance weights are used by 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 EC2 Auto Scaling User Guide. Default value is * "1".
*/ inline InstanceDefinition& WithWeightedCapacity(const Aws::String& value) { SetWeightedCapacity(value); return *this;} /** *Instance weighting that indicates how much this instance type contributes to * the total capacity of a game server group. Instance weights are used by 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 EC2 Auto Scaling User Guide. Default value is * "1".
*/ inline InstanceDefinition& WithWeightedCapacity(Aws::String&& value) { SetWeightedCapacity(std::move(value)); return *this;} /** *Instance weighting that indicates how much this instance type contributes to * the total capacity of a game server group. Instance weights are used by 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 EC2 Auto Scaling User Guide. Default value is * "1".
*/ inline InstanceDefinition& WithWeightedCapacity(const char* value) { SetWeightedCapacity(value); return *this;} private: GameServerGroupInstanceType m_instanceType; bool m_instanceTypeHasBeenSet; Aws::String m_weightedCapacity; bool m_weightedCapacityHasBeenSet; }; } // namespace Model } // namespace GameLift } // namespace Aws