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

A variable in the list of variables for the batch create variable * request.

See Also:

AWS * API Reference

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

The name of the variable.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the variable.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the variable.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the variable.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the variable.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the variable.

*/ inline VariableEntry& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the variable.

*/ inline VariableEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the variable.

*/ inline VariableEntry& WithName(const char* value) { SetName(value); return *this;} /** *

The data type of the variable.

*/ inline const Aws::String& GetDataType() const{ return m_dataType; } /** *

The data type of the variable.

*/ inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; } /** *

The data type of the variable.

*/ inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; } /** *

The data type of the variable.

*/ inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); } /** *

The data type of the variable.

*/ inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); } /** *

The data type of the variable.

*/ inline VariableEntry& WithDataType(const Aws::String& value) { SetDataType(value); return *this;} /** *

The data type of the variable.

*/ inline VariableEntry& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;} /** *

The data type of the variable.

*/ inline VariableEntry& WithDataType(const char* value) { SetDataType(value); return *this;} /** *

The data source of the variable.

*/ inline const Aws::String& GetDataSource() const{ return m_dataSource; } /** *

The data source of the variable.

*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *

The data source of the variable.

*/ inline void SetDataSource(const Aws::String& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *

The data source of the variable.

*/ inline void SetDataSource(Aws::String&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *

The data source of the variable.

*/ inline void SetDataSource(const char* value) { m_dataSourceHasBeenSet = true; m_dataSource.assign(value); } /** *

The data source of the variable.

*/ inline VariableEntry& WithDataSource(const Aws::String& value) { SetDataSource(value); return *this;} /** *

The data source of the variable.

*/ inline VariableEntry& WithDataSource(Aws::String&& value) { SetDataSource(std::move(value)); return *this;} /** *

The data source of the variable.

*/ inline VariableEntry& WithDataSource(const char* value) { SetDataSource(value); return *this;} /** *

The default value of the variable.

*/ inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; } /** *

The default value of the variable.

*/ inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } /** *

The default value of the variable.

*/ inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } /** *

The default value of the variable.

*/ inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } /** *

The default value of the variable.

*/ inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); } /** *

The default value of the variable.

*/ inline VariableEntry& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;} /** *

The default value of the variable.

*/ inline VariableEntry& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;} /** *

The default value of the variable.

*/ inline VariableEntry& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} /** *

The description of the variable.

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

The description of the variable.

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

The description of the variable.

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

The description of the variable.

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

The description of the variable.

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

The description of the variable.

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

The description of the variable.

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

The description of the variable.

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

The type of the variable. For more information see Variable * types.

Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | * BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | * BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | * CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | * IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | * PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | * SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | * SHIPPING_ZIP | USERAGENT

*/ inline const Aws::String& GetVariableType() const{ return m_variableType; } /** *

The type of the variable. For more information see Variable * types.

Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | * BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | * BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | * CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | * IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | * PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | * SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | * SHIPPING_ZIP | USERAGENT

*/ inline bool VariableTypeHasBeenSet() const { return m_variableTypeHasBeenSet; } /** *

The type of the variable. For more information see Variable * types.

Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | * BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | * BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | * CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | * IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | * PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | * SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | * SHIPPING_ZIP | USERAGENT

*/ inline void SetVariableType(const Aws::String& value) { m_variableTypeHasBeenSet = true; m_variableType = value; } /** *

The type of the variable. For more information see Variable * types.

Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | * BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | * BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | * CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | * IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | * PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | * SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | * SHIPPING_ZIP | USERAGENT

*/ inline void SetVariableType(Aws::String&& value) { m_variableTypeHasBeenSet = true; m_variableType = std::move(value); } /** *

The type of the variable. For more information see Variable * types.

Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | * BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | * BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | * CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | * IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | * PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | * SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | * SHIPPING_ZIP | USERAGENT

*/ inline void SetVariableType(const char* value) { m_variableTypeHasBeenSet = true; m_variableType.assign(value); } /** *

The type of the variable. For more information see Variable * types.

Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | * BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | * BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | * CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | * IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | * PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | * SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | * SHIPPING_ZIP | USERAGENT

*/ inline VariableEntry& WithVariableType(const Aws::String& value) { SetVariableType(value); return *this;} /** *

The type of the variable. For more information see Variable * types.

Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | * BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | * BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | * CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | * IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | * PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | * SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | * SHIPPING_ZIP | USERAGENT

*/ inline VariableEntry& WithVariableType(Aws::String&& value) { SetVariableType(std::move(value)); return *this;} /** *

The type of the variable. For more information see Variable * types.

Valid Values: AUTH_CODE | AVS | BILLING_ADDRESS_L1 | * BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | * BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | * CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | * IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | * PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | * SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | * SHIPPING_ZIP | USERAGENT

*/ inline VariableEntry& WithVariableType(const char* value) { SetVariableType(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_dataType; bool m_dataTypeHasBeenSet = false; Aws::String m_dataSource; bool m_dataSourceHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_variableType; bool m_variableTypeHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws