/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GameLift { namespace Model { /** *

The Amazon GameLift service limits for an Amazon EC2 instance type and * current utilization. Amazon GameLift allows Amazon Web Services accounts a * maximum number of instances, per instance type, per Amazon Web Services Region * or location, for use with Amazon GameLift. You can request an limit increase for * your account by using the Service limits page in the Amazon GameLift * console.

See Also:

AWS * API Reference

*/ class EC2InstanceLimit { public: AWS_GAMELIFT_API EC2InstanceLimit(); AWS_GAMELIFT_API EC2InstanceLimit(Aws::Utils::Json::JsonView jsonValue); AWS_GAMELIFT_API EC2InstanceLimit& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of an Amazon EC2 instance type. See Amazon Elastic Compute Cloud * Instance Types for detailed descriptions.

*/ inline const EC2InstanceType& GetEC2InstanceType() const{ return m_eC2InstanceType; } /** *

The name of an Amazon EC2 instance type. See Amazon Elastic Compute Cloud * Instance Types for detailed descriptions.

*/ inline bool EC2InstanceTypeHasBeenSet() const { return m_eC2InstanceTypeHasBeenSet; } /** *

The name of an Amazon EC2 instance type. See Amazon Elastic Compute Cloud * Instance Types for detailed descriptions.

*/ inline void SetEC2InstanceType(const EC2InstanceType& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = value; } /** *

The name of an Amazon EC2 instance type. See Amazon Elastic Compute Cloud * Instance Types for detailed descriptions.

*/ inline void SetEC2InstanceType(EC2InstanceType&& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = std::move(value); } /** *

The name of an Amazon EC2 instance type. See Amazon Elastic Compute Cloud * Instance Types for detailed descriptions.

*/ inline EC2InstanceLimit& WithEC2InstanceType(const EC2InstanceType& value) { SetEC2InstanceType(value); return *this;} /** *

The name of an Amazon EC2 instance type. See Amazon Elastic Compute Cloud * Instance Types for detailed descriptions.

*/ inline EC2InstanceLimit& WithEC2InstanceType(EC2InstanceType&& value) { SetEC2InstanceType(std::move(value)); return *this;} /** *

The number of instances for the specified type and location that are * currently being used by the Amazon Web Services account.

*/ inline int GetCurrentInstances() const{ return m_currentInstances; } /** *

The number of instances for the specified type and location that are * currently being used by the Amazon Web Services account.

*/ inline bool CurrentInstancesHasBeenSet() const { return m_currentInstancesHasBeenSet; } /** *

The number of instances for the specified type and location that are * currently being used by the Amazon Web Services account.

*/ inline void SetCurrentInstances(int value) { m_currentInstancesHasBeenSet = true; m_currentInstances = value; } /** *

The number of instances for the specified type and location that are * currently being used by the Amazon Web Services account.

*/ inline EC2InstanceLimit& WithCurrentInstances(int value) { SetCurrentInstances(value); return *this;} /** *

The number of instances that is allowed for the specified instance type and * location.

*/ inline int GetInstanceLimit() const{ return m_instanceLimit; } /** *

The number of instances that is allowed for the specified instance type and * location.

*/ inline bool InstanceLimitHasBeenSet() const { return m_instanceLimitHasBeenSet; } /** *

The number of instances that is allowed for the specified instance type and * location.

*/ inline void SetInstanceLimit(int value) { m_instanceLimitHasBeenSet = true; m_instanceLimit = value; } /** *

The number of instances that is allowed for the specified instance type and * location.

*/ inline EC2InstanceLimit& WithInstanceLimit(int value) { SetInstanceLimit(value); return *this;} /** *

An Amazon Web Services Region code, such as us-west-2.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

An Amazon Web Services Region code, such as us-west-2.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

An Amazon Web Services Region code, such as us-west-2.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

An Amazon Web Services Region code, such as us-west-2.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

An Amazon Web Services Region code, such as us-west-2.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

An Amazon Web Services Region code, such as us-west-2.

*/ inline EC2InstanceLimit& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

An Amazon Web Services Region code, such as us-west-2.

*/ inline EC2InstanceLimit& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

An Amazon Web Services Region code, such as us-west-2.

*/ inline EC2InstanceLimit& WithLocation(const char* value) { SetLocation(value); return *this;} private: EC2InstanceType m_eC2InstanceType; bool m_eC2InstanceTypeHasBeenSet = false; int m_currentInstances; bool m_currentInstancesHasBeenSet = false; int m_instanceLimit; bool m_instanceLimitHasBeenSet = false; Aws::String m_location; bool m_locationHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws