AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerConfiguration.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 ContainerConfiguration();
37 AWS_COMPUTEOPTIMIZER_API ContainerConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API ContainerConfiguration& 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 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
49 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
50 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
51 inline ContainerConfiguration& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
52 inline ContainerConfiguration& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
53 inline ContainerConfiguration& WithContainerName(const char* value) { SetContainerName(value); return *this;}
55
57
60 inline const MemorySizeConfiguration& GetMemorySizeConfiguration() const{ return m_memorySizeConfiguration; }
61 inline bool MemorySizeConfigurationHasBeenSet() const { return m_memorySizeConfigurationHasBeenSet; }
62 inline void SetMemorySizeConfiguration(const MemorySizeConfiguration& value) { m_memorySizeConfigurationHasBeenSet = true; m_memorySizeConfiguration = value; }
63 inline void SetMemorySizeConfiguration(MemorySizeConfiguration&& value) { m_memorySizeConfigurationHasBeenSet = true; m_memorySizeConfiguration = std::move(value); }
67
69
72 inline int GetCpu() const{ return m_cpu; }
73 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
74 inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; }
75 inline ContainerConfiguration& WithCpu(int value) { SetCpu(value); return *this;}
77 private:
78
79 Aws::String m_containerName;
80 bool m_containerNameHasBeenSet = false;
81
82 MemorySizeConfiguration m_memorySizeConfiguration;
83 bool m_memorySizeConfigurationHasBeenSet = false;
84
85 int m_cpu;
86 bool m_cpuHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ComputeOptimizer
91} // namespace Aws
ContainerConfiguration & WithMemorySizeConfiguration(MemorySizeConfiguration &&value)
AWS_COMPUTEOPTIMIZER_API ContainerConfiguration(Aws::Utils::Json::JsonView jsonValue)
ContainerConfiguration & WithContainerName(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API ContainerConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const MemorySizeConfiguration & GetMemorySizeConfiguration() const
ContainerConfiguration & WithMemorySizeConfiguration(const MemorySizeConfiguration &value)
void SetMemorySizeConfiguration(const MemorySizeConfiguration &value)
ContainerConfiguration & WithContainerName(const Aws::String &value)
void SetMemorySizeConfiguration(MemorySizeConfiguration &&value)
ContainerConfiguration & WithContainerName(const char *value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue