/*
* 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
{
///
/// Use the split charge rule to split the cost of one Cost Category value across several
/// other target values.
///
public partial class CostCategorySplitChargeRule
{
private CostCategorySplitChargeMethod _method;
private List _parameters = new List();
private string _source;
private List _targets = new List();
///
/// Gets and sets the property Method.
///
/// The method that's used to define how to split your source costs across your targets.
///
///
///
///
/// Proportional
- Allocates charges across your targets based on the proportional
/// weighted cost of each target.
///
///
///
/// Fixed
- Allocates charges across your targets based on your defined
/// allocation percentage.
///
///
///
/// >Even
- Allocates costs evenly across all targets.
///
///
[AWSProperty(Required=true)]
public CostCategorySplitChargeMethod Method
{
get { return this._method; }
set { this._method = value; }
}
// Check to see if Method property is set
internal bool IsSetMethod()
{
return this._method != null;
}
///
/// Gets and sets the property Parameters.
///
/// The parameters for a split charge method. This is only required for the FIXED
/// method.
///
///
[AWSProperty(Min=1, Max=10)]
public List Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
///
/// Gets and sets the property Source.
///
/// The Cost Category value that you want to split. That value can't be used as a source
/// or a target in other split charge rules. To indicate uncategorized costs, you can
/// use an empty string as the source.
///
///
[AWSProperty(Required=true, Min=0, Max=1024)]
public string Source
{
get { return this._source; }
set { this._source = value; }
}
// Check to see if Source property is set
internal bool IsSetSource()
{
return this._source != null;
}
///
/// Gets and sets the property Targets.
///
/// The Cost Category values that you want to split costs across. These values can't be
/// used as a source in other split charge rules.
///
///
[AWSProperty(Required=true, Min=1, Max=500)]
public List Targets
{
get { return this._targets; }
set { this._targets = value; }
}
// Check to see if Targets property is set
internal bool IsSetTargets()
{
return this._targets != null && this._targets.Count > 0;
}
}
}