AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InitialCapacityConfig.h
1
6#pragma once
7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8#include <aws/emr-serverless/model/WorkerResourceConfig.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMRServerless
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EMRSERVERLESS_API InitialCapacityConfig() = default;
35 AWS_EMRSERVERLESS_API InitialCapacityConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline long long GetWorkerCount() const { return m_workerCount; }
45 inline bool WorkerCountHasBeenSet() const { return m_workerCountHasBeenSet; }
46 inline void SetWorkerCount(long long value) { m_workerCountHasBeenSet = true; m_workerCount = value; }
47 inline InitialCapacityConfig& WithWorkerCount(long long value) { SetWorkerCount(value); return *this;}
49
51
54 inline const WorkerResourceConfig& GetWorkerConfiguration() const { return m_workerConfiguration; }
55 inline bool WorkerConfigurationHasBeenSet() const { return m_workerConfigurationHasBeenSet; }
56 template<typename WorkerConfigurationT = WorkerResourceConfig>
57 void SetWorkerConfiguration(WorkerConfigurationT&& value) { m_workerConfigurationHasBeenSet = true; m_workerConfiguration = std::forward<WorkerConfigurationT>(value); }
58 template<typename WorkerConfigurationT = WorkerResourceConfig>
59 InitialCapacityConfig& WithWorkerConfiguration(WorkerConfigurationT&& value) { SetWorkerConfiguration(std::forward<WorkerConfigurationT>(value)); return *this;}
61 private:
62
63 long long m_workerCount{0};
64 bool m_workerCountHasBeenSet = false;
65
66 WorkerResourceConfig m_workerConfiguration;
67 bool m_workerConfigurationHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace EMRServerless
72} // namespace Aws
InitialCapacityConfig & WithWorkerCount(long long value)
AWS_EMRSERVERLESS_API InitialCapacityConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
InitialCapacityConfig & WithWorkerConfiguration(WorkerConfigurationT &&value)
AWS_EMRSERVERLESS_API InitialCapacityConfig()=default
const WorkerResourceConfig & GetWorkerConfiguration() const
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWorkerConfiguration(WorkerConfigurationT &&value)
AWS_EMRSERVERLESS_API InitialCapacityConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue