/** * 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 utilization, in hours.

See Also:

AWS * API Reference

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

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::Vector& GetGroups() const{ return m_groups; } /** *

The 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::Vector& value) { m_groupsHasBeenSet = true; m_groups = value; } /** *

The groups that this utilization result uses.

*/ inline void SetGroups(Aws::Vector&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); } /** *

The groups that this utilization result uses.

*/ inline UtilizationByTime& WithGroups(const Aws::Vector& value) { SetGroups(value); return *this;} /** *

The groups that this utilization result uses.

*/ inline UtilizationByTime& WithGroups(Aws::Vector&& value) { SetGroups(std::move(value)); return *this;} /** *

The 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 m_groups; bool m_groupsHasBeenSet = false; ReservationAggregates m_total; bool m_totalHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws