/*
* 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
{
///
/// Details about the Dedicated Host Reservation offering.
///
public partial class HostOffering
{
private CurrencyCodeValues _currencyCode;
private int? _duration;
private string _hourlyPrice;
private string _instanceFamily;
private string _offeringId;
private PaymentOption _paymentOption;
private string _upfrontPrice;
///
/// Gets and sets the property CurrencyCode.
///
/// The currency of the offering.
///
///
public CurrencyCodeValues 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 Duration.
///
/// The duration of the offering (in seconds).
///
///
public int Duration
{
get { return this._duration.GetValueOrDefault(); }
set { this._duration = value; }
}
// Check to see if Duration property is set
internal bool IsSetDuration()
{
return this._duration.HasValue;
}
///
/// Gets and sets the property HourlyPrice.
///
/// The hourly price of the offering.
///
///
public string HourlyPrice
{
get { return this._hourlyPrice; }
set { this._hourlyPrice = value; }
}
// Check to see if HourlyPrice property is set
internal bool IsSetHourlyPrice()
{
return this._hourlyPrice != null;
}
///
/// Gets and sets the property InstanceFamily.
///
/// The instance family of the offering.
///
///
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 OfferingId.
///
/// The ID of the offering.
///
///
public string OfferingId
{
get { return this._offeringId; }
set { this._offeringId = value; }
}
// Check to see if OfferingId property is set
internal bool IsSetOfferingId()
{
return this._offeringId != null;
}
///
/// Gets and sets the property PaymentOption.
///
/// The available payment option.
///
///
public PaymentOption PaymentOption
{
get { return this._paymentOption; }
set { this._paymentOption = value; }
}
// Check to see if PaymentOption property is set
internal bool IsSetPaymentOption()
{
return this._paymentOption != null;
}
///
/// Gets and sets the property UpfrontPrice.
///
/// The upfront price of the offering. Does not apply to No Upfront offerings.
///
///
public string UpfrontPrice
{
get { return this._upfrontPrice; }
set { this._upfrontPrice = value; }
}
// Check to see if UpfrontPrice property is set
internal bool IsSetUpfrontPrice()
{
return this._upfrontPrice != null;
}
}
}