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>
53 template<
typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
55 template<
typename NameT = Aws::String>
65 template<
typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
67 template<
typename DescriptionT = Aws::String>
77 template<
typename ActionT = ScalingAction>
78 void SetAction(ActionT&& value) { m_actionHasBeenSet =
true; m_action = std::forward<ActionT>(value); }
79 template<
typename ActionT = ScalingAction>
90 template<
typename TriggerT = ScalingTrigger>
91 void SetTrigger(TriggerT&& value) { m_triggerHasBeenSet =
true; m_trigger = std::forward<TriggerT>(value); }
92 template<
typename TriggerT = ScalingTrigger>
98 bool m_nameHasBeenSet =
false;
101 bool m_descriptionHasBeenSet =
false;
104 bool m_actionHasBeenSet =
false;
107 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