/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FraudDetector { namespace Model { /** *

The label schema.

See Also:

AWS * API Reference

*/ class LabelSchema { public: AWS_FRAUDDETECTOR_API LabelSchema(); AWS_FRAUDDETECTOR_API LabelSchema(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API LabelSchema& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline const Aws::Map>& GetLabelMapper() const{ return m_labelMapper; } /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline bool LabelMapperHasBeenSet() const { return m_labelMapperHasBeenSet; } /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline void SetLabelMapper(const Aws::Map>& value) { m_labelMapperHasBeenSet = true; m_labelMapper = value; } /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline void SetLabelMapper(Aws::Map>&& value) { m_labelMapperHasBeenSet = true; m_labelMapper = std::move(value); } /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline LabelSchema& WithLabelMapper(const Aws::Map>& value) { SetLabelMapper(value); return *this;} /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline LabelSchema& WithLabelMapper(Aws::Map>&& value) { SetLabelMapper(std::move(value)); return *this;} /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline LabelSchema& AddLabelMapper(const Aws::String& key, const Aws::Vector& value) { m_labelMapperHasBeenSet = true; m_labelMapper.emplace(key, value); return *this; } /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline LabelSchema& AddLabelMapper(Aws::String&& key, const Aws::Vector& value) { m_labelMapperHasBeenSet = true; m_labelMapper.emplace(std::move(key), value); return *this; } /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline LabelSchema& AddLabelMapper(const Aws::String& key, Aws::Vector&& value) { m_labelMapperHasBeenSet = true; m_labelMapper.emplace(key, std::move(value)); return *this; } /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline LabelSchema& AddLabelMapper(Aws::String&& key, Aws::Vector&& value) { m_labelMapperHasBeenSet = true; m_labelMapper.emplace(std::move(key), std::move(value)); return *this; } /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline LabelSchema& AddLabelMapper(const char* key, Aws::Vector&& value) { m_labelMapperHasBeenSet = true; m_labelMapper.emplace(key, std::move(value)); return *this; } /** *

The label mapper maps the Amazon Fraud Detector supported model * classification labels (FRAUD, LEGIT) to the * appropriate event type labels. For example, if "FRAUD" and * "LEGIT" are Amazon Fraud Detector supported labels, this mapper * could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} * or {"FRAUD" => ["false"], "LEGIT" => ["true"]} * or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", * "safe"]}. The value part of the mapper is a list, because you may have * multiple label variants from your event type for a single Amazon Fraud Detector * label.

*/ inline LabelSchema& AddLabelMapper(const char* key, const Aws::Vector& value) { m_labelMapperHasBeenSet = true; m_labelMapper.emplace(key, value); return *this; } /** *

The action to take for unlabeled events.

  • Use * IGNORE if you want the unlabeled events to be ignored. This is * recommended when the majority of the events in the dataset are labeled.

    *
  • Use FRAUD if you want to categorize all unlabeled * events as “Fraud”. This is recommended when most of the events in your dataset * are fraudulent.

  • Use LEGIT if you want to * categorize all unlabeled events as “Legit”. This is recommended when most of the * events in your dataset are legitimate.

  • Use AUTO * if you want Amazon Fraud Detector to decide how to use the unlabeled data. This * is recommended when there is significant unlabeled events in the dataset.

    *

By default, Amazon Fraud Detector ignores the unlabeled data.

*/ inline const UnlabeledEventsTreatment& GetUnlabeledEventsTreatment() const{ return m_unlabeledEventsTreatment; } /** *

The action to take for unlabeled events.

  • Use * IGNORE if you want the unlabeled events to be ignored. This is * recommended when the majority of the events in the dataset are labeled.

    *
  • Use FRAUD if you want to categorize all unlabeled * events as “Fraud”. This is recommended when most of the events in your dataset * are fraudulent.

  • Use LEGIT if you want to * categorize all unlabeled events as “Legit”. This is recommended when most of the * events in your dataset are legitimate.

  • Use AUTO * if you want Amazon Fraud Detector to decide how to use the unlabeled data. This * is recommended when there is significant unlabeled events in the dataset.

    *

By default, Amazon Fraud Detector ignores the unlabeled data.

*/ inline bool UnlabeledEventsTreatmentHasBeenSet() const { return m_unlabeledEventsTreatmentHasBeenSet; } /** *

The action to take for unlabeled events.

  • Use * IGNORE if you want the unlabeled events to be ignored. This is * recommended when the majority of the events in the dataset are labeled.

    *
  • Use FRAUD if you want to categorize all unlabeled * events as “Fraud”. This is recommended when most of the events in your dataset * are fraudulent.

  • Use LEGIT if you want to * categorize all unlabeled events as “Legit”. This is recommended when most of the * events in your dataset are legitimate.

  • Use AUTO * if you want Amazon Fraud Detector to decide how to use the unlabeled data. This * is recommended when there is significant unlabeled events in the dataset.

    *

By default, Amazon Fraud Detector ignores the unlabeled data.

*/ inline void SetUnlabeledEventsTreatment(const UnlabeledEventsTreatment& value) { m_unlabeledEventsTreatmentHasBeenSet = true; m_unlabeledEventsTreatment = value; } /** *

The action to take for unlabeled events.

  • Use * IGNORE if you want the unlabeled events to be ignored. This is * recommended when the majority of the events in the dataset are labeled.

    *
  • Use FRAUD if you want to categorize all unlabeled * events as “Fraud”. This is recommended when most of the events in your dataset * are fraudulent.

  • Use LEGIT if you want to * categorize all unlabeled events as “Legit”. This is recommended when most of the * events in your dataset are legitimate.

  • Use AUTO * if you want Amazon Fraud Detector to decide how to use the unlabeled data. This * is recommended when there is significant unlabeled events in the dataset.

    *

By default, Amazon Fraud Detector ignores the unlabeled data.

*/ inline void SetUnlabeledEventsTreatment(UnlabeledEventsTreatment&& value) { m_unlabeledEventsTreatmentHasBeenSet = true; m_unlabeledEventsTreatment = std::move(value); } /** *

The action to take for unlabeled events.

  • Use * IGNORE if you want the unlabeled events to be ignored. This is * recommended when the majority of the events in the dataset are labeled.

    *
  • Use FRAUD if you want to categorize all unlabeled * events as “Fraud”. This is recommended when most of the events in your dataset * are fraudulent.

  • Use LEGIT if you want to * categorize all unlabeled events as “Legit”. This is recommended when most of the * events in your dataset are legitimate.

  • Use AUTO * if you want Amazon Fraud Detector to decide how to use the unlabeled data. This * is recommended when there is significant unlabeled events in the dataset.

    *

By default, Amazon Fraud Detector ignores the unlabeled data.

*/ inline LabelSchema& WithUnlabeledEventsTreatment(const UnlabeledEventsTreatment& value) { SetUnlabeledEventsTreatment(value); return *this;} /** *

The action to take for unlabeled events.

  • Use * IGNORE if you want the unlabeled events to be ignored. This is * recommended when the majority of the events in the dataset are labeled.

    *
  • Use FRAUD if you want to categorize all unlabeled * events as “Fraud”. This is recommended when most of the events in your dataset * are fraudulent.

  • Use LEGIT if you want to * categorize all unlabeled events as “Legit”. This is recommended when most of the * events in your dataset are legitimate.

  • Use AUTO * if you want Amazon Fraud Detector to decide how to use the unlabeled data. This * is recommended when there is significant unlabeled events in the dataset.

    *

By default, Amazon Fraud Detector ignores the unlabeled data.

*/ inline LabelSchema& WithUnlabeledEventsTreatment(UnlabeledEventsTreatment&& value) { SetUnlabeledEventsTreatment(std::move(value)); return *this;} private: Aws::Map> m_labelMapper; bool m_labelMapperHasBeenSet = false; UnlabeledEventsTreatment m_unlabeledEventsTreatment; bool m_unlabeledEventsTreatmentHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws