AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ContainerRecommendation.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/compute-optimizer/model/MemorySizeConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComputeOptimizer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COMPUTEOPTIMIZER_API ContainerRecommendation() = default;
37 AWS_COMPUTEOPTIMIZER_API ContainerRecommendation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API ContainerRecommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetContainerName() const { return m_containerName; }
47 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
48 template<typename ContainerNameT = Aws::String>
49 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
50 template<typename ContainerNameT = Aws::String>
51 ContainerRecommendation& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
53
55
58 inline const MemorySizeConfiguration& GetMemorySizeConfiguration() const { return m_memorySizeConfiguration; }
59 inline bool MemorySizeConfigurationHasBeenSet() const { return m_memorySizeConfigurationHasBeenSet; }
60 template<typename MemorySizeConfigurationT = MemorySizeConfiguration>
61 void SetMemorySizeConfiguration(MemorySizeConfigurationT&& value) { m_memorySizeConfigurationHasBeenSet = true; m_memorySizeConfiguration = std::forward<MemorySizeConfigurationT>(value); }
62 template<typename MemorySizeConfigurationT = MemorySizeConfiguration>
63 ContainerRecommendation& WithMemorySizeConfiguration(MemorySizeConfigurationT&& value) { SetMemorySizeConfiguration(std::forward<MemorySizeConfigurationT>(value)); return *this;}
65
67
70 inline int GetCpu() const { return m_cpu; }
71 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
72 inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; }
73 inline ContainerRecommendation& WithCpu(int value) { SetCpu(value); return *this;}
75 private:
76
77 Aws::String m_containerName;
78 bool m_containerNameHasBeenSet = false;
79
80 MemorySizeConfiguration m_memorySizeConfiguration;
81 bool m_memorySizeConfigurationHasBeenSet = false;
82
83 int m_cpu{0};
84 bool m_cpuHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace ComputeOptimizer
89} // namespace Aws
ContainerRecommendation & WithContainerName(ContainerNameT &&value)
const MemorySizeConfiguration & GetMemorySizeConfiguration() const
AWS_COMPUTEOPTIMIZER_API ContainerRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerRecommendation & WithMemorySizeConfiguration(MemorySizeConfigurationT &&value)
AWS_COMPUTEOPTIMIZER_API ContainerRecommendation(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API ContainerRecommendation()=default
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMemorySizeConfiguration(MemorySizeConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue