AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlansSavings.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 SavingsPlansSavings();
36 AWS_COSTEXPLORER_API SavingsPlansSavings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetNetSavings() const{ return m_netSavings; }
47 inline bool NetSavingsHasBeenSet() const { return m_netSavingsHasBeenSet; }
48 inline void SetNetSavings(const Aws::String& value) { m_netSavingsHasBeenSet = true; m_netSavings = value; }
49 inline void SetNetSavings(Aws::String&& value) { m_netSavingsHasBeenSet = true; m_netSavings = std::move(value); }
50 inline void SetNetSavings(const char* value) { m_netSavingsHasBeenSet = true; m_netSavings.assign(value); }
51 inline SavingsPlansSavings& WithNetSavings(const Aws::String& value) { SetNetSavings(value); return *this;}
52 inline SavingsPlansSavings& WithNetSavings(Aws::String&& value) { SetNetSavings(std::move(value)); return *this;}
53 inline SavingsPlansSavings& WithNetSavings(const char* value) { SetNetSavings(value); return *this;}
55
57
61 inline const Aws::String& GetOnDemandCostEquivalent() const{ return m_onDemandCostEquivalent; }
62 inline bool OnDemandCostEquivalentHasBeenSet() const { return m_onDemandCostEquivalentHasBeenSet; }
63 inline void SetOnDemandCostEquivalent(const Aws::String& value) { m_onDemandCostEquivalentHasBeenSet = true; m_onDemandCostEquivalent = value; }
64 inline void SetOnDemandCostEquivalent(Aws::String&& value) { m_onDemandCostEquivalentHasBeenSet = true; m_onDemandCostEquivalent = std::move(value); }
65 inline void SetOnDemandCostEquivalent(const char* value) { m_onDemandCostEquivalentHasBeenSet = true; m_onDemandCostEquivalent.assign(value); }
67 inline SavingsPlansSavings& WithOnDemandCostEquivalent(Aws::String&& value) { SetOnDemandCostEquivalent(std::move(value)); return *this;}
68 inline SavingsPlansSavings& WithOnDemandCostEquivalent(const char* value) { SetOnDemandCostEquivalent(value); return *this;}
70 private:
71
72 Aws::String m_netSavings;
73 bool m_netSavingsHasBeenSet = false;
74
75 Aws::String m_onDemandCostEquivalent;
76 bool m_onDemandCostEquivalentHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CostExplorer
81} // namespace Aws
AWS_COSTEXPLORER_API SavingsPlansSavings(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOnDemandCostEquivalent() const
SavingsPlansSavings & WithNetSavings(const char *value)
SavingsPlansSavings & WithOnDemandCostEquivalent(const Aws::String &value)
AWS_COSTEXPLORER_API SavingsPlansSavings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOnDemandCostEquivalent(const Aws::String &value)
SavingsPlansSavings & WithNetSavings(Aws::String &&value)
SavingsPlansSavings & WithOnDemandCostEquivalent(const char *value)
SavingsPlansSavings & WithNetSavings(const Aws::String &value)
SavingsPlansSavings & WithOnDemandCostEquivalent(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue