/*
* 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 ModifyHosts operation.
/// Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled,
/// any instances that you launch with a tenancy of host
but without a specific
/// host ID are placed onto any available Dedicated Host in your account that has auto-placement
/// enabled. When auto-placement is disabled, you need to provide a host ID to have the
/// instance launch onto a specific host. If no host ID is provided, the instance is launched
/// onto a suitable host with auto-placement enabled.
///
///
///
/// You can also use this API action to modify a Dedicated Host to support either multiple
/// instance types in an instance family, or to support a specific instance type only.
///
///
public partial class ModifyHostsRequest : AmazonEC2Request
{
private AutoPlacement _autoPlacement;
private List _hostIds = new List();
private HostMaintenance _hostMaintenance;
private HostRecovery _hostRecovery;
private string _instanceFamily;
private string _instanceType;
///
/// Gets and sets the property AutoPlacement.
///
/// Specify whether to enable or disable auto-placement.
///
///
public AutoPlacement AutoPlacement
{
get { return this._autoPlacement; }
set { this._autoPlacement = value; }
}
// Check to see if AutoPlacement property is set
internal bool IsSetAutoPlacement()
{
return this._autoPlacement != null;
}
///
/// Gets and sets the property HostIds.
///
/// The IDs of the Dedicated Hosts to modify.
///
///
[AWSProperty(Required=true)]
public List HostIds
{
get { return this._hostIds; }
set { this._hostIds = value; }
}
// Check to see if HostIds property is set
internal bool IsSetHostIds()
{
return this._hostIds != null && this._hostIds.Count > 0;
}
///
/// Gets and sets the property HostMaintenance.
///
/// Indicates whether to enable or disable host maintenance for the Dedicated Host. For
/// more information, see
/// Host maintenance in the Amazon EC2 User Guide.
///
///
public HostMaintenance HostMaintenance
{
get { return this._hostMaintenance; }
set { this._hostMaintenance = value; }
}
// Check to see if HostMaintenance property is set
internal bool IsSetHostMaintenance()
{
return this._hostMaintenance != null;
}
///
/// Gets and sets the property HostRecovery.
///
/// Indicates whether to enable or disable host recovery for the Dedicated Host. For more
/// information, see
/// Host recovery in the Amazon EC2 User Guide.
///
///
public HostRecovery HostRecovery
{
get { return this._hostRecovery; }
set { this._hostRecovery = value; }
}
// Check to see if HostRecovery property is set
internal bool IsSetHostRecovery()
{
return this._hostRecovery != null;
}
///
/// Gets and sets the property InstanceFamily.
///
/// Specifies the instance family to be supported by the Dedicated Host. Specify this
/// parameter to modify a Dedicated Host to support multiple instance types within its
/// current instance family.
///
///
///
/// If you want to modify a Dedicated Host to support a specific instance type only, omit
/// this parameter and specify InstanceType instead. You cannot specify InstanceFamily
/// and InstanceType in the same request.
///
///
public string InstanceFamily
{
get { return this._instanceFamily; }
set { this._instanceFamily = value; }
}
// Check to see if InstanceFamily property is set
internal bool IsSetInstanceFamily()
{
return this._instanceFamily != null;
}
///
/// Gets and sets the property InstanceType.
///
/// Specifies the instance type to be supported by the Dedicated Host. Specify this parameter
/// to modify a Dedicated Host to support only a specific instance type.
///
///
///
/// If you want to modify a Dedicated Host to support multiple instance types in its current
/// instance family, omit this parameter and specify InstanceFamily instead. You
/// cannot specify InstanceType and InstanceFamily in the same request.
///
///
public string InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
}
}