/*
* 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
{
///
/// Contains the output of GetReservedInstancesExchangeQuote.
///
public partial class GetReservedInstancesExchangeQuoteResponse : AmazonWebServiceResponse
{
private string _currencyCode;
private bool? _isValidExchange;
private DateTime? _outputReservedInstancesWillExpireAt;
private string _paymentDue;
private ReservationValue _reservedInstanceValueRollup;
private List _reservedInstanceValueSet = new List();
private ReservationValue _targetConfigurationValueRollup;
private List _targetConfigurationValueSet = new List();
private string _validationFailureReason;
///
/// Gets and sets the property CurrencyCode.
///
/// The currency of the transaction.
///
///
public string CurrencyCode
{
get { return this._currencyCode; }
set { this._currencyCode = value; }
}
// Check to see if CurrencyCode property is set
internal bool IsSetCurrencyCode()
{
return this._currencyCode != null;
}
///
/// Gets and sets the property IsValidExchange.
///
/// If true
, the exchange is valid. If false
, the exchange cannot
/// be completed.
///
///
public bool IsValidExchange
{
get { return this._isValidExchange.GetValueOrDefault(); }
set { this._isValidExchange = value; }
}
// Check to see if IsValidExchange property is set
internal bool IsSetIsValidExchange()
{
return this._isValidExchange.HasValue;
}
///
/// Gets and sets the property OutputReservedInstancesWillExpireAt.
///
/// The new end date of the reservation term.
///
///
public DateTime OutputReservedInstancesWillExpireAt
{
get { return this._outputReservedInstancesWillExpireAt.GetValueOrDefault(); }
set { this._outputReservedInstancesWillExpireAt = value; }
}
// Check to see if OutputReservedInstancesWillExpireAt property is set
internal bool IsSetOutputReservedInstancesWillExpireAt()
{
return this._outputReservedInstancesWillExpireAt.HasValue;
}
///
/// Gets and sets the property PaymentDue.
///
/// The total true upfront charge for the exchange.
///
///
public string PaymentDue
{
get { return this._paymentDue; }
set { this._paymentDue = value; }
}
// Check to see if PaymentDue property is set
internal bool IsSetPaymentDue()
{
return this._paymentDue != null;
}
///
/// Gets and sets the property ReservedInstanceValueRollup.
///
/// The cost associated with the Reserved Instance.
///
///
public ReservationValue ReservedInstanceValueRollup
{
get { return this._reservedInstanceValueRollup; }
set { this._reservedInstanceValueRollup = value; }
}
// Check to see if ReservedInstanceValueRollup property is set
internal bool IsSetReservedInstanceValueRollup()
{
return this._reservedInstanceValueRollup != null;
}
///
/// Gets and sets the property ReservedInstanceValueSet.
///
/// The configuration of your Convertible Reserved Instances.
///
///
public List ReservedInstanceValueSet
{
get { return this._reservedInstanceValueSet; }
set { this._reservedInstanceValueSet = value; }
}
// Check to see if ReservedInstanceValueSet property is set
internal bool IsSetReservedInstanceValueSet()
{
return this._reservedInstanceValueSet != null && this._reservedInstanceValueSet.Count > 0;
}
///
/// Gets and sets the property TargetConfigurationValueRollup.
///
/// The cost associated with the Reserved Instance.
///
///
public ReservationValue TargetConfigurationValueRollup
{
get { return this._targetConfigurationValueRollup; }
set { this._targetConfigurationValueRollup = value; }
}
// Check to see if TargetConfigurationValueRollup property is set
internal bool IsSetTargetConfigurationValueRollup()
{
return this._targetConfigurationValueRollup != null;
}
///
/// Gets and sets the property TargetConfigurationValueSet.
///
/// The values of the target Convertible Reserved Instances.
///
///
public List TargetConfigurationValueSet
{
get { return this._targetConfigurationValueSet; }
set { this._targetConfigurationValueSet = value; }
}
// Check to see if TargetConfigurationValueSet property is set
internal bool IsSetTargetConfigurationValueSet()
{
return this._targetConfigurationValueSet != null && this._targetConfigurationValueSet.Count > 0;
}
///
/// Gets and sets the property ValidationFailureReason.
///
/// Describes the reason why the exchange cannot be completed.
///
///
public string ValidationFailureReason
{
get { return this._validationFailureReason; }
set { this._validationFailureReason = value; }
}
// Check to see if ValidationFailureReason property is set
internal bool IsSetValidationFailureReason()
{
return this._validationFailureReason != null;
}
}
}