/* * 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 { /// /// When you create or update a cost category, you can define the CostCategoryRule /// rule type as INHERITED_VALUE. This rule type adds the flexibility to /// define a rule that dynamically inherits the cost category value from the dimension /// value that's defined by CostCategoryInheritedValueDimension. For example, /// suppose that you want to dynamically group costs that are based on the value of a /// specific tag key. First, choose an inherited value rule type, and then choose the /// tag dimension and specify the tag key to use. /// public partial class CostCategoryInheritedValueDimension { private string _dimensionKey; private CostCategoryInheritedValueDimensionName _dimensionName; /// /// Gets and sets the property DimensionKey. /// /// The key to extract cost category values. /// /// [AWSProperty(Min=0, Max=1024)] public string DimensionKey { get { return this._dimensionKey; } set { this._dimensionKey = value; } } // Check to see if DimensionKey property is set internal bool IsSetDimensionKey() { return this._dimensionKey != null; } /// /// Gets and sets the property DimensionName. /// /// The name of the dimension that's used to group costs. /// /// /// /// If you specify LINKED_ACCOUNT_NAME, the cost category value is based /// on account name. If you specify TAG, the cost category value is based /// on the value of the specified tag key. /// /// public CostCategoryInheritedValueDimensionName DimensionName { get { return this._dimensionName; } set { this._dimensionName = value; } } // Check to see if DimensionName property is set internal bool IsSetDimensionName() { return this._dimensionName != null; } } }