/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the gamelift-2015-10-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.GameLift.Model { /// /// Container for the parameters to the UpdateFleetCapacity operation. /// Updates capacity settings for a fleet. For fleets with multiple locations, use this /// operation to manage capacity settings in each location individually. Fleet capacity /// determines the number of game sessions and players that can be hosted based on the /// fleet configuration. Use this operation to set the following fleet capacity properties: /// /// /// /// /// This operation can be used in the following ways: /// /// /// /// If successful, capacity settings are updated immediately. In response a change in /// desired capacity, Amazon GameLift initiates steps to start new instances or terminate /// existing instances in the requested fleet location. This continues until the location's /// active instance count matches the new desired instance count. You can track a fleet's /// current capacity by calling DescribeFleetCapacity /// or DescribeFleetLocationCapacity. /// If the requested desired instance count is higher than the instance type's limit, /// the LimitExceeded exception occurs. /// /// /// /// Learn more /// /// /// /// Scaling /// fleet capacity /// /// public partial class UpdateFleetCapacityRequest : AmazonGameLiftRequest { private int? _desiredInstances; private string _fleetId; private string _location; private int? _maxSize; private int? _minSize; /// /// Gets and sets the property DesiredInstances. /// /// The number of Amazon EC2 instances you want to maintain in the specified fleet location. /// This value must fall between the minimum and maximum size limits. /// /// [AWSProperty(Min=0)] public int DesiredInstances { get { return this._desiredInstances.GetValueOrDefault(); } set { this._desiredInstances = value; } } // Check to see if DesiredInstances property is set internal bool IsSetDesiredInstances() { return this._desiredInstances.HasValue; } /// /// Gets and sets the property FleetId. /// /// A unique identifier for the fleet to update capacity settings for. You can use either /// the fleet ID or ARN value. /// /// [AWSProperty(Required=true)] public string FleetId { get { return this._fleetId; } set { this._fleetId = value; } } // Check to see if FleetId property is set internal bool IsSetFleetId() { return this._fleetId != null; } /// /// Gets and sets the property Location. /// /// The name of a remote location to update fleet capacity settings for, in the form of /// an Amazon Web Services Region code such as us-west-2. /// /// [AWSProperty(Min=1, Max=64)] public string Location { get { return this._location; } set { this._location = value; } } // Check to see if Location property is set internal bool IsSetLocation() { return this._location != null; } /// /// Gets and sets the property MaxSize. /// /// The maximum number of instances that are allowed in the specified fleet location. /// If this parameter is not set, the default is 1. /// /// [AWSProperty(Min=0)] public int MaxSize { get { return this._maxSize.GetValueOrDefault(); } set { this._maxSize = value; } } // Check to see if MaxSize property is set internal bool IsSetMaxSize() { return this._maxSize.HasValue; } /// /// Gets and sets the property MinSize. /// /// The minimum number of instances that are allowed in the specified fleet location. /// If this parameter is not set, the default is 0. /// /// [AWSProperty(Min=0)] public int MinSize { get { return this._minSize.GetValueOrDefault(); } set { this._minSize = value; } } // Check to see if MinSize property is set internal bool IsSetMinSize() { return this._minSize.HasValue; } } }