AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceConfiguration.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/compute-optimizer/model/AutoScalingConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/compute-optimizer/model/ContainerConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ComputeOptimizer
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_COMPUTEOPTIMIZER_API ServiceConfiguration();
39 AWS_COMPUTEOPTIMIZER_API ServiceConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COMPUTEOPTIMIZER_API ServiceConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline int GetMemory() const{ return m_memory; }
49 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
50 inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; }
51 inline ServiceConfiguration& WithMemory(int value) { SetMemory(value); return *this;}
53
55
58 inline int GetCpu() const{ return m_cpu; }
59 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
60 inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; }
61 inline ServiceConfiguration& WithCpu(int value) { SetCpu(value); return *this;}
63
65
68 inline const Aws::Vector<ContainerConfiguration>& GetContainerConfigurations() const{ return m_containerConfigurations; }
69 inline bool ContainerConfigurationsHasBeenSet() const { return m_containerConfigurationsHasBeenSet; }
70 inline void SetContainerConfigurations(const Aws::Vector<ContainerConfiguration>& value) { m_containerConfigurationsHasBeenSet = true; m_containerConfigurations = value; }
71 inline void SetContainerConfigurations(Aws::Vector<ContainerConfiguration>&& value) { m_containerConfigurationsHasBeenSet = true; m_containerConfigurations = std::move(value); }
74 inline ServiceConfiguration& AddContainerConfigurations(const ContainerConfiguration& value) { m_containerConfigurationsHasBeenSet = true; m_containerConfigurations.push_back(value); return *this; }
75 inline ServiceConfiguration& AddContainerConfigurations(ContainerConfiguration&& value) { m_containerConfigurationsHasBeenSet = true; m_containerConfigurations.push_back(std::move(value)); return *this; }
77
79
97 inline const AutoScalingConfiguration& GetAutoScalingConfiguration() const{ return m_autoScalingConfiguration; }
98 inline bool AutoScalingConfigurationHasBeenSet() const { return m_autoScalingConfigurationHasBeenSet; }
99 inline void SetAutoScalingConfiguration(const AutoScalingConfiguration& value) { m_autoScalingConfigurationHasBeenSet = true; m_autoScalingConfiguration = value; }
100 inline void SetAutoScalingConfiguration(AutoScalingConfiguration&& value) { m_autoScalingConfigurationHasBeenSet = true; m_autoScalingConfiguration = std::move(value); }
104
106
109 inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; }
110 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
111 inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; }
112 inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); }
113 inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); }
114 inline ServiceConfiguration& WithTaskDefinitionArn(const Aws::String& value) { SetTaskDefinitionArn(value); return *this;}
115 inline ServiceConfiguration& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;}
116 inline ServiceConfiguration& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;}
118 private:
119
120 int m_memory;
121 bool m_memoryHasBeenSet = false;
122
123 int m_cpu;
124 bool m_cpuHasBeenSet = false;
125
126 Aws::Vector<ContainerConfiguration> m_containerConfigurations;
127 bool m_containerConfigurationsHasBeenSet = false;
128
129 AutoScalingConfiguration m_autoScalingConfiguration;
130 bool m_autoScalingConfigurationHasBeenSet = false;
131
132 Aws::String m_taskDefinitionArn;
133 bool m_taskDefinitionArnHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace ComputeOptimizer
138} // namespace Aws
ServiceConfiguration & WithAutoScalingConfiguration(const AutoScalingConfiguration &value)
void SetAutoScalingConfiguration(const AutoScalingConfiguration &value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API ServiceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceConfiguration & WithContainerConfigurations(Aws::Vector< ContainerConfiguration > &&value)
ServiceConfiguration & WithTaskDefinitionArn(const Aws::String &value)
ServiceConfiguration & WithTaskDefinitionArn(const char *value)
const Aws::Vector< ContainerConfiguration > & GetContainerConfigurations() const
ServiceConfiguration & AddContainerConfigurations(ContainerConfiguration &&value)
ServiceConfiguration & WithTaskDefinitionArn(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API ServiceConfiguration(Aws::Utils::Json::JsonView jsonValue)
ServiceConfiguration & WithContainerConfigurations(const Aws::Vector< ContainerConfiguration > &value)
void SetContainerConfigurations(const Aws::Vector< ContainerConfiguration > &value)
ServiceConfiguration & AddContainerConfigurations(const ContainerConfiguration &value)
void SetContainerConfigurations(Aws::Vector< ContainerConfiguration > &&value)
ServiceConfiguration & WithAutoScalingConfiguration(AutoScalingConfiguration &&value)
void SetAutoScalingConfiguration(AutoScalingConfiguration &&value)
const AutoScalingConfiguration & GetAutoScalingConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue