AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlansDetails.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 SavingsPlansDetails();
36 AWS_COSTEXPLORER_API SavingsPlansDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetRegion() const{ return m_region; }
47 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
48 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
49 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
50 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
51 inline SavingsPlansDetails& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
52 inline SavingsPlansDetails& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
53 inline SavingsPlansDetails& WithRegion(const char* value) { SetRegion(value); return *this;}
55
57
60 inline const Aws::String& GetInstanceFamily() const{ return m_instanceFamily; }
61 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
62 inline void SetInstanceFamily(const Aws::String& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
63 inline void SetInstanceFamily(Aws::String&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
64 inline void SetInstanceFamily(const char* value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily.assign(value); }
65 inline SavingsPlansDetails& WithInstanceFamily(const Aws::String& value) { SetInstanceFamily(value); return *this;}
66 inline SavingsPlansDetails& WithInstanceFamily(Aws::String&& value) { SetInstanceFamily(std::move(value)); return *this;}
67 inline SavingsPlansDetails& WithInstanceFamily(const char* value) { SetInstanceFamily(value); return *this;}
69
71
74 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
75 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
76 inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
77 inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
78 inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
79 inline SavingsPlansDetails& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
80 inline SavingsPlansDetails& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
81 inline SavingsPlansDetails& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
83 private:
84
85 Aws::String m_region;
86 bool m_regionHasBeenSet = false;
87
88 Aws::String m_instanceFamily;
89 bool m_instanceFamilyHasBeenSet = false;
90
91 Aws::String m_offeringId;
92 bool m_offeringIdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CostExplorer
97} // namespace Aws
SavingsPlansDetails & WithInstanceFamily(const Aws::String &value)
void SetInstanceFamily(const Aws::String &value)
SavingsPlansDetails & WithInstanceFamily(const char *value)
SavingsPlansDetails & WithRegion(const Aws::String &value)
SavingsPlansDetails & WithInstanceFamily(Aws::String &&value)
AWS_COSTEXPLORER_API SavingsPlansDetails(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansDetails & WithOfferingId(Aws::String &&value)
SavingsPlansDetails & WithRegion(Aws::String &&value)
SavingsPlansDetails & WithOfferingId(const char *value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTEXPLORER_API SavingsPlansDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
SavingsPlansDetails & WithRegion(const char *value)
SavingsPlansDetails & WithOfferingId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue