/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The amount of utilization, in hours.See Also:
AWS
* API Reference
The period of time that this utilization was used for.
*/ inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; } /** *The period of time that this utilization was used for.
*/ inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; } /** *The period of time that this utilization was used for.
*/ inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; } /** *The period of time that this utilization was used for.
*/ inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); } /** *The period of time that this utilization was used for.
*/ inline UtilizationByTime& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;} /** *The period of time that this utilization was used for.
*/ inline UtilizationByTime& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;} /** *The groups that this utilization result uses.
*/ inline const Aws::VectorThe groups that this utilization result uses.
*/ inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } /** *The groups that this utilization result uses.
*/ inline void SetGroups(const Aws::VectorThe groups that this utilization result uses.
*/ inline void SetGroups(Aws::VectorThe groups that this utilization result uses.
*/ inline UtilizationByTime& WithGroups(const Aws::VectorThe groups that this utilization result uses.
*/ inline UtilizationByTime& WithGroups(Aws::VectorThe groups that this utilization result uses.
*/ inline UtilizationByTime& AddGroups(const ReservationUtilizationGroup& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *The groups that this utilization result uses.
*/ inline UtilizationByTime& AddGroups(ReservationUtilizationGroup&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; } /** *The total number of reservation hours that were used.
*/ inline const ReservationAggregates& GetTotal() const{ return m_total; } /** *The total number of reservation hours that were used.
*/ inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } /** *The total number of reservation hours that were used.
*/ inline void SetTotal(const ReservationAggregates& value) { m_totalHasBeenSet = true; m_total = value; } /** *The total number of reservation hours that were used.
*/ inline void SetTotal(ReservationAggregates&& value) { m_totalHasBeenSet = true; m_total = std::move(value); } /** *The total number of reservation hours that were used.
*/ inline UtilizationByTime& WithTotal(const ReservationAggregates& value) { SetTotal(value); return *this;} /** *The total number of reservation hours that were used.
*/ inline UtilizationByTime& WithTotal(ReservationAggregates&& value) { SetTotal(std::move(value)); return *this;} private: DateInterval m_timePeriod; bool m_timePeriodHasBeenSet = false; Aws::Vector