AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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#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 SavingsPlansUtilization() = default;
36 AWS_COSTEXPLORER_API SavingsPlansUtilization(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetTotalCommitment() const { return m_totalCommitment; }
47 inline bool TotalCommitmentHasBeenSet() const { return m_totalCommitmentHasBeenSet; }
48 template<typename TotalCommitmentT = Aws::String>
49 void SetTotalCommitment(TotalCommitmentT&& value) { m_totalCommitmentHasBeenSet = true; m_totalCommitment = std::forward<TotalCommitmentT>(value); }
50 template<typename TotalCommitmentT = Aws::String>
51 SavingsPlansUtilization& WithTotalCommitment(TotalCommitmentT&& value) { SetTotalCommitment(std::forward<TotalCommitmentT>(value)); return *this;}
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) { m_usedCommitmentHasBeenSet = true; m_usedCommitment = std::forward<UsedCommitmentT>(value); }
63 template<typename UsedCommitmentT = Aws::String>
64 SavingsPlansUtilization& WithUsedCommitment(UsedCommitmentT&& value) { SetUsedCommitment(std::forward<UsedCommitmentT>(value)); return *this;}
66
68
72 inline const Aws::String& GetUnusedCommitment() const { return m_unusedCommitment; }
73 inline bool UnusedCommitmentHasBeenSet() const { return m_unusedCommitmentHasBeenSet; }
74 template<typename UnusedCommitmentT = Aws::String>
75 void SetUnusedCommitment(UnusedCommitmentT&& value) { m_unusedCommitmentHasBeenSet = true; m_unusedCommitment = std::forward<UnusedCommitmentT>(value); }
76 template<typename UnusedCommitmentT = Aws::String>
77 SavingsPlansUtilization& WithUnusedCommitment(UnusedCommitmentT&& value) { SetUnusedCommitment(std::forward<UnusedCommitmentT>(value)); return *this;}
79
81
85 inline const Aws::String& GetUtilizationPercentage() const { return m_utilizationPercentage; }
86 inline bool UtilizationPercentageHasBeenSet() const { return m_utilizationPercentageHasBeenSet; }
87 template<typename UtilizationPercentageT = Aws::String>
88 void SetUtilizationPercentage(UtilizationPercentageT&& value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage = std::forward<UtilizationPercentageT>(value); }
89 template<typename UtilizationPercentageT = Aws::String>
90 SavingsPlansUtilization& WithUtilizationPercentage(UtilizationPercentageT&& value) { SetUtilizationPercentage(std::forward<UtilizationPercentageT>(value)); return *this;}
92 private:
93
94 Aws::String m_totalCommitment;
95 bool m_totalCommitmentHasBeenSet = false;
96
97 Aws::String m_usedCommitment;
98 bool m_usedCommitmentHasBeenSet = false;
99
100 Aws::String m_unusedCommitment;
101 bool m_unusedCommitmentHasBeenSet = false;
102
103 Aws::String m_utilizationPercentage;
104 bool m_utilizationPercentageHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CostExplorer
109} // 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