197 lines
7.7 KiB
C
197 lines
7.7 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ce/CostExplorer_EXPORTS.h>
|
|||
|
|
#include <aws/ce/model/DateInterval.h>
|
|||
|
|
#include <aws/ce/model/SavingsPlansUtilization.h>
|
|||
|
|
#include <aws/ce/model/SavingsPlansSavings.h>
|
|||
|
|
#include <aws/ce/model/SavingsPlansAmortizedCommitment.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace CostExplorer
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The amount of Savings Plans utilization, in hours.</p><p><h3>See Also:</h3>
|
|||
|
|
* <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/SavingsPlansUtilizationByTime">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_COSTEXPLORER_API SavingsPlansUtilizationByTime
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
SavingsPlansUtilizationByTime();
|
|||
|
|
SavingsPlansUtilizationByTime(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
SavingsPlansUtilizationByTime& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline SavingsPlansUtilizationByTime& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline SavingsPlansUtilizationByTime& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
|
|||
|
|
* workloads that are Savings Plans eligible.</p>
|
|||
|
|
*/
|
|||
|
|
inline const SavingsPlansUtilization& GetUtilization() const{ return m_utilization; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
|
|||
|
|
* workloads that are Savings Plans eligible.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
|
|||
|
|
* workloads that are Savings Plans eligible.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetUtilization(const SavingsPlansUtilization& value) { m_utilizationHasBeenSet = true; m_utilization = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
|
|||
|
|
* workloads that are Savings Plans eligible.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetUtilization(SavingsPlansUtilization&& value) { m_utilizationHasBeenSet = true; m_utilization = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
|
|||
|
|
* workloads that are Savings Plans eligible.</p>
|
|||
|
|
*/
|
|||
|
|
inline SavingsPlansUtilizationByTime& WithUtilization(const SavingsPlansUtilization& value) { SetUtilization(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A ratio of your effectiveness of using existing Savings Plans to apply to
|
|||
|
|
* workloads that are Savings Plans eligible.</p>
|
|||
|
|
*/
|
|||
|
|
inline SavingsPlansUtilizationByTime& WithUtilization(SavingsPlansUtilization&& value) { SetUtilization(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The amount saved by using existing Savings Plans. Savings returns both net
|
|||
|
|
* savings from Savings Plans as well as the <code>onDemandCostEquivalent</code> of
|
|||
|
|
* the Savings Plans when considering the utilization rate.</p>
|
|||
|
|
*/
|
|||
|
|
inline const SavingsPlansSavings& GetSavings() const{ return m_savings; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The amount saved by using existing Savings Plans. Savings returns both net
|
|||
|
|
* savings from Savings Plans as well as the <code>onDemandCostEquivalent</code> of
|
|||
|
|
* the Savings Plans when considering the utilization rate.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SavingsHasBeenSet() const { return m_savingsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The amount saved by using existing Savings Plans. Savings returns both net
|
|||
|
|
* savings from Savings Plans as well as the <code>onDemandCostEquivalent</code> of
|
|||
|
|
* the Savings Plans when considering the utilization rate.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSavings(const SavingsPlansSavings& value) { m_savingsHasBeenSet = true; m_savings = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The amount saved by using existing Savings Plans. Savings returns both net
|
|||
|
|
* savings from Savings Plans as well as the <code>onDemandCostEquivalent</code> of
|
|||
|
|
* the Savings Plans when considering the utilization rate.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSavings(SavingsPlansSavings&& value) { m_savingsHasBeenSet = true; m_savings = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The amount saved by using existing Savings Plans. Savings returns both net
|
|||
|
|
* savings from Savings Plans as well as the <code>onDemandCostEquivalent</code> of
|
|||
|
|
* the Savings Plans when considering the utilization rate.</p>
|
|||
|
|
*/
|
|||
|
|
inline SavingsPlansUtilizationByTime& WithSavings(const SavingsPlansSavings& value) { SetSavings(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The amount saved by using existing Savings Plans. Savings returns both net
|
|||
|
|
* savings from Savings Plans as well as the <code>onDemandCostEquivalent</code> of
|
|||
|
|
* the Savings Plans when considering the utilization rate.</p>
|
|||
|
|
*/
|
|||
|
|
inline SavingsPlansUtilizationByTime& WithSavings(SavingsPlansSavings&& value) { SetSavings(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The total amortized commitment for a Savings Plans. This includes the sum of
|
|||
|
|
* the upfront and recurring Savings Plans fees.</p>
|
|||
|
|
*/
|
|||
|
|
inline const SavingsPlansAmortizedCommitment& GetAmortizedCommitment() const{ return m_amortizedCommitment; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The total amortized commitment for a Savings Plans. This includes the sum of
|
|||
|
|
* the upfront and recurring Savings Plans fees.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AmortizedCommitmentHasBeenSet() const { return m_amortizedCommitmentHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The total amortized commitment for a Savings Plans. This includes the sum of
|
|||
|
|
* the upfront and recurring Savings Plans fees.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The total amortized commitment for a Savings Plans. This includes the sum of
|
|||
|
|
* the upfront and recurring Savings Plans fees.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The total amortized commitment for a Savings Plans. This includes the sum of
|
|||
|
|
* the upfront and recurring Savings Plans fees.</p>
|
|||
|
|
*/
|
|||
|
|
inline SavingsPlansUtilizationByTime& WithAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { SetAmortizedCommitment(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The total amortized commitment for a Savings Plans. This includes the sum of
|
|||
|
|
* the upfront and recurring Savings Plans fees.</p>
|
|||
|
|
*/
|
|||
|
|
inline SavingsPlansUtilizationByTime& WithAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { SetAmortizedCommitment(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
DateInterval m_timePeriod;
|
|||
|
|
bool m_timePeriodHasBeenSet;
|
|||
|
|
|
|||
|
|
SavingsPlansUtilization m_utilization;
|
|||
|
|
bool m_utilizationHasBeenSet;
|
|||
|
|
|
|||
|
|
SavingsPlansSavings m_savings;
|
|||
|
|
bool m_savingsHasBeenSet;
|
|||
|
|
|
|||
|
|
SavingsPlansAmortizedCommitment m_amortizedCommitment;
|
|||
|
|
bool m_amortizedCommitmentHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace CostExplorer
|
|||
|
|
} // namespace Aws
|