/** * 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 amortized amount of Savings Plans purchased in a specific account during * a specific time interval.

See Also:

AWS * API Reference

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

The amortized amount of your Savings Plans commitment that was purchased with * either a Partial or a NoUpfront.

*/ inline const Aws::String& GetAmortizedRecurringCommitment() const{ return m_amortizedRecurringCommitment; } /** *

The amortized amount of your Savings Plans commitment that was purchased with * either a Partial or a NoUpfront.

*/ inline bool AmortizedRecurringCommitmentHasBeenSet() const { return m_amortizedRecurringCommitmentHasBeenSet; } /** *

The amortized amount of your Savings Plans commitment that was purchased with * either a Partial or a NoUpfront.

*/ inline void SetAmortizedRecurringCommitment(const Aws::String& value) { m_amortizedRecurringCommitmentHasBeenSet = true; m_amortizedRecurringCommitment = value; } /** *

The amortized amount of your Savings Plans commitment that was purchased with * either a Partial or a NoUpfront.

*/ inline void SetAmortizedRecurringCommitment(Aws::String&& value) { m_amortizedRecurringCommitmentHasBeenSet = true; m_amortizedRecurringCommitment = std::move(value); } /** *

The amortized amount of your Savings Plans commitment that was purchased with * either a Partial or a NoUpfront.

*/ inline void SetAmortizedRecurringCommitment(const char* value) { m_amortizedRecurringCommitmentHasBeenSet = true; m_amortizedRecurringCommitment.assign(value); } /** *

The amortized amount of your Savings Plans commitment that was purchased with * either a Partial or a NoUpfront.

*/ inline SavingsPlansAmortizedCommitment& WithAmortizedRecurringCommitment(const Aws::String& value) { SetAmortizedRecurringCommitment(value); return *this;} /** *

The amortized amount of your Savings Plans commitment that was purchased with * either a Partial or a NoUpfront.

*/ inline SavingsPlansAmortizedCommitment& WithAmortizedRecurringCommitment(Aws::String&& value) { SetAmortizedRecurringCommitment(std::move(value)); return *this;} /** *

The amortized amount of your Savings Plans commitment that was purchased with * either a Partial or a NoUpfront.

*/ inline SavingsPlansAmortizedCommitment& WithAmortizedRecurringCommitment(const char* value) { SetAmortizedRecurringCommitment(value); return *this;} /** *

The amortized amount of your Savings Plans commitment that was purchased with * an Upfront or PartialUpfront Savings Plans.

*/ inline const Aws::String& GetAmortizedUpfrontCommitment() const{ return m_amortizedUpfrontCommitment; } /** *

The amortized amount of your Savings Plans commitment that was purchased with * an Upfront or PartialUpfront Savings Plans.

*/ inline bool AmortizedUpfrontCommitmentHasBeenSet() const { return m_amortizedUpfrontCommitmentHasBeenSet; } /** *

The amortized amount of your Savings Plans commitment that was purchased with * an Upfront or PartialUpfront Savings Plans.

*/ inline void SetAmortizedUpfrontCommitment(const Aws::String& value) { m_amortizedUpfrontCommitmentHasBeenSet = true; m_amortizedUpfrontCommitment = value; } /** *

The amortized amount of your Savings Plans commitment that was purchased with * an Upfront or PartialUpfront Savings Plans.

*/ inline void SetAmortizedUpfrontCommitment(Aws::String&& value) { m_amortizedUpfrontCommitmentHasBeenSet = true; m_amortizedUpfrontCommitment = std::move(value); } /** *

The amortized amount of your Savings Plans commitment that was purchased with * an Upfront or PartialUpfront Savings Plans.

*/ inline void SetAmortizedUpfrontCommitment(const char* value) { m_amortizedUpfrontCommitmentHasBeenSet = true; m_amortizedUpfrontCommitment.assign(value); } /** *

The amortized amount of your Savings Plans commitment that was purchased with * an Upfront or PartialUpfront Savings Plans.

*/ inline SavingsPlansAmortizedCommitment& WithAmortizedUpfrontCommitment(const Aws::String& value) { SetAmortizedUpfrontCommitment(value); return *this;} /** *

The amortized amount of your Savings Plans commitment that was purchased with * an Upfront or PartialUpfront Savings Plans.

*/ inline SavingsPlansAmortizedCommitment& WithAmortizedUpfrontCommitment(Aws::String&& value) { SetAmortizedUpfrontCommitment(std::move(value)); return *this;} /** *

The amortized amount of your Savings Plans commitment that was purchased with * an Upfront or PartialUpfront Savings Plans.

*/ inline SavingsPlansAmortizedCommitment& WithAmortizedUpfrontCommitment(const char* value) { SetAmortizedUpfrontCommitment(value); return *this;} /** *

The total amortized amount of your Savings Plans commitment, regardless of * your Savings Plans purchase method.

*/ inline const Aws::String& GetTotalAmortizedCommitment() const{ return m_totalAmortizedCommitment; } /** *

The total amortized amount of your Savings Plans commitment, regardless of * your Savings Plans purchase method.

*/ inline bool TotalAmortizedCommitmentHasBeenSet() const { return m_totalAmortizedCommitmentHasBeenSet; } /** *

The total amortized amount of your Savings Plans commitment, regardless of * your Savings Plans purchase method.

*/ inline void SetTotalAmortizedCommitment(const Aws::String& value) { m_totalAmortizedCommitmentHasBeenSet = true; m_totalAmortizedCommitment = value; } /** *

The total amortized amount of your Savings Plans commitment, regardless of * your Savings Plans purchase method.

*/ inline void SetTotalAmortizedCommitment(Aws::String&& value) { m_totalAmortizedCommitmentHasBeenSet = true; m_totalAmortizedCommitment = std::move(value); } /** *

The total amortized amount of your Savings Plans commitment, regardless of * your Savings Plans purchase method.

*/ inline void SetTotalAmortizedCommitment(const char* value) { m_totalAmortizedCommitmentHasBeenSet = true; m_totalAmortizedCommitment.assign(value); } /** *

The total amortized amount of your Savings Plans commitment, regardless of * your Savings Plans purchase method.

*/ inline SavingsPlansAmortizedCommitment& WithTotalAmortizedCommitment(const Aws::String& value) { SetTotalAmortizedCommitment(value); return *this;} /** *

The total amortized amount of your Savings Plans commitment, regardless of * your Savings Plans purchase method.

*/ inline SavingsPlansAmortizedCommitment& WithTotalAmortizedCommitment(Aws::String&& value) { SetTotalAmortizedCommitment(std::move(value)); return *this;} /** *

The total amortized amount of your Savings Plans commitment, regardless of * your Savings Plans purchase method.

*/ inline SavingsPlansAmortizedCommitment& WithTotalAmortizedCommitment(const char* value) { SetTotalAmortizedCommitment(value); return *this;} private: Aws::String m_amortizedRecurringCommitment; bool m_amortizedRecurringCommitmentHasBeenSet = false; Aws::String m_amortizedUpfrontCommitment; bool m_amortizedUpfrontCommitmentHasBeenSet = false; Aws::String m_totalAmortizedCommitment; bool m_totalAmortizedCommitmentHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws