AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlansCoverageData.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
34 {
35 public:
36 AWS_COSTEXPLORER_API SavingsPlansCoverageData();
39 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetSpendCoveredBySavingsPlans() const{ return m_spendCoveredBySavingsPlans; }
48 inline bool SpendCoveredBySavingsPlansHasBeenSet() const { return m_spendCoveredBySavingsPlansHasBeenSet; }
49 inline void SetSpendCoveredBySavingsPlans(const Aws::String& value) { m_spendCoveredBySavingsPlansHasBeenSet = true; m_spendCoveredBySavingsPlans = value; }
50 inline void SetSpendCoveredBySavingsPlans(Aws::String&& value) { m_spendCoveredBySavingsPlansHasBeenSet = true; m_spendCoveredBySavingsPlans = std::move(value); }
51 inline void SetSpendCoveredBySavingsPlans(const char* value) { m_spendCoveredBySavingsPlansHasBeenSet = true; m_spendCoveredBySavingsPlans.assign(value); }
56
58
61 inline const Aws::String& GetOnDemandCost() const{ return m_onDemandCost; }
62 inline bool OnDemandCostHasBeenSet() const { return m_onDemandCostHasBeenSet; }
63 inline void SetOnDemandCost(const Aws::String& value) { m_onDemandCostHasBeenSet = true; m_onDemandCost = value; }
64 inline void SetOnDemandCost(Aws::String&& value) { m_onDemandCostHasBeenSet = true; m_onDemandCost = std::move(value); }
65 inline void SetOnDemandCost(const char* value) { m_onDemandCostHasBeenSet = true; m_onDemandCost.assign(value); }
66 inline SavingsPlansCoverageData& WithOnDemandCost(const Aws::String& value) { SetOnDemandCost(value); return *this;}
67 inline SavingsPlansCoverageData& WithOnDemandCost(Aws::String&& value) { SetOnDemandCost(std::move(value)); return *this;}
68 inline SavingsPlansCoverageData& WithOnDemandCost(const char* value) { SetOnDemandCost(value); return *this;}
70
72
76 inline const Aws::String& GetTotalCost() const{ return m_totalCost; }
77 inline bool TotalCostHasBeenSet() const { return m_totalCostHasBeenSet; }
78 inline void SetTotalCost(const Aws::String& value) { m_totalCostHasBeenSet = true; m_totalCost = value; }
79 inline void SetTotalCost(Aws::String&& value) { m_totalCostHasBeenSet = true; m_totalCost = std::move(value); }
80 inline void SetTotalCost(const char* value) { m_totalCostHasBeenSet = true; m_totalCost.assign(value); }
81 inline SavingsPlansCoverageData& WithTotalCost(const Aws::String& value) { SetTotalCost(value); return *this;}
82 inline SavingsPlansCoverageData& WithTotalCost(Aws::String&& value) { SetTotalCost(std::move(value)); return *this;}
83 inline SavingsPlansCoverageData& WithTotalCost(const char* value) { SetTotalCost(value); return *this;}
85
87
91 inline const Aws::String& GetCoveragePercentage() const{ return m_coveragePercentage; }
92 inline bool CoveragePercentageHasBeenSet() const { return m_coveragePercentageHasBeenSet; }
93 inline void SetCoveragePercentage(const Aws::String& value) { m_coveragePercentageHasBeenSet = true; m_coveragePercentage = value; }
94 inline void SetCoveragePercentage(Aws::String&& value) { m_coveragePercentageHasBeenSet = true; m_coveragePercentage = std::move(value); }
95 inline void SetCoveragePercentage(const char* value) { m_coveragePercentageHasBeenSet = true; m_coveragePercentage.assign(value); }
97 inline SavingsPlansCoverageData& WithCoveragePercentage(Aws::String&& value) { SetCoveragePercentage(std::move(value)); return *this;}
98 inline SavingsPlansCoverageData& WithCoveragePercentage(const char* value) { SetCoveragePercentage(value); return *this;}
100 private:
101
102 Aws::String m_spendCoveredBySavingsPlans;
103 bool m_spendCoveredBySavingsPlansHasBeenSet = false;
104
105 Aws::String m_onDemandCost;
106 bool m_onDemandCostHasBeenSet = false;
107
108 Aws::String m_totalCost;
109 bool m_totalCostHasBeenSet = false;
110
111 Aws::String m_coveragePercentage;
112 bool m_coveragePercentageHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CostExplorer
117} // namespace Aws
SavingsPlansCoverageData & WithSpendCoveredBySavingsPlans(Aws::String &&value)
SavingsPlansCoverageData & WithCoveragePercentage(Aws::String &&value)
SavingsPlansCoverageData & WithOnDemandCost(const char *value)
SavingsPlansCoverageData & WithTotalCost(const Aws::String &value)
AWS_COSTEXPLORER_API SavingsPlansCoverageData(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansCoverageData & WithCoveragePercentage(const char *value)
AWS_COSTEXPLORER_API SavingsPlansCoverageData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlansCoverageData & WithTotalCost(Aws::String &&value)
SavingsPlansCoverageData & WithSpendCoveredBySavingsPlans(const char *value)
SavingsPlansCoverageData & WithSpendCoveredBySavingsPlans(const Aws::String &value)
SavingsPlansCoverageData & WithOnDemandCost(Aws::String &&value)
SavingsPlansCoverageData & WithTotalCost(const char *value)
SavingsPlansCoverageData & WithOnDemandCost(const Aws::String &value)
SavingsPlansCoverageData & WithCoveragePercentage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue