AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CapacityProviderStrategyItem.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_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 EventBridge
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_EVENTBRIDGE_API CapacityProviderStrategyItem() = default;
39 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCapacityProvider() const { return m_capacityProvider; }
47 inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; }
48 template<typename CapacityProviderT = Aws::String>
49 void SetCapacityProvider(CapacityProviderT&& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = std::forward<CapacityProviderT>(value); }
50 template<typename CapacityProviderT = Aws::String>
51 CapacityProviderStrategyItem& WithCapacityProvider(CapacityProviderT&& value) { SetCapacityProvider(std::forward<CapacityProviderT>(value)); return *this;}
53
55
60 inline int GetWeight() const { return m_weight; }
61 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
62 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
63 inline CapacityProviderStrategyItem& WithWeight(int value) { SetWeight(value); return *this;}
65
67
73 inline int GetBase() const { return m_base; }
74 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
75 inline void SetBase(int value) { m_baseHasBeenSet = true; m_base = value; }
76 inline CapacityProviderStrategyItem& WithBase(int value) { SetBase(value); return *this;}
78 private:
79
80 Aws::String m_capacityProvider;
81 bool m_capacityProviderHasBeenSet = false;
82
83 int m_weight{0};
84 bool m_weightHasBeenSet = false;
85
86 int m_base{0};
87 bool m_baseHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EventBridge
92} // namespace Aws
AWS_EVENTBRIDGE_API CapacityProviderStrategyItem()=default
AWS_EVENTBRIDGE_API CapacityProviderStrategyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API CapacityProviderStrategyItem(Aws::Utils::Json::JsonView jsonValue)
CapacityProviderStrategyItem & WithCapacityProvider(CapacityProviderT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue