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

The measurement of how well you're using your existing Savings * Plans.

See Also:

AWS * API Reference

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

The total amount of Savings Plans commitment that's been purchased in an * account (or set of accounts).

*/ inline const Aws::String& GetTotalCommitment() const{ return m_totalCommitment; } /** *

The total amount of Savings Plans commitment that's been purchased in an * account (or set of accounts).

*/ inline bool TotalCommitmentHasBeenSet() const { return m_totalCommitmentHasBeenSet; } /** *

The total amount of Savings Plans commitment that's been purchased in an * account (or set of accounts).

*/ inline void SetTotalCommitment(const Aws::String& value) { m_totalCommitmentHasBeenSet = true; m_totalCommitment = value; } /** *

The total amount of Savings Plans commitment that's been purchased in an * account (or set of accounts).

*/ inline void SetTotalCommitment(Aws::String&& value) { m_totalCommitmentHasBeenSet = true; m_totalCommitment = std::move(value); } /** *

The total amount of Savings Plans commitment that's been purchased in an * account (or set of accounts).

*/ inline void SetTotalCommitment(const char* value) { m_totalCommitmentHasBeenSet = true; m_totalCommitment.assign(value); } /** *

The total amount of Savings Plans commitment that's been purchased in an * account (or set of accounts).

*/ inline SavingsPlansUtilization& WithTotalCommitment(const Aws::String& value) { SetTotalCommitment(value); return *this;} /** *

The total amount of Savings Plans commitment that's been purchased in an * account (or set of accounts).

*/ inline SavingsPlansUtilization& WithTotalCommitment(Aws::String&& value) { SetTotalCommitment(std::move(value)); return *this;} /** *

The total amount of Savings Plans commitment that's been purchased in an * account (or set of accounts).

*/ inline SavingsPlansUtilization& WithTotalCommitment(const char* value) { SetTotalCommitment(value); return *this;} /** *

The amount of your Savings Plans commitment that was consumed from Savings * Plans eligible usage in a specific period.

*/ inline const Aws::String& GetUsedCommitment() const{ return m_usedCommitment; } /** *

The amount of your Savings Plans commitment that was consumed from Savings * Plans eligible usage in a specific period.

*/ inline bool UsedCommitmentHasBeenSet() const { return m_usedCommitmentHasBeenSet; } /** *

The amount of your Savings Plans commitment that was consumed from Savings * Plans eligible usage in a specific period.

*/ inline void SetUsedCommitment(const Aws::String& value) { m_usedCommitmentHasBeenSet = true; m_usedCommitment = value; } /** *

The amount of your Savings Plans commitment that was consumed from Savings * Plans eligible usage in a specific period.

*/ inline void SetUsedCommitment(Aws::String&& value) { m_usedCommitmentHasBeenSet = true; m_usedCommitment = std::move(value); } /** *

The amount of your Savings Plans commitment that was consumed from Savings * Plans eligible usage in a specific period.

*/ inline void SetUsedCommitment(const char* value) { m_usedCommitmentHasBeenSet = true; m_usedCommitment.assign(value); } /** *

The amount of your Savings Plans commitment that was consumed from Savings * Plans eligible usage in a specific period.

*/ inline SavingsPlansUtilization& WithUsedCommitment(const Aws::String& value) { SetUsedCommitment(value); return *this;} /** *

The amount of your Savings Plans commitment that was consumed from Savings * Plans eligible usage in a specific period.

*/ inline SavingsPlansUtilization& WithUsedCommitment(Aws::String&& value) { SetUsedCommitment(std::move(value)); return *this;} /** *

The amount of your Savings Plans commitment that was consumed from Savings * Plans eligible usage in a specific period.

*/ inline SavingsPlansUtilization& WithUsedCommitment(const char* value) { SetUsedCommitment(value); return *this;} /** *

The amount of your Savings Plans commitment that wasn't consumed from Savings * Plans eligible usage in a specific period.

*/ inline const Aws::String& GetUnusedCommitment() const{ return m_unusedCommitment; } /** *

The amount of your Savings Plans commitment that wasn't consumed from Savings * Plans eligible usage in a specific period.

*/ inline bool UnusedCommitmentHasBeenSet() const { return m_unusedCommitmentHasBeenSet; } /** *

The amount of your Savings Plans commitment that wasn't consumed from Savings * Plans eligible usage in a specific period.

*/ inline void SetUnusedCommitment(const Aws::String& value) { m_unusedCommitmentHasBeenSet = true; m_unusedCommitment = value; } /** *

The amount of your Savings Plans commitment that wasn't consumed from Savings * Plans eligible usage in a specific period.

*/ inline void SetUnusedCommitment(Aws::String&& value) { m_unusedCommitmentHasBeenSet = true; m_unusedCommitment = std::move(value); } /** *

The amount of your Savings Plans commitment that wasn't consumed from Savings * Plans eligible usage in a specific period.

*/ inline void SetUnusedCommitment(const char* value) { m_unusedCommitmentHasBeenSet = true; m_unusedCommitment.assign(value); } /** *

The amount of your Savings Plans commitment that wasn't consumed from Savings * Plans eligible usage in a specific period.

*/ inline SavingsPlansUtilization& WithUnusedCommitment(const Aws::String& value) { SetUnusedCommitment(value); return *this;} /** *

The amount of your Savings Plans commitment that wasn't consumed from Savings * Plans eligible usage in a specific period.

*/ inline SavingsPlansUtilization& WithUnusedCommitment(Aws::String&& value) { SetUnusedCommitment(std::move(value)); return *this;} /** *

The amount of your Savings Plans commitment that wasn't consumed from Savings * Plans eligible usage in a specific period.

*/ inline SavingsPlansUtilization& WithUnusedCommitment(const char* value) { SetUnusedCommitment(value); return *this;} /** *

The amount of UsedCommitment divided by the * TotalCommitment for your Savings Plans.

*/ inline const Aws::String& GetUtilizationPercentage() const{ return m_utilizationPercentage; } /** *

The amount of UsedCommitment divided by the * TotalCommitment for your Savings Plans.

*/ inline bool UtilizationPercentageHasBeenSet() const { return m_utilizationPercentageHasBeenSet; } /** *

The amount of UsedCommitment divided by the * TotalCommitment for your Savings Plans.

*/ inline void SetUtilizationPercentage(const Aws::String& value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage = value; } /** *

The amount of UsedCommitment divided by the * TotalCommitment for your Savings Plans.

*/ inline void SetUtilizationPercentage(Aws::String&& value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage = std::move(value); } /** *

The amount of UsedCommitment divided by the * TotalCommitment for your Savings Plans.

*/ inline void SetUtilizationPercentage(const char* value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage.assign(value); } /** *

The amount of UsedCommitment divided by the * TotalCommitment for your Savings Plans.

*/ inline SavingsPlansUtilization& WithUtilizationPercentage(const Aws::String& value) { SetUtilizationPercentage(value); return *this;} /** *

The amount of UsedCommitment divided by the * TotalCommitment for your Savings Plans.

*/ inline SavingsPlansUtilization& WithUtilizationPercentage(Aws::String&& value) { SetUtilizationPercentage(std::move(value)); return *this;} /** *

The amount of UsedCommitment divided by the * TotalCommitment for your Savings Plans.

*/ inline SavingsPlansUtilization& WithUtilizationPercentage(const char* value) { SetUtilizationPercentage(value); return *this;} private: Aws::String m_totalCommitment; bool m_totalCommitmentHasBeenSet = false; Aws::String m_usedCommitment; bool m_usedCommitmentHasBeenSet = false; Aws::String m_unusedCommitment; bool m_unusedCommitmentHasBeenSet = false; Aws::String m_utilizationPercentage; bool m_utilizationPercentageHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws