AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComputeConfiguration.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_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 CostOptimizationHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration();
36 AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline double GetVCpu() const{ return m_vCpu; }
46 inline bool VCpuHasBeenSet() const { return m_vCpuHasBeenSet; }
47 inline void SetVCpu(double value) { m_vCpuHasBeenSet = true; m_vCpu = value; }
48 inline ComputeConfiguration& WithVCpu(double value) { SetVCpu(value); return *this;}
50
52
55 inline int GetMemorySizeInMB() const{ return m_memorySizeInMB; }
56 inline bool MemorySizeInMBHasBeenSet() const { return m_memorySizeInMBHasBeenSet; }
57 inline void SetMemorySizeInMB(int value) { m_memorySizeInMBHasBeenSet = true; m_memorySizeInMB = value; }
58 inline ComputeConfiguration& WithMemorySizeInMB(int value) { SetMemorySizeInMB(value); return *this;}
60
62
65 inline const Aws::String& GetArchitecture() const{ return m_architecture; }
66 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
67 inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; }
68 inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
69 inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); }
70 inline ComputeConfiguration& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
71 inline ComputeConfiguration& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;}
72 inline ComputeConfiguration& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
74
76
80 inline const Aws::String& GetPlatform() const{ return m_platform; }
81 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
82 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
83 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
84 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
85 inline ComputeConfiguration& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
86 inline ComputeConfiguration& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
87 inline ComputeConfiguration& WithPlatform(const char* value) { SetPlatform(value); return *this;}
89 private:
90
91 double m_vCpu;
92 bool m_vCpuHasBeenSet = false;
93
94 int m_memorySizeInMB;
95 bool m_memorySizeInMBHasBeenSet = false;
96
97 Aws::String m_architecture;
98 bool m_architectureHasBeenSet = false;
99
100 Aws::String m_platform;
101 bool m_platformHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CostOptimizationHub
106} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ComputeConfiguration & WithPlatform(const char *value)
ComputeConfiguration & WithPlatform(const Aws::String &value)
ComputeConfiguration & WithArchitecture(const Aws::String &value)
ComputeConfiguration & WithArchitecture(const char *value)
AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration()
ComputeConfiguration & WithPlatform(Aws::String &&value)
AWS_COSTOPTIMIZATIONHUB_API ComputeConfiguration(Aws::Utils::Json::JsonView jsonValue)
ComputeConfiguration & WithArchitecture(Aws::String &&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