AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SavingsPlansUtilization.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostExplorer {
20namespace Model {
21
29 public:
30 AWS_COSTEXPLORER_API SavingsPlansUtilization() = default;
31 AWS_COSTEXPLORER_API SavingsPlansUtilization(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetTotalCommitment() const { return m_totalCommitment; }
41 inline bool TotalCommitmentHasBeenSet() const { return m_totalCommitmentHasBeenSet; }
42 template <typename TotalCommitmentT = Aws::String>
43 void SetTotalCommitment(TotalCommitmentT&& value) {
44 m_totalCommitmentHasBeenSet = true;
45 m_totalCommitment = std::forward<TotalCommitmentT>(value);
46 }
47 template <typename TotalCommitmentT = Aws::String>
48 SavingsPlansUtilization& WithTotalCommitment(TotalCommitmentT&& value) {
49 SetTotalCommitment(std::forward<TotalCommitmentT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetUsedCommitment() const { return m_usedCommitment; }
60 inline bool UsedCommitmentHasBeenSet() const { return m_usedCommitmentHasBeenSet; }
61 template <typename UsedCommitmentT = Aws::String>
62 void SetUsedCommitment(UsedCommitmentT&& value) {
63 m_usedCommitmentHasBeenSet = true;
64 m_usedCommitment = std::forward<UsedCommitmentT>(value);
65 }
66 template <typename UsedCommitmentT = Aws::String>
67 SavingsPlansUtilization& WithUsedCommitment(UsedCommitmentT&& value) {
68 SetUsedCommitment(std::forward<UsedCommitmentT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetUnusedCommitment() const { return m_unusedCommitment; }
79 inline bool UnusedCommitmentHasBeenSet() const { return m_unusedCommitmentHasBeenSet; }
80 template <typename UnusedCommitmentT = Aws::String>
81 void SetUnusedCommitment(UnusedCommitmentT&& value) {
82 m_unusedCommitmentHasBeenSet = true;
83 m_unusedCommitment = std::forward<UnusedCommitmentT>(value);
84 }
85 template <typename UnusedCommitmentT = Aws::String>
86 SavingsPlansUtilization& WithUnusedCommitment(UnusedCommitmentT&& value) {
87 SetUnusedCommitment(std::forward<UnusedCommitmentT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetUtilizationPercentage() const { return m_utilizationPercentage; }
98 inline bool UtilizationPercentageHasBeenSet() const { return m_utilizationPercentageHasBeenSet; }
99 template <typename UtilizationPercentageT = Aws::String>
100 void SetUtilizationPercentage(UtilizationPercentageT&& value) {
101 m_utilizationPercentageHasBeenSet = true;
102 m_utilizationPercentage = std::forward<UtilizationPercentageT>(value);
103 }
104 template <typename UtilizationPercentageT = Aws::String>
105 SavingsPlansUtilization& WithUtilizationPercentage(UtilizationPercentageT&& value) {
106 SetUtilizationPercentage(std::forward<UtilizationPercentageT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_totalCommitment;
112
113 Aws::String m_usedCommitment;
114
115 Aws::String m_unusedCommitment;
116
117 Aws::String m_utilizationPercentage;
118 bool m_totalCommitmentHasBeenSet = false;
119 bool m_usedCommitmentHasBeenSet = false;
120 bool m_unusedCommitmentHasBeenSet = false;
121 bool m_utilizationPercentageHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CostExplorer
126} // namespace Aws
SavingsPlansUtilization & WithUtilizationPercentage(UtilizationPercentageT &&value)
AWS_COSTEXPLORER_API SavingsPlansUtilization & operator=(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansUtilization & WithTotalCommitment(TotalCommitmentT &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlansUtilization & WithUsedCommitment(UsedCommitmentT &&value)
AWS_COSTEXPLORER_API SavingsPlansUtilization()=default
SavingsPlansUtilization & WithUnusedCommitment(UnusedCommitmentT &&value)
void SetUtilizationPercentage(UtilizationPercentageT &&value)
AWS_COSTEXPLORER_API SavingsPlansUtilization(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue