AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EC2ResourceDetails.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
32 {
33 public:
34 AWS_COSTEXPLORER_API EC2ResourceDetails();
35 AWS_COSTEXPLORER_API EC2ResourceDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetHourlyOnDemandRate() const{ return m_hourlyOnDemandRate; }
45 inline bool HourlyOnDemandRateHasBeenSet() const { return m_hourlyOnDemandRateHasBeenSet; }
46 inline void SetHourlyOnDemandRate(const Aws::String& value) { m_hourlyOnDemandRateHasBeenSet = true; m_hourlyOnDemandRate = value; }
47 inline void SetHourlyOnDemandRate(Aws::String&& value) { m_hourlyOnDemandRateHasBeenSet = true; m_hourlyOnDemandRate = std::move(value); }
48 inline void SetHourlyOnDemandRate(const char* value) { m_hourlyOnDemandRateHasBeenSet = true; m_hourlyOnDemandRate.assign(value); }
49 inline EC2ResourceDetails& WithHourlyOnDemandRate(const Aws::String& value) { SetHourlyOnDemandRate(value); return *this;}
50 inline EC2ResourceDetails& WithHourlyOnDemandRate(Aws::String&& value) { SetHourlyOnDemandRate(std::move(value)); return *this;}
51 inline EC2ResourceDetails& WithHourlyOnDemandRate(const char* value) { SetHourlyOnDemandRate(value); return *this;}
53
55
58 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
59 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
60 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
61 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
62 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
63 inline EC2ResourceDetails& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
64 inline EC2ResourceDetails& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
65 inline EC2ResourceDetails& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
67
69
74 inline const Aws::String& GetPlatform() const{ return m_platform; }
75 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
76 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
77 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
78 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
79 inline EC2ResourceDetails& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
80 inline EC2ResourceDetails& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
81 inline EC2ResourceDetails& WithPlatform(const char* value) { SetPlatform(value); return *this;}
83
85
88 inline const Aws::String& GetRegion() const{ return m_region; }
89 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
90 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
91 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
92 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
93 inline EC2ResourceDetails& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
94 inline EC2ResourceDetails& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
95 inline EC2ResourceDetails& WithRegion(const char* value) { SetRegion(value); return *this;}
97
99
102 inline const Aws::String& GetSku() const{ return m_sku; }
103 inline bool SkuHasBeenSet() const { return m_skuHasBeenSet; }
104 inline void SetSku(const Aws::String& value) { m_skuHasBeenSet = true; m_sku = value; }
105 inline void SetSku(Aws::String&& value) { m_skuHasBeenSet = true; m_sku = std::move(value); }
106 inline void SetSku(const char* value) { m_skuHasBeenSet = true; m_sku.assign(value); }
107 inline EC2ResourceDetails& WithSku(const Aws::String& value) { SetSku(value); return *this;}
108 inline EC2ResourceDetails& WithSku(Aws::String&& value) { SetSku(std::move(value)); return *this;}
109 inline EC2ResourceDetails& WithSku(const char* value) { SetSku(value); return *this;}
111
113
116 inline const Aws::String& GetMemory() const{ return m_memory; }
117 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
118 inline void SetMemory(const Aws::String& value) { m_memoryHasBeenSet = true; m_memory = value; }
119 inline void SetMemory(Aws::String&& value) { m_memoryHasBeenSet = true; m_memory = std::move(value); }
120 inline void SetMemory(const char* value) { m_memoryHasBeenSet = true; m_memory.assign(value); }
121 inline EC2ResourceDetails& WithMemory(const Aws::String& value) { SetMemory(value); return *this;}
122 inline EC2ResourceDetails& WithMemory(Aws::String&& value) { SetMemory(std::move(value)); return *this;}
123 inline EC2ResourceDetails& WithMemory(const char* value) { SetMemory(value); return *this;}
125
127
130 inline const Aws::String& GetNetworkPerformance() const{ return m_networkPerformance; }
131 inline bool NetworkPerformanceHasBeenSet() const { return m_networkPerformanceHasBeenSet; }
132 inline void SetNetworkPerformance(const Aws::String& value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance = value; }
133 inline void SetNetworkPerformance(Aws::String&& value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance = std::move(value); }
134 inline void SetNetworkPerformance(const char* value) { m_networkPerformanceHasBeenSet = true; m_networkPerformance.assign(value); }
135 inline EC2ResourceDetails& WithNetworkPerformance(const Aws::String& value) { SetNetworkPerformance(value); return *this;}
136 inline EC2ResourceDetails& WithNetworkPerformance(Aws::String&& value) { SetNetworkPerformance(std::move(value)); return *this;}
137 inline EC2ResourceDetails& WithNetworkPerformance(const char* value) { SetNetworkPerformance(value); return *this;}
139
141
145 inline const Aws::String& GetStorage() const{ return m_storage; }
146 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
147 inline void SetStorage(const Aws::String& value) { m_storageHasBeenSet = true; m_storage = value; }
148 inline void SetStorage(Aws::String&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); }
149 inline void SetStorage(const char* value) { m_storageHasBeenSet = true; m_storage.assign(value); }
150 inline EC2ResourceDetails& WithStorage(const Aws::String& value) { SetStorage(value); return *this;}
151 inline EC2ResourceDetails& WithStorage(Aws::String&& value) { SetStorage(std::move(value)); return *this;}
152 inline EC2ResourceDetails& WithStorage(const char* value) { SetStorage(value); return *this;}
154
156
159 inline const Aws::String& GetVcpu() const{ return m_vcpu; }
160 inline bool VcpuHasBeenSet() const { return m_vcpuHasBeenSet; }
161 inline void SetVcpu(const Aws::String& value) { m_vcpuHasBeenSet = true; m_vcpu = value; }
162 inline void SetVcpu(Aws::String&& value) { m_vcpuHasBeenSet = true; m_vcpu = std::move(value); }
163 inline void SetVcpu(const char* value) { m_vcpuHasBeenSet = true; m_vcpu.assign(value); }
164 inline EC2ResourceDetails& WithVcpu(const Aws::String& value) { SetVcpu(value); return *this;}
165 inline EC2ResourceDetails& WithVcpu(Aws::String&& value) { SetVcpu(std::move(value)); return *this;}
166 inline EC2ResourceDetails& WithVcpu(const char* value) { SetVcpu(value); return *this;}
168 private:
169
170 Aws::String m_hourlyOnDemandRate;
171 bool m_hourlyOnDemandRateHasBeenSet = false;
172
173 Aws::String m_instanceType;
174 bool m_instanceTypeHasBeenSet = false;
175
176 Aws::String m_platform;
177 bool m_platformHasBeenSet = false;
178
179 Aws::String m_region;
180 bool m_regionHasBeenSet = false;
181
182 Aws::String m_sku;
183 bool m_skuHasBeenSet = false;
184
185 Aws::String m_memory;
186 bool m_memoryHasBeenSet = false;
187
188 Aws::String m_networkPerformance;
189 bool m_networkPerformanceHasBeenSet = false;
190
191 Aws::String m_storage;
192 bool m_storageHasBeenSet = false;
193
194 Aws::String m_vcpu;
195 bool m_vcpuHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace CostExplorer
200} // namespace Aws
AWS_COSTEXPLORER_API EC2ResourceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
EC2ResourceDetails & WithSku(const char *value)
EC2ResourceDetails & WithRegion(Aws::String &&value)
EC2ResourceDetails & WithPlatform(Aws::String &&value)
EC2ResourceDetails & WithInstanceType(const char *value)
EC2ResourceDetails & WithNetworkPerformance(Aws::String &&value)
EC2ResourceDetails & WithInstanceType(Aws::String &&value)
EC2ResourceDetails & WithNetworkPerformance(const char *value)
EC2ResourceDetails & WithPlatform(const char *value)
EC2ResourceDetails & WithHourlyOnDemandRate(const char *value)
EC2ResourceDetails & WithInstanceType(const Aws::String &value)
EC2ResourceDetails & WithSku(Aws::String &&value)
EC2ResourceDetails & WithStorage(Aws::String &&value)
EC2ResourceDetails & WithMemory(const Aws::String &value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
EC2ResourceDetails & WithVcpu(Aws::String &&value)
EC2ResourceDetails & WithNetworkPerformance(const Aws::String &value)
void SetNetworkPerformance(const Aws::String &value)
EC2ResourceDetails & WithRegion(const Aws::String &value)
EC2ResourceDetails & WithStorage(const char *value)
EC2ResourceDetails & WithStorage(const Aws::String &value)
EC2ResourceDetails & WithMemory(const char *value)
EC2ResourceDetails & WithSku(const Aws::String &value)
EC2ResourceDetails & WithRegion(const char *value)
void SetInstanceType(const Aws::String &value)
const Aws::String & GetHourlyOnDemandRate() const
void SetHourlyOnDemandRate(const Aws::String &value)
AWS_COSTEXPLORER_API EC2ResourceDetails(Aws::Utils::Json::JsonView jsonValue)
EC2ResourceDetails & WithHourlyOnDemandRate(Aws::String &&value)
EC2ResourceDetails & WithPlatform(const Aws::String &value)
EC2ResourceDetails & WithMemory(Aws::String &&value)
EC2ResourceDetails & WithVcpu(const Aws::String &value)
EC2ResourceDetails & WithVcpu(const char *value)
EC2ResourceDetails & WithHourlyOnDemandRate(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue