/* * 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 ec2-2016-11-15.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.EC2.Model { /// /// Container for the parameters to the StartInstances operation. /// Starts an Amazon EBS-backed instance that you've previously stopped. /// /// /// /// Instances that use Amazon EBS volumes as their root devices can be quickly stopped /// and started. When an instance is stopped, the compute resources are released and you /// are not billed for instance usage. However, your root partition Amazon EBS volume /// remains and continues to persist your data, and you are charged for Amazon EBS volume /// usage. You can restart your instance at any time. Every time you start your instance, /// Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges /// per second for instance usage. /// /// /// /// Before stopping an instance, make sure it is in a state from which it can be restarted. /// Stopping an instance does not preserve data stored in RAM. /// /// /// /// Performing this operation on an instance that uses an instance store as its root device /// returns an error. /// /// /// /// If you attempt to start a T3 instance with host tenancy and the unlimted /// CPU credit option, the request fails. The unlimited CPU credit option /// is not supported on Dedicated Hosts. Before you start the instance, either change /// its CPU credit option to standard, or change its tenancy to default /// or dedicated. /// /// /// /// For more information, see Stop /// and start your instance in the Amazon EC2 User Guide. /// /// public partial class StartInstancesRequest : AmazonEC2Request { private string _additionalInfo; private List _instanceIds = new List(); /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public StartInstancesRequest() { } /// /// Instantiates StartInstancesRequest with the parameterized properties /// /// The IDs of the instances. public StartInstancesRequest(List instanceIds) { _instanceIds = instanceIds; } /// /// Gets and sets the property AdditionalInfo. /// /// Reserved. /// /// public string AdditionalInfo { get { return this._additionalInfo; } set { this._additionalInfo = value; } } // Check to see if AdditionalInfo property is set internal bool IsSetAdditionalInfo() { return this._additionalInfo != null; } /// /// Gets and sets the property InstanceIds. /// /// The IDs of the instances. /// /// [AWSProperty(Required=true)] public List InstanceIds { get { return this._instanceIds; } set { this._instanceIds = value; } } // Check to see if InstanceIds property is set internal bool IsSetInstanceIds() { return this._instanceIds != null && this._instanceIds.Count > 0; } } }