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/events/CloudWatchEvents_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 CloudWatchEvents
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_CLOUDWATCHEVENTS_API CapacityProviderStrategyItem();
37 AWS_CLOUDWATCHEVENTS_API CapacityProviderStrategyItem(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVENTS_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 inline void SetCapacityProvider(const Aws::String& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = value; }
49 inline void SetCapacityProvider(Aws::String&& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = std::move(value); }
50 inline void SetCapacityProvider(const char* value) { m_capacityProviderHasBeenSet = true; m_capacityProvider.assign(value); }
52 inline CapacityProviderStrategyItem& WithCapacityProvider(Aws::String&& value) { SetCapacityProvider(std::move(value)); return *this;}
53 inline CapacityProviderStrategyItem& WithCapacityProvider(const char* value) { SetCapacityProvider(value); return *this;}
55
57
62 inline int GetWeight() const{ return m_weight; }
63 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
64 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
65 inline CapacityProviderStrategyItem& WithWeight(int value) { SetWeight(value); return *this;}
67
69
75 inline int GetBase() const{ return m_base; }
76 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
77 inline void SetBase(int value) { m_baseHasBeenSet = true; m_base = value; }
78 inline CapacityProviderStrategyItem& WithBase(int value) { SetBase(value); return *this;}
80 private:
81
82 Aws::String m_capacityProvider;
83 bool m_capacityProviderHasBeenSet = false;
84
85 int m_weight;
86 bool m_weightHasBeenSet = false;
87
88 int m_base;
89 bool m_baseHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CloudWatchEvents
94} // namespace Aws
AWS_CLOUDWATCHEVENTS_API CapacityProviderStrategyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
CapacityProviderStrategyItem & WithCapacityProvider(const Aws::String &value)
CapacityProviderStrategyItem & WithCapacityProvider(const char *value)
AWS_CLOUDWATCHEVENTS_API CapacityProviderStrategyItem(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
CapacityProviderStrategyItem & WithCapacityProvider(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue