/* * 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 ce-2017-10-25.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.CostExplorer.Model { /// /// A reference to a Cost Category containing only enough information to identify the /// Cost Category. /// /// /// /// You can use this information to retrieve the full Cost Category information using /// DescribeCostCategory. /// /// public partial class CostCategoryReference { private string _costCategoryArn; private string _defaultValue; private string _effectiveEnd; private string _effectiveStart; private string _name; private int? _numberOfRules; private List _processingStatus = new List(); private List _values = new List(); /// /// Gets and sets the property CostCategoryArn. /// /// The unique identifier for your Cost Category. /// /// [AWSProperty(Min=20, Max=2048)] public string CostCategoryArn { get { return this._costCategoryArn; } set { this._costCategoryArn = value; } } // Check to see if CostCategoryArn property is set internal bool IsSetCostCategoryArn() { return this._costCategoryArn != null; } /// /// Gets and sets the property DefaultValue. /// [AWSProperty(Min=1, Max=50)] public string DefaultValue { get { return this._defaultValue; } set { this._defaultValue = value; } } // Check to see if DefaultValue property is set internal bool IsSetDefaultValue() { return this._defaultValue != null; } /// /// Gets and sets the property EffectiveEnd. /// /// The Cost Category's effective end date. /// /// [AWSProperty(Min=20, Max=25)] public string EffectiveEnd { get { return this._effectiveEnd; } set { this._effectiveEnd = value; } } // Check to see if EffectiveEnd property is set internal bool IsSetEffectiveEnd() { return this._effectiveEnd != null; } /// /// Gets and sets the property EffectiveStart. /// /// The Cost Category's effective start date. /// /// [AWSProperty(Min=20, Max=25)] public string EffectiveStart { get { return this._effectiveStart; } set { this._effectiveStart = value; } } // Check to see if EffectiveStart property is set internal bool IsSetEffectiveStart() { return this._effectiveStart != null; } /// /// Gets and sets the property Name. /// [AWSProperty(Min=1, Max=50)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property NumberOfRules. /// /// The number of rules that are associated with a specific Cost Category. /// /// [AWSProperty(Min=0)] public int NumberOfRules { get { return this._numberOfRules.GetValueOrDefault(); } set { this._numberOfRules = value; } } // Check to see if NumberOfRules property is set internal bool IsSetNumberOfRules() { return this._numberOfRules.HasValue; } /// /// Gets and sets the property ProcessingStatus. /// /// The list of processing statuses for Cost Management products for a specific cost category. /// /// /// public List ProcessingStatus { get { return this._processingStatus; } set { this._processingStatus = value; } } // Check to see if ProcessingStatus property is set internal bool IsSetProcessingStatus() { return this._processingStatus != null && this._processingStatus.Count > 0; } /// /// Gets and sets the property Values. /// /// A list of unique cost category values in a specific cost category. /// /// public List Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }