AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CoverageHours.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostExplorer
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COSTEXPLORER_API CoverageHours() = default;
36 AWS_COSTEXPLORER_API CoverageHours(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTEXPLORER_API CoverageHours& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetOnDemandHours() const { return m_onDemandHours; }
46 inline bool OnDemandHoursHasBeenSet() const { return m_onDemandHoursHasBeenSet; }
47 template<typename OnDemandHoursT = Aws::String>
48 void SetOnDemandHours(OnDemandHoursT&& value) { m_onDemandHoursHasBeenSet = true; m_onDemandHours = std::forward<OnDemandHoursT>(value); }
49 template<typename OnDemandHoursT = Aws::String>
50 CoverageHours& WithOnDemandHours(OnDemandHoursT&& value) { SetOnDemandHours(std::forward<OnDemandHoursT>(value)); return *this;}
52
54
57 inline const Aws::String& GetReservedHours() const { return m_reservedHours; }
58 inline bool ReservedHoursHasBeenSet() const { return m_reservedHoursHasBeenSet; }
59 template<typename ReservedHoursT = Aws::String>
60 void SetReservedHours(ReservedHoursT&& value) { m_reservedHoursHasBeenSet = true; m_reservedHours = std::forward<ReservedHoursT>(value); }
61 template<typename ReservedHoursT = Aws::String>
62 CoverageHours& WithReservedHours(ReservedHoursT&& value) { SetReservedHours(std::forward<ReservedHoursT>(value)); return *this;}
64
66
69 inline const Aws::String& GetTotalRunningHours() const { return m_totalRunningHours; }
70 inline bool TotalRunningHoursHasBeenSet() const { return m_totalRunningHoursHasBeenSet; }
71 template<typename TotalRunningHoursT = Aws::String>
72 void SetTotalRunningHours(TotalRunningHoursT&& value) { m_totalRunningHoursHasBeenSet = true; m_totalRunningHours = std::forward<TotalRunningHoursT>(value); }
73 template<typename TotalRunningHoursT = Aws::String>
74 CoverageHours& WithTotalRunningHours(TotalRunningHoursT&& value) { SetTotalRunningHours(std::forward<TotalRunningHoursT>(value)); return *this;}
76
78
81 inline const Aws::String& GetCoverageHoursPercentage() const { return m_coverageHoursPercentage; }
82 inline bool CoverageHoursPercentageHasBeenSet() const { return m_coverageHoursPercentageHasBeenSet; }
83 template<typename CoverageHoursPercentageT = Aws::String>
84 void SetCoverageHoursPercentage(CoverageHoursPercentageT&& value) { m_coverageHoursPercentageHasBeenSet = true; m_coverageHoursPercentage = std::forward<CoverageHoursPercentageT>(value); }
85 template<typename CoverageHoursPercentageT = Aws::String>
86 CoverageHours& WithCoverageHoursPercentage(CoverageHoursPercentageT&& value) { SetCoverageHoursPercentage(std::forward<CoverageHoursPercentageT>(value)); return *this;}
88 private:
89
90 Aws::String m_onDemandHours;
91 bool m_onDemandHoursHasBeenSet = false;
92
93 Aws::String m_reservedHours;
94 bool m_reservedHoursHasBeenSet = false;
95
96 Aws::String m_totalRunningHours;
97 bool m_totalRunningHoursHasBeenSet = false;
98
99 Aws::String m_coverageHoursPercentage;
100 bool m_coverageHoursPercentageHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CostExplorer
105} // namespace Aws
CoverageHours & WithOnDemandHours(OnDemandHoursT &&value)
void SetCoverageHoursPercentage(CoverageHoursPercentageT &&value)
const Aws::String & GetReservedHours() const
AWS_COSTEXPLORER_API CoverageHours(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTEXPLORER_API CoverageHours & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReservedHours(ReservedHoursT &&value)
CoverageHours & WithReservedHours(ReservedHoursT &&value)
CoverageHours & WithCoverageHoursPercentage(CoverageHoursPercentageT &&value)
const Aws::String & GetOnDemandHours() const
CoverageHours & WithTotalRunningHours(TotalRunningHoursT &&value)
const Aws::String & GetCoverageHoursPercentage() const
void SetOnDemandHours(OnDemandHoursT &&value)
const Aws::String & GetTotalRunningHours() const
AWS_COSTEXPLORER_API CoverageHours()=default
void SetTotalRunningHours(TotalRunningHoursT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue