AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ContainerConfiguration.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/MemorySizeConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ComputeOptimizer {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZER_API ContainerConfiguration() = default;
32 AWS_COMPUTEOPTIMIZER_API ContainerConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPUTEOPTIMIZER_API ContainerConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetContainerName() const { return m_containerName; }
41 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
42 template <typename ContainerNameT = Aws::String>
43 void SetContainerName(ContainerNameT&& value) {
44 m_containerNameHasBeenSet = true;
45 m_containerName = std::forward<ContainerNameT>(value);
46 }
47 template <typename ContainerNameT = Aws::String>
48 ContainerConfiguration& WithContainerName(ContainerNameT&& value) {
49 SetContainerName(std::forward<ContainerNameT>(value));
50 return *this;
51 }
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) {
62 m_memorySizeConfigurationHasBeenSet = true;
63 m_memorySizeConfiguration = std::forward<MemorySizeConfigurationT>(value);
64 }
65 template <typename MemorySizeConfigurationT = MemorySizeConfiguration>
66 ContainerConfiguration& WithMemorySizeConfiguration(MemorySizeConfigurationT&& value) {
67 SetMemorySizeConfiguration(std::forward<MemorySizeConfigurationT>(value));
68 return *this;
69 }
71
73
76 inline int GetCpu() const { return m_cpu; }
77 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
78 inline void SetCpu(int value) {
79 m_cpuHasBeenSet = true;
80 m_cpu = value;
81 }
82 inline ContainerConfiguration& WithCpu(int value) {
83 SetCpu(value);
84 return *this;
85 }
87 private:
88 Aws::String m_containerName;
89
90 MemorySizeConfiguration m_memorySizeConfiguration;
91
92 int m_cpu{0};
93 bool m_containerNameHasBeenSet = false;
94 bool m_memorySizeConfigurationHasBeenSet = false;
95 bool m_cpuHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ComputeOptimizer
100} // namespace Aws
void SetMemorySizeConfiguration(MemorySizeConfigurationT &&value)
AWS_COMPUTEOPTIMIZER_API ContainerConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API ContainerConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const MemorySizeConfiguration & GetMemorySizeConfiguration() const
ContainerConfiguration & WithContainerName(ContainerNameT &&value)
ContainerConfiguration & WithMemorySizeConfiguration(MemorySizeConfigurationT &&value)
AWS_COMPUTEOPTIMIZER_API ContainerConfiguration()=default
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