/*
* 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 CreateReservedInstancesListing operation.
/// Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved
/// Instance Marketplace. You can submit one Standard Reserved Instance listing at a time.
/// To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances
/// operation.
///
///
///
/// Only Standard Reserved Instances can be sold in the Reserved Instance Marketplace.
/// Convertible Reserved Instances cannot be sold.
///
///
///
/// The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved
/// Instance capacity that they no longer need with buyers who want to purchase additional
/// capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace
/// work like any other Reserved Instances.
///
///
///
/// To sell your Standard Reserved Instances, you must first register as a seller in the
/// Reserved Instance Marketplace. After completing the registration process, you can
/// create a Reserved Instance Marketplace listing of some or all of your Standard Reserved
/// Instances, and specify the upfront price to receive for them. Your Standard Reserved
/// Instance listings then become available for purchase. To view the details of your
/// Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings
/// operation.
///
///
///
/// For more information, see Reserved
/// Instance Marketplace in the Amazon EC2 User Guide.
///
///
public partial class CreateReservedInstancesListingRequest : AmazonEC2Request
{
private string _clientToken;
private int? _instanceCount;
private List _priceSchedules = new List();
private string _reservedInstancesId;
///
/// Gets and sets the property ClientToken.
///
/// Unique, case-sensitive identifier you provide to ensure idempotency of your listings.
/// This helps avoid duplicate listings. For more information, see Ensuring
/// Idempotency.
///
///
[AWSProperty(Required=true)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property InstanceCount.
///
/// The number of instances that are a part of a Reserved Instance account to be listed
/// in the Reserved Instance Marketplace. This number should be less than or equal to
/// the instance count associated with the Reserved Instance ID specified in this call.
///
///
[AWSProperty(Required=true)]
public int InstanceCount
{
get { return this._instanceCount.GetValueOrDefault(); }
set { this._instanceCount = value; }
}
// Check to see if InstanceCount property is set
internal bool IsSetInstanceCount()
{
return this._instanceCount.HasValue;
}
///
/// Gets and sets the property PriceSchedules.
///
/// A list specifying the price of the Standard Reserved Instance for each month remaining
/// in the Reserved Instance term.
///
///
[AWSProperty(Required=true)]
public List PriceSchedules
{
get { return this._priceSchedules; }
set { this._priceSchedules = value; }
}
// Check to see if PriceSchedules property is set
internal bool IsSetPriceSchedules()
{
return this._priceSchedules != null && this._priceSchedules.Count > 0;
}
///
/// Gets and sets the property ReservedInstancesId.
///
/// The ID of the active Standard Reserved Instance.
///
///
[AWSProperty(Required=true)]
public string ReservedInstancesId
{
get { return this._reservedInstancesId; }
set { this._reservedInstancesId = value; }
}
// Check to see if ReservedInstancesId property is set
internal bool IsSetReservedInstancesId()
{
return this._reservedInstancesId != null;
}
}
}