7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mailmanager/model/RuleAction.h>
11#include <aws/mailmanager/model/RuleCondition.h>
43 AWS_MAILMANAGER_API
Rule();
61 inline Rule&
AddActions(
RuleAction&& value) { m_actionsHasBeenSet =
true; m_actions.push_back(std::move(value));
return *
this; }
88 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
112 bool m_actionsHasBeenSet =
false;
115 bool m_conditionsHasBeenSet =
false;
118 bool m_nameHasBeenSet =
false;
121 bool m_unlessHasBeenSet =
false;
Rule & WithUnless(const Aws::Vector< RuleCondition > &value)
void SetActions(Aws::Vector< RuleAction > &&value)
const Aws::Vector< RuleCondition > & GetConditions() const
Rule & WithName(Aws::String &&value)
Rule & WithActions(const Aws::Vector< RuleAction > &value)
void SetUnless(const Aws::Vector< RuleCondition > &value)
Rule & AddActions(const RuleAction &value)
const Aws::Vector< RuleAction > & GetActions() const
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Rule & AddUnless(const RuleCondition &value)
void SetUnless(Aws::Vector< RuleCondition > &&value)
AWS_MAILMANAGER_API Rule()
const Aws::String & GetName() const
AWS_MAILMANAGER_API Rule(Aws::Utils::Json::JsonView jsonValue)
void SetActions(const Aws::Vector< RuleAction > &value)
Rule & WithName(const Aws::String &value)
Rule & AddUnless(RuleCondition &&value)
const Aws::Vector< RuleCondition > & GetUnless() const
Rule & WithActions(Aws::Vector< RuleAction > &&value)
Rule & AddActions(RuleAction &&value)
void SetName(const char *value)
bool ActionsHasBeenSet() const
AWS_MAILMANAGER_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Rule & WithUnless(Aws::Vector< RuleCondition > &&value)
Rule & WithConditions(const Aws::Vector< RuleCondition > &value)
Rule & AddConditions(RuleCondition &&value)
void SetConditions(const Aws::Vector< RuleCondition > &value)
bool NameHasBeenSet() const
Rule & AddConditions(const RuleCondition &value)
Rule & WithName(const char *value)
void SetConditions(Aws::Vector< RuleCondition > &&value)
bool ConditionsHasBeenSet() const
void SetName(const Aws::String &value)
bool UnlessHasBeenSet() const
Rule & WithConditions(Aws::Vector< RuleCondition > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue