/*
 * 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 SavingsPlanOffering
    {
        private CurrencyCode _currency;
        private string _description;
        private long? _durationSeconds;
        private string _offeringId;
        private string _operation;
        private SavingsPlanPaymentOption _paymentOption;
        private SavingsPlanType _planType;
        private List _productTypes = new List();
        private List _properties = new List();
        private string _serviceCode;
        private string _usageType;
        /// 
        /// 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 Description. 
        /// 
        /// The description.
        /// 
        /// 
        public string Description
        {
            get { return this._description; }
            set { this._description = value; }
        }
        // Check to see if Description property is set
        internal bool IsSetDescription()
        {
            return this._description != 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 Operation. 
        /// 
        /// The specific AWS operation for the line item in the billing report.
        /// 
        /// 
        [AWSProperty(Max=255)]
        public string Operation
        {
            get { return this._operation; }
            set { this._operation = value; }
        }
        // Check to see if Operation property is set
        internal bool IsSetOperation()
        {
            return this._operation != 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 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;
        }
        /// 
        /// Gets and sets the property ProductTypes. 
        /// 
        /// The product type.
        /// 
        /// 
        public List ProductTypes
        {
            get { return this._productTypes; }
            set { this._productTypes = value; }
        }
        // Check to see if ProductTypes property is set
        internal bool IsSetProductTypes()
        {
            return this._productTypes != null && this._productTypes.Count > 0; 
        }
        /// 
        /// Gets and sets the property Properties. 
        /// 
        /// The properties.
        /// 
        /// 
        public List Properties
        {
            get { return this._properties; }
            set { this._properties = value; }
        }
        // Check to see if Properties property is set
        internal bool IsSetProperties()
        {
            return this._properties != null && this._properties.Count > 0; 
        }
        /// 
        /// Gets and sets the property ServiceCode. 
        /// 
        /// The service.
        /// 
        /// 
        [AWSProperty(Max=255)]
        public string ServiceCode
        {
            get { return this._serviceCode; }
            set { this._serviceCode = value; }
        }
        // Check to see if ServiceCode property is set
        internal bool IsSetServiceCode()
        {
            return this._serviceCode != null;
        }
        /// 
        /// Gets and sets the property UsageType. 
        /// 
        /// The usage details of the line item in the billing report.
        /// 
        /// 
        [AWSProperty(Max=255)]
        public string UsageType
        {
            get { return this._usageType; }
            set { this._usageType = value; }
        }
        // Check to see if UsageType property is set
        internal bool IsSetUsageType()
        {
            return this._usageType != null;
        }
    }
}