/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A group of reservations that share a set of attributes.See
* Also:
AWS
* API Reference
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::MapThe 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::MapThe attributes for this group of reservations.
*/ inline void SetAttributes(Aws::MapThe attributes for this group of reservations.
*/ inline ReservationUtilizationGroup& WithAttributes(const Aws::MapThe attributes for this group of reservations.
*/ inline ReservationUtilizationGroup& WithAttributes(Aws::MapThe 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