AWS SDK for C++  1.9.21
AWS SDK for C++
ScalingRule.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace EMR
24 {
25 namespace Model
26 {
27 
38  {
39  public:
44 
45 
50  inline const Aws::String& GetName() const{ return m_name; }
51 
56  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 
62  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 
68  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 
74  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 
80  inline ScalingRule& WithName(const Aws::String& value) { SetName(value); return *this;}
81 
86  inline ScalingRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
87 
92  inline ScalingRule& WithName(const char* value) { SetName(value); return *this;}
93 
94 
98  inline const Aws::String& GetDescription() const{ return m_description; }
99 
103  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 
108  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 
113  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
114 
118  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
119 
123  inline ScalingRule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
124 
128  inline ScalingRule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
129 
133  inline ScalingRule& WithDescription(const char* value) { SetDescription(value); return *this;}
134 
135 
139  inline const ScalingAction& GetAction() const{ return m_action; }
140 
144  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
145 
149  inline void SetAction(const ScalingAction& value) { m_actionHasBeenSet = true; m_action = value; }
150 
154  inline void SetAction(ScalingAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
155 
159  inline ScalingRule& WithAction(const ScalingAction& value) { SetAction(value); return *this;}
160 
164  inline ScalingRule& WithAction(ScalingAction&& value) { SetAction(std::move(value)); return *this;}
165 
166 
171  inline const ScalingTrigger& GetTrigger() const{ return m_trigger; }
172 
177  inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; }
178 
183  inline void SetTrigger(const ScalingTrigger& value) { m_triggerHasBeenSet = true; m_trigger = value; }
184 
189  inline void SetTrigger(ScalingTrigger&& value) { m_triggerHasBeenSet = true; m_trigger = std::move(value); }
190 
195  inline ScalingRule& WithTrigger(const ScalingTrigger& value) { SetTrigger(value); return *this;}
196 
201  inline ScalingRule& WithTrigger(ScalingTrigger&& value) { SetTrigger(std::move(value)); return *this;}
202 
203  private:
204 
205  Aws::String m_name;
206  bool m_nameHasBeenSet;
207 
208  Aws::String m_description;
209  bool m_descriptionHasBeenSet;
210 
211  ScalingAction m_action;
212  bool m_actionHasBeenSet;
213 
214  ScalingTrigger m_trigger;
215  bool m_triggerHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace EMR
220 } // namespace Aws
Aws::EMR::Model::ScalingRule
Definition: ScalingRule.h:38
Aws::EMR::Model::ScalingRule::ScalingRule
ScalingRule(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ScalingAction
Definition: ScalingAction.h:34
Aws::EMR::Model::ScalingRule::WithAction
ScalingRule & WithAction(ScalingAction &&value)
Definition: ScalingRule.h:164
Aws::EMR::Model::ScalingRule::WithDescription
ScalingRule & WithDescription(Aws::String &&value)
Definition: ScalingRule.h:128
Aws::EMR::Model::ScalingRule::SetDescription
void SetDescription(Aws::String &&value)
Definition: ScalingRule.h:113
EMR_EXPORTS.h
Aws::EMR::Model::ScalingRule::ScalingRule
ScalingRule()
Aws::EMR::Model::ScalingRule::WithDescription
ScalingRule & WithDescription(const Aws::String &value)
Definition: ScalingRule.h:123
ScalingAction.h
Aws::EMR::Model::ScalingRule::SetName
void SetName(Aws::String &&value)
Definition: ScalingRule.h:68
Aws::EMR::Model::ScalingRule::SetDescription
void SetDescription(const Aws::String &value)
Definition: ScalingRule.h:108
Aws::EMR::Model::ScalingRule::SetAction
void SetAction(ScalingAction &&value)
Definition: ScalingRule.h:154
Aws::EMR::Model::ScalingRule::TriggerHasBeenSet
bool TriggerHasBeenSet() const
Definition: ScalingRule.h:177
Aws::EMR::Model::ScalingRule::WithAction
ScalingRule & WithAction(const ScalingAction &value)
Definition: ScalingRule.h:159
Aws::EMR::Model::ScalingRule::SetName
void SetName(const char *value)
Definition: ScalingRule.h:74
Aws::EMR::Model::ScalingRule::WithDescription
ScalingRule & WithDescription(const char *value)
Definition: ScalingRule.h:133
Aws::EMR::Model::ScalingRule::SetTrigger
void SetTrigger(const ScalingTrigger &value)
Definition: ScalingRule.h:183
Aws::EMR::Model::ScalingRule::operator=
ScalingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ScalingRule::WithName
ScalingRule & WithName(const Aws::String &value)
Definition: ScalingRule.h:80
Aws::EMR::Model::ScalingRule::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ScalingRule.h:103
Aws::EMR::Model::ScalingRule::WithName
ScalingRule & WithName(Aws::String &&value)
Definition: ScalingRule.h:86
Aws::EMR::Model::ScalingRule::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ScalingRule.h:56
Aws::EMR::Model::ScalingRule::GetName
const Aws::String & GetName() const
Definition: ScalingRule.h:50
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::EMR::Model::ScalingRule::GetDescription
const Aws::String & GetDescription() const
Definition: ScalingRule.h:98
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::EMR::Model::ScalingRule::SetAction
void SetAction(const ScalingAction &value)
Definition: ScalingRule.h:149
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::ScalingRule::GetAction
const ScalingAction & GetAction() const
Definition: ScalingRule.h:139
Aws::EMR::Model::ScalingRule::SetDescription
void SetDescription(const char *value)
Definition: ScalingRule.h:118
Aws::EMR::Model::ScalingRule::SetName
void SetName(const Aws::String &value)
Definition: ScalingRule.h:62
Aws::EMR::Model::ScalingTrigger
Definition: ScalingTrigger.h:33
ScalingTrigger.h
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ScalingRule::WithName
ScalingRule & WithName(const char *value)
Definition: ScalingRule.h:92
Aws::EMR::Model::ScalingRule::GetTrigger
const ScalingTrigger & GetTrigger() const
Definition: ScalingRule.h:171
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::ScalingRule::SetTrigger
void SetTrigger(ScalingTrigger &&value)
Definition: ScalingRule.h:189
Aws::EMR::Model::ScalingRule::WithTrigger
ScalingRule & WithTrigger(const ScalingTrigger &value)
Definition: ScalingRule.h:195
Aws::EMR::Model::ScalingRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::ScalingRule::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: ScalingRule.h:144
Aws::EMR::Model::ScalingRule::WithTrigger
ScalingRule & WithTrigger(ScalingTrigger &&value)
Definition: ScalingRule.h:201
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28