/*
* 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 DescribeReservedInstancesListings operation.
/// Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.
///
///
///
/// The Reserved Instance Marketplace matches sellers who want to resell 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.
///
///
///
/// As a seller, you choose to list some or all of your Reserved Instances, and you specify
/// the upfront price to receive for them. Your Reserved Instances are then listed in
/// the Reserved Instance Marketplace and are available for purchase.
///
///
///
/// As a buyer, you specify the configuration of the Reserved Instance to purchase, and
/// the Marketplace matches what you're searching for with what's available. The Marketplace
/// first sells the lowest priced Reserved Instances to you, and continues to sell available
/// Reserved Instance listings to you until your demand is met. You are charged based
/// on the total price of all of the listings that you purchase.
///
///
///
/// For more information, see Reserved
/// Instance Marketplace in the Amazon EC2 User Guide.
///
///
public partial class DescribeReservedInstancesListingsRequest : AmazonEC2Request
{
private List _filters = new List();
private string _reservedInstancesId;
private string _reservedInstancesListingId;
///
/// Gets and sets the property Filters.
///
/// One or more filters.
///
/// -
///
///
reserved-instances-id
- The ID of the Reserved Instances.
///
/// -
///
///
reserved-instances-listing-id
- The ID of the Reserved Instances listing.
///
/// -
///
///
status
- The status of the Reserved Instance listing (pending
/// | active
| cancelled
| closed
).
///
/// -
///
///
status-message
- The reason for the status.
///
///
///
public List Filters
{
get { return this._filters; }
set { this._filters = value; }
}
// Check to see if Filters property is set
internal bool IsSetFilters()
{
return this._filters != null && this._filters.Count > 0;
}
///
/// Gets and sets the property ReservedInstancesId.
///
/// One or more Reserved Instance IDs.
///
///
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;
}
///
/// Gets and sets the property ReservedInstancesListingId.
///
/// One or more Reserved Instance listing IDs.
///
///
public string ReservedInstancesListingId
{
get { return this._reservedInstancesListingId; }
set { this._reservedInstancesListingId = value; }
}
// Check to see if ReservedInstancesListingId property is set
internal bool IsSetReservedInstancesListingId()
{
return this._reservedInstancesListingId != null;
}
}
}