/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace FraudDetector { namespace Model { /** */ class UpdateRuleVersionRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API UpdateRuleVersionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateRuleVersion"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The rule to update.

*/ inline const Rule& GetRule() const{ return m_rule; } /** *

The rule to update.

*/ inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; } /** *

The rule to update.

*/ inline void SetRule(const Rule& value) { m_ruleHasBeenSet = true; m_rule = value; } /** *

The rule to update.

*/ inline void SetRule(Rule&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); } /** *

The rule to update.

*/ inline UpdateRuleVersionRequest& WithRule(const Rule& value) { SetRule(value); return *this;} /** *

The rule to update.

*/ inline UpdateRuleVersionRequest& WithRule(Rule&& value) { SetRule(std::move(value)); return *this;} /** *

The description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description.

*/ inline UpdateRuleVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description.

*/ inline UpdateRuleVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description.

*/ inline UpdateRuleVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The rule expression.

*/ inline const Aws::String& GetExpression() const{ return m_expression; } /** *

The rule expression.

*/ inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } /** *

The rule expression.

*/ inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } /** *

The rule expression.

*/ inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } /** *

The rule expression.

*/ inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } /** *

The rule expression.

*/ inline UpdateRuleVersionRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} /** *

The rule expression.

*/ inline UpdateRuleVersionRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} /** *

The rule expression.

*/ inline UpdateRuleVersionRequest& WithExpression(const char* value) { SetExpression(value); return *this;} /** *

The language.

*/ inline const Language& GetLanguage() const{ return m_language; } /** *

The language.

*/ inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; } /** *

The language.

*/ inline void SetLanguage(const Language& value) { m_languageHasBeenSet = true; m_language = value; } /** *

The language.

*/ inline void SetLanguage(Language&& value) { m_languageHasBeenSet = true; m_language = std::move(value); } /** *

The language.

*/ inline UpdateRuleVersionRequest& WithLanguage(const Language& value) { SetLanguage(value); return *this;} /** *

The language.

*/ inline UpdateRuleVersionRequest& WithLanguage(Language&& value) { SetLanguage(std::move(value)); return *this;} /** *

The outcomes.

*/ inline const Aws::Vector& GetOutcomes() const{ return m_outcomes; } /** *

The outcomes.

*/ inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; } /** *

The outcomes.

*/ inline void SetOutcomes(const Aws::Vector& value) { m_outcomesHasBeenSet = true; m_outcomes = value; } /** *

The outcomes.

*/ inline void SetOutcomes(Aws::Vector&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); } /** *

The outcomes.

*/ inline UpdateRuleVersionRequest& WithOutcomes(const Aws::Vector& value) { SetOutcomes(value); return *this;} /** *

The outcomes.

*/ inline UpdateRuleVersionRequest& WithOutcomes(Aws::Vector&& value) { SetOutcomes(std::move(value)); return *this;} /** *

The outcomes.

*/ inline UpdateRuleVersionRequest& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; } /** *

The outcomes.

*/ inline UpdateRuleVersionRequest& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; } /** *

The outcomes.

*/ inline UpdateRuleVersionRequest& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; } /** *

The tags to assign to the rule version.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags to assign to the rule version.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to assign to the rule version.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to assign to the rule version.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to assign to the rule version.

*/ inline UpdateRuleVersionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags to assign to the rule version.

*/ inline UpdateRuleVersionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to assign to the rule version.

*/ inline UpdateRuleVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to assign to the rule version.

*/ inline UpdateRuleVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Rule m_rule; bool m_ruleHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_expression; bool m_expressionHasBeenSet = false; Language m_language; bool m_languageHasBeenSet = false; Aws::Vector m_outcomes; bool m_outcomesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws