AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOnDemandHours(const Aws::String& value) { m_onDemandHoursHasBeenSet = true; m_onDemandHours = value; }
48 inline void SetOnDemandHours(Aws::String&& value) { m_onDemandHoursHasBeenSet = true; m_onDemandHours = std::move(value); }
49 inline void SetOnDemandHours(const char* value) { m_onDemandHoursHasBeenSet = true; m_onDemandHours.assign(value); }
50 inline CoverageHours& WithOnDemandHours(const Aws::String& value) { SetOnDemandHours(value); return *this;}
51 inline CoverageHours& WithOnDemandHours(Aws::String&& value) { SetOnDemandHours(std::move(value)); return *this;}
52 inline CoverageHours& WithOnDemandHours(const char* value) { SetOnDemandHours(value); return *this;}
54
56
59 inline const Aws::String& GetReservedHours() const{ return m_reservedHours; }
60 inline bool ReservedHoursHasBeenSet() const { return m_reservedHoursHasBeenSet; }
61 inline void SetReservedHours(const Aws::String& value) { m_reservedHoursHasBeenSet = true; m_reservedHours = value; }
62 inline void SetReservedHours(Aws::String&& value) { m_reservedHoursHasBeenSet = true; m_reservedHours = std::move(value); }
63 inline void SetReservedHours(const char* value) { m_reservedHoursHasBeenSet = true; m_reservedHours.assign(value); }
64 inline CoverageHours& WithReservedHours(const Aws::String& value) { SetReservedHours(value); return *this;}
65 inline CoverageHours& WithReservedHours(Aws::String&& value) { SetReservedHours(std::move(value)); return *this;}
66 inline CoverageHours& WithReservedHours(const char* value) { SetReservedHours(value); return *this;}
68
70
73 inline const Aws::String& GetTotalRunningHours() const{ return m_totalRunningHours; }
74 inline bool TotalRunningHoursHasBeenSet() const { return m_totalRunningHoursHasBeenSet; }
75 inline void SetTotalRunningHours(const Aws::String& value) { m_totalRunningHoursHasBeenSet = true; m_totalRunningHours = value; }
76 inline void SetTotalRunningHours(Aws::String&& value) { m_totalRunningHoursHasBeenSet = true; m_totalRunningHours = std::move(value); }
77 inline void SetTotalRunningHours(const char* value) { m_totalRunningHoursHasBeenSet = true; m_totalRunningHours.assign(value); }
78 inline CoverageHours& WithTotalRunningHours(const Aws::String& value) { SetTotalRunningHours(value); return *this;}
79 inline CoverageHours& WithTotalRunningHours(Aws::String&& value) { SetTotalRunningHours(std::move(value)); return *this;}
80 inline CoverageHours& WithTotalRunningHours(const char* value) { SetTotalRunningHours(value); return *this;}
82
84
87 inline const Aws::String& GetCoverageHoursPercentage() const{ return m_coverageHoursPercentage; }
88 inline bool CoverageHoursPercentageHasBeenSet() const { return m_coverageHoursPercentageHasBeenSet; }
89 inline void SetCoverageHoursPercentage(const Aws::String& value) { m_coverageHoursPercentageHasBeenSet = true; m_coverageHoursPercentage = value; }
90 inline void SetCoverageHoursPercentage(Aws::String&& value) { m_coverageHoursPercentageHasBeenSet = true; m_coverageHoursPercentage = std::move(value); }
91 inline void SetCoverageHoursPercentage(const char* value) { m_coverageHoursPercentageHasBeenSet = true; m_coverageHoursPercentage.assign(value); }
93 inline CoverageHours& WithCoverageHoursPercentage(Aws::String&& value) { SetCoverageHoursPercentage(std::move(value)); return *this;}
94 inline CoverageHours& WithCoverageHoursPercentage(const char* value) { SetCoverageHoursPercentage(value); return *this;}
96 private:
97
98 Aws::String m_onDemandHours;
99 bool m_onDemandHoursHasBeenSet = false;
100
101 Aws::String m_reservedHours;
102 bool m_reservedHoursHasBeenSet = false;
103
104 Aws::String m_totalRunningHours;
105 bool m_totalRunningHoursHasBeenSet = false;
106
107 Aws::String m_coverageHoursPercentage;
108 bool m_coverageHoursPercentageHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CostExplorer
113} // namespace Aws
void SetTotalRunningHours(const char *value)
CoverageHours & WithReservedHours(const char *value)
const Aws::String & GetReservedHours() const
AWS_COSTEXPLORER_API CoverageHours(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
CoverageHours & WithOnDemandHours(const char *value)
CoverageHours & WithCoverageHoursPercentage(const Aws::String &value)
void SetOnDemandHours(Aws::String &&value)
void SetTotalRunningHours(Aws::String &&value)
void SetOnDemandHours(const char *value)
AWS_COSTEXPLORER_API CoverageHours & operator=(Aws::Utils::Json::JsonView jsonValue)
CoverageHours & WithTotalRunningHours(const char *value)
void SetOnDemandHours(const Aws::String &value)
CoverageHours & WithTotalRunningHours(Aws::String &&value)
void SetCoverageHoursPercentage(Aws::String &&value)
const Aws::String & GetOnDemandHours() const
AWS_COSTEXPLORER_API CoverageHours()
CoverageHours & WithTotalRunningHours(const Aws::String &value)
CoverageHours & WithReservedHours(const Aws::String &value)
void SetTotalRunningHours(const Aws::String &value)
void SetCoverageHoursPercentage(const Aws::String &value)
CoverageHours & WithOnDemandHours(const Aws::String &value)
void SetReservedHours(const char *value)
const Aws::String & GetCoverageHoursPercentage() const
void SetCoverageHoursPercentage(const char *value)
void SetReservedHours(const Aws::String &value)
CoverageHours & WithCoverageHoursPercentage(const char *value)
void SetReservedHours(Aws::String &&value)
CoverageHours & WithCoverageHoursPercentage(Aws::String &&value)
const Aws::String & GetTotalRunningHours() const
CoverageHours & WithReservedHours(Aws::String &&value)
CoverageHours & WithOnDemandHours(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue