/*
* 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 amount of Savings Plans utilization (in hours).
///
public partial class SavingsPlansUtilizationByTime
{
private SavingsPlansAmortizedCommitment _amortizedCommitment;
private SavingsPlansSavings _savings;
private DateInterval _timePeriod;
private SavingsPlansUtilization _utilization;
///
/// Gets and sets the property AmortizedCommitment.
///
/// The total amortized commitment for a Savings Plans. This includes the sum of the upfront
/// and recurring Savings Plans fees.
///
///
public SavingsPlansAmortizedCommitment AmortizedCommitment
{
get { return this._amortizedCommitment; }
set { this._amortizedCommitment = value; }
}
// Check to see if AmortizedCommitment property is set
internal bool IsSetAmortizedCommitment()
{
return this._amortizedCommitment != null;
}
///
/// Gets and sets the property Savings.
///
/// The amount that's saved by using existing Savings Plans. Savings returns both net
/// savings from Savings Plans and also the onDemandCostEquivalent
of the
/// Savings Plans when considering the utilization rate.
///
///
public SavingsPlansSavings Savings
{
get { return this._savings; }
set { this._savings = value; }
}
// Check to see if Savings property is set
internal bool IsSetSavings()
{
return this._savings != null;
}
///
/// Gets and sets the property TimePeriod.
///
[AWSProperty(Required=true)]
public DateInterval TimePeriod
{
get { return this._timePeriod; }
set { this._timePeriod = value; }
}
// Check to see if TimePeriod property is set
internal bool IsSetTimePeriod()
{
return this._timePeriod != null;
}
///
/// Gets and sets the property Utilization.
///
/// A ratio of your effectiveness of using existing Savings Plans to apply to workloads
/// that are Savings Plans eligible.
///
///
[AWSProperty(Required=true)]
public SavingsPlansUtilization Utilization
{
get { return this._utilization; }
set { this._utilization = value; }
}
// Check to see if Utilization property is set
internal bool IsSetUtilization()
{
return this._utilization != null;
}
}
}