AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArchitectureT = Aws::String>
68 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet = true; m_architecture = std::forward<ArchitectureT>(value); }
69 template<typename ArchitectureT = Aws::String>
70 ComputeConfiguration& WithArchitecture(ArchitectureT&& value) { SetArchitecture(std::forward<ArchitectureT>(value)); return *this;}
72
74
78 inline const Aws::String& GetPlatform() const { return m_platform; }
79 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
80 template<typename PlatformT = Aws::String>
81 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
82 template<typename PlatformT = Aws::String>
83 ComputeConfiguration& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
85 private:
86
87 double m_vCpu{0.0};
88 bool m_vCpuHasBeenSet = false;
89
90 int m_memorySizeInMB{0};
91 bool m_memorySizeInMBHasBeenSet = false;
92
93 Aws::String m_architecture;
94 bool m_architectureHasBeenSet = false;
95
96 Aws::String m_platform;
97 bool m_platformHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace CostOptimizationHub
102} // 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