This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ce/include/aws/ce/model/UtilizationByTime.h

160 lines
5.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ce/CostExplorer_EXPORTS.h>
#include <aws/ce/model/DateInterval.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ce/model/ReservationAggregates.h>
#include <aws/ce/model/ReservationUtilizationGroup.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CostExplorer
{
namespace Model
{
/**
* <p>The amount of utilization, in hours.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/UtilizationByTime">AWS
* API Reference</a></p>
*/
class AWS_COSTEXPLORER_API UtilizationByTime
{
public:
UtilizationByTime();
UtilizationByTime(Aws::Utils::Json::JsonView jsonValue);
UtilizationByTime& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The period of time that this utilization was used for.</p>
*/
inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; }
/**
* <p>The period of time that this utilization was used for.</p>
*/
inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; }
/**
* <p>The period of time that this utilization was used for.</p>
*/
inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; }
/**
* <p>The period of time that this utilization was used for.</p>
*/
inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); }
/**
* <p>The period of time that this utilization was used for.</p>
*/
inline UtilizationByTime& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;}
/**
* <p>The period of time that this utilization was used for.</p>
*/
inline UtilizationByTime& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;}
/**
* <p>The groups that this utilization result uses.</p>
*/
inline const Aws::Vector<ReservationUtilizationGroup>& GetGroups() const{ return m_groups; }
/**
* <p>The groups that this utilization result uses.</p>
*/
inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
/**
* <p>The groups that this utilization result uses.</p>
*/
inline void SetGroups(const Aws::Vector<ReservationUtilizationGroup>& value) { m_groupsHasBeenSet = true; m_groups = value; }
/**
* <p>The groups that this utilization result uses.</p>
*/
inline void SetGroups(Aws::Vector<ReservationUtilizationGroup>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
/**
* <p>The groups that this utilization result uses.</p>
*/
inline UtilizationByTime& WithGroups(const Aws::Vector<ReservationUtilizationGroup>& value) { SetGroups(value); return *this;}
/**
* <p>The groups that this utilization result uses.</p>
*/
inline UtilizationByTime& WithGroups(Aws::Vector<ReservationUtilizationGroup>&& value) { SetGroups(std::move(value)); return *this;}
/**
* <p>The groups that this utilization result uses.</p>
*/
inline UtilizationByTime& AddGroups(const ReservationUtilizationGroup& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
/**
* <p>The groups that this utilization result uses.</p>
*/
inline UtilizationByTime& AddGroups(ReservationUtilizationGroup&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
/**
* <p>The total number of reservation hours that were used.</p>
*/
inline const ReservationAggregates& GetTotal() const{ return m_total; }
/**
* <p>The total number of reservation hours that were used.</p>
*/
inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
/**
* <p>The total number of reservation hours that were used.</p>
*/
inline void SetTotal(const ReservationAggregates& value) { m_totalHasBeenSet = true; m_total = value; }
/**
* <p>The total number of reservation hours that were used.</p>
*/
inline void SetTotal(ReservationAggregates&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
/**
* <p>The total number of reservation hours that were used.</p>
*/
inline UtilizationByTime& WithTotal(const ReservationAggregates& value) { SetTotal(value); return *this;}
/**
* <p>The total number of reservation hours that were used.</p>
*/
inline UtilizationByTime& WithTotal(ReservationAggregates&& value) { SetTotal(std::move(value)); return *this;}
private:
DateInterval m_timePeriod;
bool m_timePeriodHasBeenSet;
Aws::Vector<ReservationUtilizationGroup> m_groups;
bool m_groupsHasBeenSet;
ReservationAggregates m_total;
bool m_totalHasBeenSet;
};
} // namespace Model
} // namespace CostExplorer
} // namespace Aws