AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ESInstanceDetails.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 ESInstanceDetails();
36 AWS_COSTEXPLORER_API ESInstanceDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTEXPLORER_API ESInstanceDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetInstanceClass() const{ return m_instanceClass; }
46 inline bool InstanceClassHasBeenSet() const { return m_instanceClassHasBeenSet; }
47 inline void SetInstanceClass(const Aws::String& value) { m_instanceClassHasBeenSet = true; m_instanceClass = value; }
48 inline void SetInstanceClass(Aws::String&& value) { m_instanceClassHasBeenSet = true; m_instanceClass = std::move(value); }
49 inline void SetInstanceClass(const char* value) { m_instanceClassHasBeenSet = true; m_instanceClass.assign(value); }
50 inline ESInstanceDetails& WithInstanceClass(const Aws::String& value) { SetInstanceClass(value); return *this;}
51 inline ESInstanceDetails& WithInstanceClass(Aws::String&& value) { SetInstanceClass(std::move(value)); return *this;}
52 inline ESInstanceDetails& WithInstanceClass(const char* value) { SetInstanceClass(value); return *this;}
54
56
59 inline const Aws::String& GetInstanceSize() const{ return m_instanceSize; }
60 inline bool InstanceSizeHasBeenSet() const { return m_instanceSizeHasBeenSet; }
61 inline void SetInstanceSize(const Aws::String& value) { m_instanceSizeHasBeenSet = true; m_instanceSize = value; }
62 inline void SetInstanceSize(Aws::String&& value) { m_instanceSizeHasBeenSet = true; m_instanceSize = std::move(value); }
63 inline void SetInstanceSize(const char* value) { m_instanceSizeHasBeenSet = true; m_instanceSize.assign(value); }
64 inline ESInstanceDetails& WithInstanceSize(const Aws::String& value) { SetInstanceSize(value); return *this;}
65 inline ESInstanceDetails& WithInstanceSize(Aws::String&& value) { SetInstanceSize(std::move(value)); return *this;}
66 inline ESInstanceDetails& WithInstanceSize(const char* value) { SetInstanceSize(value); return *this;}
68
70
73 inline const Aws::String& GetRegion() const{ return m_region; }
74 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
75 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
76 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
77 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
78 inline ESInstanceDetails& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
79 inline ESInstanceDetails& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
80 inline ESInstanceDetails& WithRegion(const char* value) { SetRegion(value); return *this;}
82
84
88 inline bool GetCurrentGeneration() const{ return m_currentGeneration; }
89 inline bool CurrentGenerationHasBeenSet() const { return m_currentGenerationHasBeenSet; }
90 inline void SetCurrentGeneration(bool value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = value; }
91 inline ESInstanceDetails& WithCurrentGeneration(bool value) { SetCurrentGeneration(value); return *this;}
93
95
98 inline bool GetSizeFlexEligible() const{ return m_sizeFlexEligible; }
99 inline bool SizeFlexEligibleHasBeenSet() const { return m_sizeFlexEligibleHasBeenSet; }
100 inline void SetSizeFlexEligible(bool value) { m_sizeFlexEligibleHasBeenSet = true; m_sizeFlexEligible = value; }
101 inline ESInstanceDetails& WithSizeFlexEligible(bool value) { SetSizeFlexEligible(value); return *this;}
103 private:
104
105 Aws::String m_instanceClass;
106 bool m_instanceClassHasBeenSet = false;
107
108 Aws::String m_instanceSize;
109 bool m_instanceSizeHasBeenSet = false;
110
111 Aws::String m_region;
112 bool m_regionHasBeenSet = false;
113
114 bool m_currentGeneration;
115 bool m_currentGenerationHasBeenSet = false;
116
117 bool m_sizeFlexEligible;
118 bool m_sizeFlexEligibleHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CostExplorer
123} // namespace Aws
void SetInstanceSize(const Aws::String &value)
ESInstanceDetails & WithInstanceClass(const Aws::String &value)
AWS_COSTEXPLORER_API ESInstanceDetails(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceClass(const Aws::String &value)
ESInstanceDetails & WithRegion(Aws::String &&value)
ESInstanceDetails & WithRegion(const Aws::String &value)
ESInstanceDetails & WithInstanceClass(Aws::String &&value)
ESInstanceDetails & WithCurrentGeneration(bool value)
ESInstanceDetails & WithInstanceClass(const char *value)
ESInstanceDetails & WithInstanceSize(const Aws::String &value)
ESInstanceDetails & WithRegion(const char *value)
ESInstanceDetails & WithSizeFlexEligible(bool value)
void SetRegion(const Aws::String &value)
ESInstanceDetails & WithInstanceSize(const char *value)
ESInstanceDetails & WithInstanceSize(Aws::String &&value)
AWS_COSTEXPLORER_API ESInstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue