AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ComputeConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostOptimizationHub {
20namespace Model {
21
29 public:
30 AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration() = default;
31 AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline double GetVCpu() const { return m_vCpu; }
40 inline bool VCpuHasBeenSet() const { return m_vCpuHasBeenSet; }
41 inline void SetVCpu(double value) {
42 m_vCpuHasBeenSet = true;
43 m_vCpu = value;
44 }
45 inline ComputeConfiguration& WithVCpu(double value) {
46 SetVCpu(value);
47 return *this;
48 }
50
52
55 inline int GetMemorySizeInMB() const { return m_memorySizeInMB; }
56 inline bool MemorySizeInMBHasBeenSet() const { return m_memorySizeInMBHasBeenSet; }
57 inline void SetMemorySizeInMB(int value) {
58 m_memorySizeInMBHasBeenSet = true;
59 m_memorySizeInMB = value;
60 }
62 SetMemorySizeInMB(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetArchitecture() const { return m_architecture; }
72 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
73 template <typename ArchitectureT = Aws::String>
74 void SetArchitecture(ArchitectureT&& value) {
75 m_architectureHasBeenSet = true;
76 m_architecture = std::forward<ArchitectureT>(value);
77 }
78 template <typename ArchitectureT = Aws::String>
79 ComputeConfiguration& WithArchitecture(ArchitectureT&& value) {
80 SetArchitecture(std::forward<ArchitectureT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetPlatform() const { return m_platform; }
91 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
92 template <typename PlatformT = Aws::String>
93 void SetPlatform(PlatformT&& value) {
94 m_platformHasBeenSet = true;
95 m_platform = std::forward<PlatformT>(value);
96 }
97 template <typename PlatformT = Aws::String>
98 ComputeConfiguration& WithPlatform(PlatformT&& value) {
99 SetPlatform(std::forward<PlatformT>(value));
100 return *this;
101 }
103 private:
104 double m_vCpu{0.0};
105
106 int m_memorySizeInMB{0};
107
108 Aws::String m_architecture;
109
110 Aws::String m_platform;
111 bool m_vCpuHasBeenSet = false;
112 bool m_memorySizeInMBHasBeenSet = false;
113 bool m_architectureHasBeenSet = false;
114 bool m_platformHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CostOptimizationHub
119} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ComputeConfiguration & WithPlatform(PlatformT &&value)
AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration()=default
ComputeConfiguration & WithArchitecture(ArchitectureT &&value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue