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

A group of reservations that share a set of attributes.

See * Also:

AWS * API Reference

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

How much instance usage this group of reservations covered.

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

How much instance usage this group of reservations covered.

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

How much instance usage this group of reservations covered.

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

How much instance usage this group of reservations covered.

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

How much instance usage this group of reservations covered.

*/ inline ReservationCoverageGroup& WithCoverage(const Coverage& value) { SetCoverage(value); return *this;} /** *

How much instance usage this group of reservations covered.

*/ inline ReservationCoverageGroup& WithCoverage(Coverage&& value) { SetCoverage(std::move(value)); return *this;} private: Aws::Map m_attributes; bool m_attributesHasBeenSet = false; Coverage m_coverage; bool m_coverageHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws