7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9#include <aws/elasticmapreduce/model/ScalingAction.h>
10#include <aws/elasticmapreduce/model/ScalingTrigger.h>
47 template <
typename NameT = Aws::String>
49 m_nameHasBeenSet =
true;
50 m_name = std::forward<NameT>(value);
52 template <
typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
65 template <
typename DescriptionT = Aws::String>
67 m_descriptionHasBeenSet =
true;
68 m_description = std::forward<DescriptionT>(value);
70 template <
typename DescriptionT = Aws::String>
83 template <
typename ActionT = ScalingAction>
85 m_actionHasBeenSet =
true;
86 m_action = std::forward<ActionT>(value);
88 template <
typename ActionT = ScalingAction>
102 template <
typename TriggerT = ScalingTrigger>
104 m_triggerHasBeenSet =
true;
105 m_trigger = std::forward<TriggerT>(value);
107 template <
typename TriggerT = ScalingTrigger>
121 bool m_nameHasBeenSet =
false;
122 bool m_descriptionHasBeenSet =
false;
123 bool m_actionHasBeenSet =
false;
124 bool m_triggerHasBeenSet =
false;
bool NameHasBeenSet() const
const ScalingTrigger & GetTrigger() const
AWS_EMR_API ScalingRule()=default
void SetName(NameT &&value)
AWS_EMR_API ScalingRule(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
AWS_EMR_API ScalingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
ScalingRule & WithAction(ActionT &&value)
ScalingRule & WithTrigger(TriggerT &&value)
void SetTrigger(TriggerT &&value)
void SetDescription(DescriptionT &&value)
bool DescriptionHasBeenSet() const
bool ActionHasBeenSet() const
void SetAction(ActionT &&value)
const Aws::String & GetDescription() const
bool TriggerHasBeenSet() const
ScalingRule & WithDescription(DescriptionT &&value)
ScalingRule & WithName(NameT &&value)
const ScalingAction & GetAction() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue