/** * 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 ReservationUtilizationGroup { public: AWS_COSTEXPLORER_API ReservationUtilizationGroup(); AWS_COSTEXPLORER_API ReservationUtilizationGroup(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API ReservationUtilizationGroup& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The key for a specific reservation attribute.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The key for a specific reservation attribute.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The key for a specific reservation attribute.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The key for a specific reservation attribute.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The key for a specific reservation attribute.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The key for a specific reservation attribute.

*/ inline ReservationUtilizationGroup& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The key for a specific reservation attribute.

*/ inline ReservationUtilizationGroup& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The key for a specific reservation attribute.

*/ inline ReservationUtilizationGroup& WithKey(const char* value) { SetKey(value); return *this;} /** *

The value of a specific reservation attribute.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of a specific reservation attribute.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of a specific reservation attribute.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of a specific reservation attribute.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of a specific reservation attribute.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of a specific reservation attribute.

*/ inline ReservationUtilizationGroup& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of a specific reservation attribute.

*/ inline ReservationUtilizationGroup& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of a specific reservation attribute.

*/ inline ReservationUtilizationGroup& WithValue(const char* value) { SetValue(value); return *this;} /** *

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

The attributes for this group of reservations.

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

The attributes for this group of reservations.

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

How much you used this group of reservations.

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

How much you used this group of reservations.

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

How much you used this group of reservations.

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

How much you used this group of reservations.

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

How much you used this group of reservations.

*/ inline ReservationUtilizationGroup& WithUtilization(const ReservationAggregates& value) { SetUtilization(value); return *this;} /** *

How much you used this group of reservations.

*/ inline ReservationUtilizationGroup& WithUtilization(ReservationAggregates&& value) { SetUtilization(std::move(value)); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; Aws::Map m_attributes; bool m_attributesHasBeenSet = false; ReservationAggregates m_utilization; bool m_utilizationHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws