AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingRule.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/ScalingAction.h>
10#include <aws/elasticmapreduce/model/ScalingTrigger.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_EMR_API ScalingRule();
44
45
47
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline ScalingRule& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline ScalingRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline ScalingRule& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::String& GetDescription() const{ return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
68 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
69 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
70 inline ScalingRule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
71 inline ScalingRule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
72 inline ScalingRule& WithDescription(const char* value) { SetDescription(value); return *this;}
74
76
79 inline const ScalingAction& GetAction() const{ return m_action; }
80 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
81 inline void SetAction(const ScalingAction& value) { m_actionHasBeenSet = true; m_action = value; }
82 inline void SetAction(ScalingAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
83 inline ScalingRule& WithAction(const ScalingAction& value) { SetAction(value); return *this;}
84 inline ScalingRule& WithAction(ScalingAction&& value) { SetAction(std::move(value)); return *this;}
86
88
92 inline const ScalingTrigger& GetTrigger() const{ return m_trigger; }
93 inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; }
94 inline void SetTrigger(const ScalingTrigger& value) { m_triggerHasBeenSet = true; m_trigger = value; }
95 inline void SetTrigger(ScalingTrigger&& value) { m_triggerHasBeenSet = true; m_trigger = std::move(value); }
96 inline ScalingRule& WithTrigger(const ScalingTrigger& value) { SetTrigger(value); return *this;}
97 inline ScalingRule& WithTrigger(ScalingTrigger&& value) { SetTrigger(std::move(value)); return *this;}
99 private:
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
104 Aws::String m_description;
105 bool m_descriptionHasBeenSet = false;
106
107 ScalingAction m_action;
108 bool m_actionHasBeenSet = false;
109
110 ScalingTrigger m_trigger;
111 bool m_triggerHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EMR
116} // namespace Aws
void SetName(Aws::String &&value)
Definition ScalingRule.h:54
const ScalingTrigger & GetTrigger() const
Definition ScalingRule.h:92
ScalingRule & WithTrigger(ScalingTrigger &&value)
Definition ScalingRule.h:97
void SetDescription(const Aws::String &value)
Definition ScalingRule.h:67
ScalingRule & WithName(const char *value)
Definition ScalingRule.h:58
void SetName(const Aws::String &value)
Definition ScalingRule.h:53
void SetDescription(Aws::String &&value)
Definition ScalingRule.h:68
ScalingRule & WithName(Aws::String &&value)
Definition ScalingRule.h:57
AWS_EMR_API ScalingRule(Aws::Utils::Json::JsonView jsonValue)
ScalingRule & WithAction(const ScalingAction &value)
Definition ScalingRule.h:83
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
ScalingRule & WithTrigger(const ScalingTrigger &value)
Definition ScalingRule.h:96
const Aws::String & GetName() const
Definition ScalingRule.h:51
AWS_EMR_API ScalingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(const char *value)
Definition ScalingRule.h:69
void SetTrigger(const ScalingTrigger &value)
Definition ScalingRule.h:94
ScalingRule & WithDescription(const Aws::String &value)
Definition ScalingRule.h:70
void SetAction(const ScalingAction &value)
Definition ScalingRule.h:81
ScalingRule & WithName(const Aws::String &value)
Definition ScalingRule.h:56
bool DescriptionHasBeenSet() const
Definition ScalingRule.h:66
ScalingRule & WithDescription(const char *value)
Definition ScalingRule.h:72
void SetTrigger(ScalingTrigger &&value)
Definition ScalingRule.h:95
const Aws::String & GetDescription() const
Definition ScalingRule.h:65
void SetName(const char *value)
Definition ScalingRule.h:55
void SetAction(ScalingAction &&value)
Definition ScalingRule.h:82
ScalingRule & WithAction(ScalingAction &&value)
Definition ScalingRule.h:84
ScalingRule & WithDescription(Aws::String &&value)
Definition ScalingRule.h:71
const ScalingAction & GetAction() const
Definition ScalingRule.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue