AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityProviderStrategyItem.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 Scheduler
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SCHEDULER_API CapacityProviderStrategyItem();
37 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
47 inline int GetBase() const{ return m_base; }
48 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
49 inline void SetBase(int value) { m_baseHasBeenSet = true; m_base = value; }
50 inline CapacityProviderStrategyItem& WithBase(int value) { SetBase(value); return *this;}
52
54
57 inline const Aws::String& GetCapacityProvider() const{ return m_capacityProvider; }
58 inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; }
59 inline void SetCapacityProvider(const Aws::String& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = value; }
60 inline void SetCapacityProvider(Aws::String&& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = std::move(value); }
61 inline void SetCapacityProvider(const char* value) { m_capacityProviderHasBeenSet = true; m_capacityProvider.assign(value); }
63 inline CapacityProviderStrategyItem& WithCapacityProvider(Aws::String&& value) { SetCapacityProvider(std::move(value)); return *this;}
64 inline CapacityProviderStrategyItem& WithCapacityProvider(const char* value) { SetCapacityProvider(value); return *this;}
66
68
73 inline int GetWeight() const{ return m_weight; }
74 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
75 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
76 inline CapacityProviderStrategyItem& WithWeight(int value) { SetWeight(value); return *this;}
78 private:
79
80 int m_base;
81 bool m_baseHasBeenSet = false;
82
83 Aws::String m_capacityProvider;
84 bool m_capacityProviderHasBeenSet = false;
85
86 int m_weight;
87 bool m_weightHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Scheduler
92} // namespace Aws
AWS_SCHEDULER_API CapacityProviderStrategyItem(Aws::Utils::Json::JsonView jsonValue)
CapacityProviderStrategyItem & WithCapacityProvider(const Aws::String &value)
AWS_SCHEDULER_API CapacityProviderStrategyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
CapacityProviderStrategyItem & WithCapacityProvider(Aws::String &&value)
CapacityProviderStrategyItem & WithCapacityProvider(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue