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

The amount of Savings Plans eligible usage that is covered by Savings Plans. * All calculations consider the On-Demand equivalent of your Savings Plans * usage.

See Also:

AWS * API Reference

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

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 SavingsPlansCoverage& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

The attribute that applies to a specific Dimension.

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

The attribute that applies to a specific Dimension.

*/ inline SavingsPlansCoverage& 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 SavingsPlansCoverage& 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 SavingsPlansCoverage& 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 SavingsPlansCoverage& 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 SavingsPlansCoverage& 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 SavingsPlansCoverage& 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 SavingsPlansCoverage& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

The amount of Savings Plans eligible usage that the Savings Plans * covered.

*/ inline const SavingsPlansCoverageData& GetCoverage() const{ return m_coverage; } /** *

The amount of Savings Plans eligible usage that the Savings Plans * covered.

*/ inline bool CoverageHasBeenSet() const { return m_coverageHasBeenSet; } /** *

The amount of Savings Plans eligible usage that the Savings Plans * covered.

*/ inline void SetCoverage(const SavingsPlansCoverageData& value) { m_coverageHasBeenSet = true; m_coverage = value; } /** *

The amount of Savings Plans eligible usage that the Savings Plans * covered.

*/ inline void SetCoverage(SavingsPlansCoverageData&& value) { m_coverageHasBeenSet = true; m_coverage = std::move(value); } /** *

The amount of Savings Plans eligible usage that the Savings Plans * covered.

*/ inline SavingsPlansCoverage& WithCoverage(const SavingsPlansCoverageData& value) { SetCoverage(value); return *this;} /** *

The amount of Savings Plans eligible usage that the Savings Plans * covered.

*/ inline SavingsPlansCoverage& WithCoverage(SavingsPlansCoverageData&& value) { SetCoverage(std::move(value)); return *this;} 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 SavingsPlansCoverage& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;} inline SavingsPlansCoverage& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;} private: Aws::Map m_attributes; bool m_attributesHasBeenSet; SavingsPlansCoverageData m_coverage; bool m_coverageHasBeenSet; DateInterval m_timePeriod; bool m_timePeriodHasBeenSet; }; } // namespace Model } // namespace CostExplorer } // namespace Aws