/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { /** *

A single daily or monthly Savings Plans utilization rate and details for your * account. A management account in an organization have access to member accounts. * You can use GetDimensionValues to determine the possible dimension * values.

See Also:

AWS * API Reference

*/ class SavingsPlansUtilizationDetail { public: AWS_COSTEXPLORER_API SavingsPlansUtilizationDetail(); AWS_COSTEXPLORER_API SavingsPlansUtilizationDetail(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API SavingsPlansUtilizationDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique Amazon Resource Name (ARN) for a particular Savings Plan.

*/ inline const Aws::String& GetSavingsPlanArn() const{ return m_savingsPlanArn; } /** *

The unique Amazon Resource Name (ARN) for a particular Savings Plan.

*/ inline bool SavingsPlanArnHasBeenSet() const { return m_savingsPlanArnHasBeenSet; } /** *

The unique Amazon Resource Name (ARN) for a particular Savings Plan.

*/ inline void SetSavingsPlanArn(const Aws::String& value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn = value; } /** *

The unique Amazon Resource Name (ARN) for a particular Savings Plan.

*/ inline void SetSavingsPlanArn(Aws::String&& value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn = std::move(value); } /** *

The unique Amazon Resource Name (ARN) for a particular Savings Plan.

*/ inline void SetSavingsPlanArn(const char* value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn.assign(value); } /** *

The unique Amazon Resource Name (ARN) for a particular Savings Plan.

*/ inline SavingsPlansUtilizationDetail& WithSavingsPlanArn(const Aws::String& value) { SetSavingsPlanArn(value); return *this;} /** *

The unique Amazon Resource Name (ARN) for a particular Savings Plan.

*/ inline SavingsPlansUtilizationDetail& WithSavingsPlanArn(Aws::String&& value) { SetSavingsPlanArn(std::move(value)); return *this;} /** *

The unique Amazon Resource Name (ARN) for a particular Savings Plan.

*/ inline SavingsPlansUtilizationDetail& WithSavingsPlanArn(const char* value) { SetSavingsPlanArn(value); return *this;} /** *

The attribute that applies to a specific Dimension.

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

The attribute that applies to a specific Dimension.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

The attribute that applies to a specific Dimension.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

The attribute that applies to a specific Dimension.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansUtilizationDetail& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansUtilizationDetail& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansUtilizationDetail& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansUtilizationDetail& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansUtilizationDetail& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansUtilizationDetail& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansUtilizationDetail& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansUtilizationDetail& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansUtilizationDetail& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.

*/ inline const SavingsPlansUtilization& GetUtilization() const{ return m_utilization; } /** *

A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.

*/ inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; } /** *

A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.

*/ inline void SetUtilization(const SavingsPlansUtilization& value) { m_utilizationHasBeenSet = true; m_utilization = value; } /** *

A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.

*/ inline void SetUtilization(SavingsPlansUtilization&& value) { m_utilizationHasBeenSet = true; m_utilization = std::move(value); } /** *

A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.

*/ inline SavingsPlansUtilizationDetail& WithUtilization(const SavingsPlansUtilization& value) { SetUtilization(value); return *this;} /** *

A ratio of your effectiveness of using existing Savings Plans to apply to * workloads that are Savings Plans eligible.

*/ inline SavingsPlansUtilizationDetail& WithUtilization(SavingsPlansUtilization&& value) { SetUtilization(std::move(value)); return *this;} /** *

The amount 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.

*/ inline const SavingsPlansSavings& GetSavings() const{ return m_savings; } /** *

The amount 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.

*/ inline bool SavingsHasBeenSet() const { return m_savingsHasBeenSet; } /** *

The amount 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.

*/ inline void SetSavings(const SavingsPlansSavings& value) { m_savingsHasBeenSet = true; m_savings = value; } /** *

The amount 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.

*/ inline void SetSavings(SavingsPlansSavings&& value) { m_savingsHasBeenSet = true; m_savings = std::move(value); } /** *

The amount 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.

*/ inline SavingsPlansUtilizationDetail& WithSavings(const SavingsPlansSavings& value) { SetSavings(value); return *this;} /** *

The amount 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.

*/ inline SavingsPlansUtilizationDetail& WithSavings(SavingsPlansSavings&& value) { SetSavings(std::move(value)); return *this;} /** *

The total amortized commitment for a Savings Plans. Includes the sum of the * upfront and recurring Savings Plans fees.

*/ inline const SavingsPlansAmortizedCommitment& GetAmortizedCommitment() const{ return m_amortizedCommitment; } /** *

The total amortized commitment for a Savings Plans. Includes the sum of the * upfront and recurring Savings Plans fees.

*/ inline bool AmortizedCommitmentHasBeenSet() const { return m_amortizedCommitmentHasBeenSet; } /** *

The total amortized commitment for a Savings Plans. Includes the sum of the * upfront and recurring Savings Plans fees.

*/ inline void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = value; } /** *

The total amortized commitment for a Savings Plans. Includes the sum of the * upfront and recurring Savings Plans fees.

*/ inline void SetAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = std::move(value); } /** *

The total amortized commitment for a Savings Plans. Includes the sum of the * upfront and recurring Savings Plans fees.

*/ inline SavingsPlansUtilizationDetail& WithAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { SetAmortizedCommitment(value); return *this;} /** *

The total amortized commitment for a Savings Plans. Includes the sum of the * upfront and recurring Savings Plans fees.

*/ inline SavingsPlansUtilizationDetail& WithAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { SetAmortizedCommitment(std::move(value)); return *this;} private: Aws::String m_savingsPlanArn; bool m_savingsPlanArnHasBeenSet = false; Aws::Map m_attributes; bool m_attributesHasBeenSet = false; SavingsPlansUtilization m_utilization; bool m_utilizationHasBeenSet = false; SavingsPlansSavings m_savings; bool m_savingsHasBeenSet = false; SavingsPlansAmortizedCommitment m_amortizedCommitment; bool m_amortizedCommitmentHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws