/** * 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 GameLift { namespace Model { /** *

Represents the input for a request action.

See Also:

AWS * API Reference

*/ class AWS_GAMELIFT_API UpdateFleetCapacityRequest : public GameLiftRequest { public: UpdateFleetCapacityRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetCapacity"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A unique identifier for a fleet to update capacity for. You can use either * the fleet ID or ARN value.

*/ inline const Aws::String& GetFleetId() const{ return m_fleetId; } /** *

A unique identifier for a fleet to update capacity for. You can use either * the fleet ID or ARN value.

*/ inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; } /** *

A unique identifier for a fleet to update capacity for. You can use either * the fleet ID or ARN value.

*/ inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; } /** *

A unique identifier for a fleet to update capacity for. You can use either * the fleet ID or ARN value.

*/ inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); } /** *

A unique identifier for a fleet to update capacity for. You can use either * the fleet ID or ARN value.

*/ inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); } /** *

A unique identifier for a fleet to update capacity for. You can use either * the fleet ID or ARN value.

*/ inline UpdateFleetCapacityRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;} /** *

A unique identifier for a fleet to update capacity for. You can use either * the fleet ID or ARN value.

*/ inline UpdateFleetCapacityRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;} /** *

A unique identifier for a fleet to update capacity for. You can use either * the fleet ID or ARN value.

*/ inline UpdateFleetCapacityRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;} /** *

Number of EC2 instances you want this fleet to host.

*/ inline int GetDesiredInstances() const{ return m_desiredInstances; } /** *

Number of EC2 instances you want this fleet to host.

*/ inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; } /** *

Number of EC2 instances you want this fleet to host.

*/ inline void SetDesiredInstances(int value) { m_desiredInstancesHasBeenSet = true; m_desiredInstances = value; } /** *

Number of EC2 instances you want this fleet to host.

*/ inline UpdateFleetCapacityRequest& WithDesiredInstances(int value) { SetDesiredInstances(value); return *this;} /** *

The minimum value allowed for the fleet's instance count. Default if not set * is 0.

*/ inline int GetMinSize() const{ return m_minSize; } /** *

The minimum value allowed for the fleet's instance count. Default if not set * is 0.

*/ inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; } /** *

The minimum value allowed for the fleet's instance count. Default if not set * is 0.

*/ inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; } /** *

The minimum value allowed for the fleet's instance count. Default if not set * is 0.

*/ inline UpdateFleetCapacityRequest& WithMinSize(int value) { SetMinSize(value); return *this;} /** *

The maximum value allowed for the fleet's instance count. Default if not set * is 1.

*/ inline int GetMaxSize() const{ return m_maxSize; } /** *

The maximum value allowed for the fleet's instance count. Default if not set * is 1.

*/ inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; } /** *

The maximum value allowed for the fleet's instance count. Default if not set * is 1.

*/ inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; } /** *

The maximum value allowed for the fleet's instance count. Default if not set * is 1.

*/ inline UpdateFleetCapacityRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;} private: Aws::String m_fleetId; bool m_fleetIdHasBeenSet; int m_desiredInstances; bool m_desiredInstancesHasBeenSet; int m_minSize; bool m_minSizeHasBeenSet; int m_maxSize; bool m_maxSizeHasBeenSet; }; } // namespace Model } // namespace GameLift } // namespace Aws