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>
24namespace ComputeOptimizer
50 inline void SetMemory(
int value) { m_memoryHasBeenSet =
true; m_memory = value; }
58 inline int GetCpu()
const{
return m_cpu; }
60 inline void SetCpu(
int value) { m_cpuHasBeenSet =
true; m_cpu = value; }
113 inline void SetTaskDefinitionArn(
const char* value) { m_taskDefinitionArnHasBeenSet =
true; m_taskDefinitionArn.assign(value); }
121 bool m_memoryHasBeenSet =
false;
124 bool m_cpuHasBeenSet =
false;
127 bool m_containerConfigurationsHasBeenSet =
false;
130 bool m_autoScalingConfigurationHasBeenSet =
false;
133 bool m_taskDefinitionArnHasBeenSet =
false;
bool ContainerConfigurationsHasBeenSet() const
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)
void SetMemory(int value)
AWS_COMPUTEOPTIMIZER_API ServiceConfiguration()
const Aws::Vector< ContainerConfiguration > & GetContainerConfigurations() const
bool TaskDefinitionArnHasBeenSet() const
ServiceConfiguration & AddContainerConfigurations(ContainerConfiguration &&value)
ServiceConfiguration & WithTaskDefinitionArn(Aws::String &&value)
ServiceConfiguration & WithCpu(int value)
const Aws::String & GetTaskDefinitionArn() const
AWS_COMPUTEOPTIMIZER_API ServiceConfiguration(Aws::Utils::Json::JsonView jsonValue)
ServiceConfiguration & WithContainerConfigurations(const Aws::Vector< ContainerConfiguration > &value)
void SetContainerConfigurations(const Aws::Vector< ContainerConfiguration > &value)
void SetTaskDefinitionArn(const char *value)
bool MemoryHasBeenSet() const
ServiceConfiguration & AddContainerConfigurations(const ContainerConfiguration &value)
void SetContainerConfigurations(Aws::Vector< ContainerConfiguration > &&value)
void SetTaskDefinitionArn(const Aws::String &value)
bool CpuHasBeenSet() const
ServiceConfiguration & WithMemory(int value)
bool AutoScalingConfigurationHasBeenSet() const
ServiceConfiguration & WithAutoScalingConfiguration(AutoScalingConfiguration &&value)
void SetTaskDefinitionArn(Aws::String &&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