/*
* 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
{
///
/// The structure of Cost Categories. This includes detailed metadata and the set of rules
/// for the CostCategory
object.
///
public partial class CostCategory
{
private string _costCategoryArn;
private string _defaultValue;
private string _effectiveEnd;
private string _effectiveStart;
private string _name;
private List _processingStatus = new List();
private List _rules = new List();
private CostCategoryRuleVersion _ruleVersion;
private List _splitChargeRules = new List();
///
/// Gets and sets the property CostCategoryArn.
///
/// The unique identifier for your Cost Category.
///
///
[AWSProperty(Required=true, 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 effective end date of your Cost Category.
///
///
[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 effective start date of your Cost Category.
///
///
[AWSProperty(Required=true, 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(Required=true, 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 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 Rules.
///
/// The rules are processed in order. If there are multiple rules that match the line
/// item, then the first rule to match is used to determine that Cost Category value.
///
///
///
[AWSProperty(Required=true, Min=1, Max=500)]
public List Rules
{
get { return this._rules; }
set { this._rules = value; }
}
// Check to see if Rules property is set
internal bool IsSetRules()
{
return this._rules != null && this._rules.Count > 0;
}
///
/// Gets and sets the property RuleVersion.
///
[AWSProperty(Required=true)]
public CostCategoryRuleVersion RuleVersion
{
get { return this._ruleVersion; }
set { this._ruleVersion = value; }
}
// Check to see if RuleVersion property is set
internal bool IsSetRuleVersion()
{
return this._ruleVersion != null;
}
///
/// Gets and sets the property SplitChargeRules.
///
/// The split charge rules that are used to allocate your charges between your Cost Category
/// values.
///
///
[AWSProperty(Min=1, Max=10)]
public List SplitChargeRules
{
get { return this._splitChargeRules; }
set { this._splitChargeRules = value; }
}
// Check to see if SplitChargeRules property is set
internal bool IsSetSplitChargeRules()
{
return this._splitChargeRules != null && this._splitChargeRules.Count > 0;
}
}
}