/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/frauddetector/FraudDetector_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/frauddetector/model/Language.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FraudDetector { namespace Model { /** * <p>The details of the rule.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/RuleDetail">AWS * API Reference</a></p> */ class RuleDetail { public: AWS_FRAUDDETECTOR_API RuleDetail(); AWS_FRAUDDETECTOR_API RuleDetail(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API RuleDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The rule ID.</p> */ inline const Aws::String& GetRuleId() const{ return m_ruleId; } /** * <p>The rule ID.</p> */ inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; } /** * <p>The rule ID.</p> */ inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; } /** * <p>The rule ID.</p> */ inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); } /** * <p>The rule ID.</p> */ inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); } /** * <p>The rule ID.</p> */ inline RuleDetail& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;} /** * <p>The rule ID.</p> */ inline RuleDetail& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;} /** * <p>The rule ID.</p> */ inline RuleDetail& WithRuleId(const char* value) { SetRuleId(value); return *this;} /** * <p>The rule description.</p> */ inline const Aws::String& GetDescription() const{ return m_description; } /** * <p>The rule description.</p> */ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** * <p>The rule description.</p> */ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** * <p>The rule description.</p> */ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** * <p>The rule description.</p> */ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** * <p>The rule description.</p> */ inline RuleDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** * <p>The rule description.</p> */ inline RuleDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** * <p>The rule description.</p> */ inline RuleDetail& WithDescription(const char* value) { SetDescription(value); return *this;} /** * <p>The detector for which the rule is associated.</p> */ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } /** * <p>The detector for which the rule is associated.</p> */ inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } /** * <p>The detector for which the rule is associated.</p> */ inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; } /** * <p>The detector for which the rule is associated.</p> */ inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); } /** * <p>The detector for which the rule is associated.</p> */ inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); } /** * <p>The detector for which the rule is associated.</p> */ inline RuleDetail& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;} /** * <p>The detector for which the rule is associated.</p> */ inline RuleDetail& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;} /** * <p>The detector for which the rule is associated.</p> */ inline RuleDetail& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} /** * <p>The rule version.</p> */ inline const Aws::String& GetRuleVersion() const{ return m_ruleVersion; } /** * <p>The rule version.</p> */ inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; } /** * <p>The rule version.</p> */ inline void SetRuleVersion(const Aws::String& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = value; } /** * <p>The rule version.</p> */ inline void SetRuleVersion(Aws::String&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::move(value); } /** * <p>The rule version.</p> */ inline void SetRuleVersion(const char* value) { m_ruleVersionHasBeenSet = true; m_ruleVersion.assign(value); } /** * <p>The rule version.</p> */ inline RuleDetail& WithRuleVersion(const Aws::String& value) { SetRuleVersion(value); return *this;} /** * <p>The rule version.</p> */ inline RuleDetail& WithRuleVersion(Aws::String&& value) { SetRuleVersion(std::move(value)); return *this;} /** * <p>The rule version.</p> */ inline RuleDetail& WithRuleVersion(const char* value) { SetRuleVersion(value); return *this;} /** * <p>The rule expression.</p> */ inline const Aws::String& GetExpression() const{ return m_expression; } /** * <p>The rule expression.</p> */ inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } /** * <p>The rule expression.</p> */ inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } /** * <p>The rule expression.</p> */ inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } /** * <p>The rule expression.</p> */ inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } /** * <p>The rule expression.</p> */ inline RuleDetail& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} /** * <p>The rule expression.</p> */ inline RuleDetail& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} /** * <p>The rule expression.</p> */ inline RuleDetail& WithExpression(const char* value) { SetExpression(value); return *this;} /** * <p>The rule language.</p> */ inline const Language& GetLanguage() const{ return m_language; } /** * <p>The rule language.</p> */ inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; } /** * <p>The rule language.</p> */ inline void SetLanguage(const Language& value) { m_languageHasBeenSet = true; m_language = value; } /** * <p>The rule language.</p> */ inline void SetLanguage(Language&& value) { m_languageHasBeenSet = true; m_language = std::move(value); } /** * <p>The rule language.</p> */ inline RuleDetail& WithLanguage(const Language& value) { SetLanguage(value); return *this;} /** * <p>The rule language.</p> */ inline RuleDetail& WithLanguage(Language&& value) { SetLanguage(std::move(value)); return *this;} /** * <p>The rule outcomes.</p> */ inline const Aws::Vector<Aws::String>& GetOutcomes() const{ return m_outcomes; } /** * <p>The rule outcomes.</p> */ inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; } /** * <p>The rule outcomes.</p> */ inline void SetOutcomes(const Aws::Vector<Aws::String>& value) { m_outcomesHasBeenSet = true; m_outcomes = value; } /** * <p>The rule outcomes.</p> */ inline void SetOutcomes(Aws::Vector<Aws::String>&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); } /** * <p>The rule outcomes.</p> */ inline RuleDetail& WithOutcomes(const Aws::Vector<Aws::String>& value) { SetOutcomes(value); return *this;} /** * <p>The rule outcomes.</p> */ inline RuleDetail& WithOutcomes(Aws::Vector<Aws::String>&& value) { SetOutcomes(std::move(value)); return *this;} /** * <p>The rule outcomes.</p> */ inline RuleDetail& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; } /** * <p>The rule outcomes.</p> */ inline RuleDetail& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; } /** * <p>The rule outcomes.</p> */ inline RuleDetail& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; } /** * <p>Timestamp of the last time the rule was updated.</p> */ inline const Aws::String& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** * <p>Timestamp of the last time the rule was updated.</p> */ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** * <p>Timestamp of the last time the rule was updated.</p> */ inline void SetLastUpdatedTime(const Aws::String& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** * <p>Timestamp of the last time the rule was updated.</p> */ inline void SetLastUpdatedTime(Aws::String&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** * <p>Timestamp of the last time the rule was updated.</p> */ inline void SetLastUpdatedTime(const char* value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime.assign(value); } /** * <p>Timestamp of the last time the rule was updated.</p> */ inline RuleDetail& WithLastUpdatedTime(const Aws::String& value) { SetLastUpdatedTime(value); return *this;} /** * <p>Timestamp of the last time the rule was updated.</p> */ inline RuleDetail& WithLastUpdatedTime(Aws::String&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** * <p>Timestamp of the last time the rule was updated.</p> */ inline RuleDetail& WithLastUpdatedTime(const char* value) { SetLastUpdatedTime(value); return *this;} /** * <p>The timestamp of when the rule was created.</p> */ inline const Aws::String& GetCreatedTime() const{ return m_createdTime; } /** * <p>The timestamp of when the rule was created.</p> */ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** * <p>The timestamp of when the rule was created.</p> */ inline void SetCreatedTime(const Aws::String& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** * <p>The timestamp of when the rule was created.</p> */ inline void SetCreatedTime(Aws::String&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** * <p>The timestamp of when the rule was created.</p> */ inline void SetCreatedTime(const char* value) { m_createdTimeHasBeenSet = true; m_createdTime.assign(value); } /** * <p>The timestamp of when the rule was created.</p> */ inline RuleDetail& WithCreatedTime(const Aws::String& value) { SetCreatedTime(value); return *this;} /** * <p>The timestamp of when the rule was created.</p> */ inline RuleDetail& WithCreatedTime(Aws::String&& value) { SetCreatedTime(std::move(value)); return *this;} /** * <p>The timestamp of when the rule was created.</p> */ inline RuleDetail& WithCreatedTime(const char* value) { SetCreatedTime(value); return *this;} /** * <p>The rule ARN.</p> */ inline const Aws::String& GetArn() const{ return m_arn; } /** * <p>The rule ARN.</p> */ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** * <p>The rule ARN.</p> */ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** * <p>The rule ARN.</p> */ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** * <p>The rule ARN.</p> */ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** * <p>The rule ARN.</p> */ inline RuleDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** * <p>The rule ARN.</p> */ inline RuleDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** * <p>The rule ARN.</p> */ inline RuleDetail& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_ruleId; bool m_ruleIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; Aws::String m_ruleVersion; bool m_ruleVersionHasBeenSet = false; Aws::String m_expression; bool m_expressionHasBeenSet = false; Language m_language; bool m_languageHasBeenSet = false; Aws::Vector<Aws::String> m_outcomes; bool m_outcomesHasBeenSet = false; Aws::String m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::String m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws