AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
CapacityProviderStrategyItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridge_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EventBridge {
20namespace Model {
21
30 public:
31 AWS_EVENTBRIDGE_API CapacityProviderStrategyItem() = default;
34 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCapacityProvider() const { return m_capacityProvider; }
41 inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; }
42 template <typename CapacityProviderT = Aws::String>
43 void SetCapacityProvider(CapacityProviderT&& value) {
44 m_capacityProviderHasBeenSet = true;
45 m_capacityProvider = std::forward<CapacityProviderT>(value);
46 }
47 template <typename CapacityProviderT = Aws::String>
49 SetCapacityProvider(std::forward<CapacityProviderT>(value));
50 return *this;
51 }
53
55
60 inline int GetWeight() const { return m_weight; }
61 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
62 inline void SetWeight(int value) {
63 m_weightHasBeenSet = true;
64 m_weight = value;
65 }
67 SetWeight(value);
68 return *this;
69 }
71
73
79 inline int GetBase() const { return m_base; }
80 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
81 inline void SetBase(int value) {
82 m_baseHasBeenSet = true;
83 m_base = value;
84 }
86 SetBase(value);
87 return *this;
88 }
90 private:
91 Aws::String m_capacityProvider;
92
93 int m_weight{0};
94
95 int m_base{0};
96 bool m_capacityProviderHasBeenSet = false;
97 bool m_weightHasBeenSet = false;
98 bool m_baseHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EventBridge
103} // 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