AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTotalCommitment(const Aws::String& value) { m_totalCommitmentHasBeenSet = true; m_totalCommitment = value; }
49 inline void SetTotalCommitment(Aws::String&& value) { m_totalCommitmentHasBeenSet = true; m_totalCommitment = std::move(value); }
50 inline void SetTotalCommitment(const char* value) { m_totalCommitmentHasBeenSet = true; m_totalCommitment.assign(value); }
51 inline SavingsPlansUtilization& WithTotalCommitment(const Aws::String& value) { SetTotalCommitment(value); return *this;}
52 inline SavingsPlansUtilization& WithTotalCommitment(Aws::String&& value) { SetTotalCommitment(std::move(value)); return *this;}
53 inline SavingsPlansUtilization& WithTotalCommitment(const char* value) { SetTotalCommitment(value); return *this;}
55
57
61 inline const Aws::String& GetUsedCommitment() const{ return m_usedCommitment; }
62 inline bool UsedCommitmentHasBeenSet() const { return m_usedCommitmentHasBeenSet; }
63 inline void SetUsedCommitment(const Aws::String& value) { m_usedCommitmentHasBeenSet = true; m_usedCommitment = value; }
64 inline void SetUsedCommitment(Aws::String&& value) { m_usedCommitmentHasBeenSet = true; m_usedCommitment = std::move(value); }
65 inline void SetUsedCommitment(const char* value) { m_usedCommitmentHasBeenSet = true; m_usedCommitment.assign(value); }
66 inline SavingsPlansUtilization& WithUsedCommitment(const Aws::String& value) { SetUsedCommitment(value); return *this;}
67 inline SavingsPlansUtilization& WithUsedCommitment(Aws::String&& value) { SetUsedCommitment(std::move(value)); return *this;}
68 inline SavingsPlansUtilization& WithUsedCommitment(const char* value) { SetUsedCommitment(value); return *this;}
70
72
76 inline const Aws::String& GetUnusedCommitment() const{ return m_unusedCommitment; }
77 inline bool UnusedCommitmentHasBeenSet() const { return m_unusedCommitmentHasBeenSet; }
78 inline void SetUnusedCommitment(const Aws::String& value) { m_unusedCommitmentHasBeenSet = true; m_unusedCommitment = value; }
79 inline void SetUnusedCommitment(Aws::String&& value) { m_unusedCommitmentHasBeenSet = true; m_unusedCommitment = std::move(value); }
80 inline void SetUnusedCommitment(const char* value) { m_unusedCommitmentHasBeenSet = true; m_unusedCommitment.assign(value); }
81 inline SavingsPlansUtilization& WithUnusedCommitment(const Aws::String& value) { SetUnusedCommitment(value); return *this;}
82 inline SavingsPlansUtilization& WithUnusedCommitment(Aws::String&& value) { SetUnusedCommitment(std::move(value)); return *this;}
83 inline SavingsPlansUtilization& WithUnusedCommitment(const char* value) { SetUnusedCommitment(value); return *this;}
85
87
91 inline const Aws::String& GetUtilizationPercentage() const{ return m_utilizationPercentage; }
92 inline bool UtilizationPercentageHasBeenSet() const { return m_utilizationPercentageHasBeenSet; }
93 inline void SetUtilizationPercentage(const Aws::String& value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage = value; }
94 inline void SetUtilizationPercentage(Aws::String&& value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage = std::move(value); }
95 inline void SetUtilizationPercentage(const char* value) { m_utilizationPercentageHasBeenSet = true; m_utilizationPercentage.assign(value); }
98 inline SavingsPlansUtilization& WithUtilizationPercentage(const char* value) { SetUtilizationPercentage(value); return *this;}
100 private:
101
102 Aws::String m_totalCommitment;
103 bool m_totalCommitmentHasBeenSet = false;
104
105 Aws::String m_usedCommitment;
106 bool m_usedCommitmentHasBeenSet = false;
107
108 Aws::String m_unusedCommitment;
109 bool m_unusedCommitmentHasBeenSet = false;
110
111 Aws::String m_utilizationPercentage;
112 bool m_utilizationPercentageHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CostExplorer
117} // namespace Aws
SavingsPlansUtilization & WithUnusedCommitment(const Aws::String &value)
AWS_COSTEXPLORER_API SavingsPlansUtilization & operator=(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansUtilization & WithTotalCommitment(Aws::String &&value)
SavingsPlansUtilization & WithUtilizationPercentage(const Aws::String &value)
SavingsPlansUtilization & WithUsedCommitment(const char *value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlansUtilization & WithUtilizationPercentage(Aws::String &&value)
SavingsPlansUtilization & WithUsedCommitment(const Aws::String &value)
SavingsPlansUtilization & WithTotalCommitment(const char *value)
SavingsPlansUtilization & WithUtilizationPercentage(const char *value)
SavingsPlansUtilization & WithUnusedCommitment(Aws::String &&value)
SavingsPlansUtilization & WithUnusedCommitment(const char *value)
AWS_COSTEXPLORER_API SavingsPlansUtilization(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansUtilization & WithTotalCommitment(const Aws::String &value)
SavingsPlansUtilization & WithUsedCommitment(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue