/*
* 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 savingsplans-2019-06-28.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.SavingsPlans.Model
{
///
/// Information about a Savings Plan offering.
///
public partial class ParentSavingsPlanOffering
{
private CurrencyCode _currency;
private long? _durationSeconds;
private string _offeringId;
private SavingsPlanPaymentOption _paymentOption;
private string _planDescription;
private SavingsPlanType _planType;
///
/// Gets and sets the property Currency.
///
/// The currency.
///
///
public CurrencyCode Currency
{
get { return this._currency; }
set { this._currency = value; }
}
// Check to see if Currency property is set
internal bool IsSetCurrency()
{
return this._currency != null;
}
///
/// Gets and sets the property DurationSeconds.
///
/// The duration, in seconds.
///
///
[AWSProperty(Min=0)]
public long DurationSeconds
{
get { return this._durationSeconds.GetValueOrDefault(); }
set { this._durationSeconds = value; }
}
// Check to see if DurationSeconds property is set
internal bool IsSetDurationSeconds()
{
return this._durationSeconds.HasValue;
}
///
/// 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 payment option.
///
///
public SavingsPlanPaymentOption 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 PlanDescription.
///
/// The description.
///
///
public string PlanDescription
{
get { return this._planDescription; }
set { this._planDescription = value; }
}
// Check to see if PlanDescription property is set
internal bool IsSetPlanDescription()
{
return this._planDescription != null;
}
///
/// Gets and sets the property PlanType.
///
/// The plan type.
///
///
public SavingsPlanType PlanType
{
get { return this._planType; }
set { this._planType = value; }
}
// Check to see if PlanType property is set
internal bool IsSetPlanType()
{
return this._planType != null;
}
}
}