/** * 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 CreateVariableRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API CreateVariableRequest(); // 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 "CreateVariable"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 CreateVariableRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the variable.

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

The name of the variable.

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

The data type of the variable.

*/ inline const DataType& 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 DataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; } /** *

The data type of the variable.

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

The data type of the variable.

*/ inline CreateVariableRequest& WithDataType(const DataType& value) { SetDataType(value); return *this;} /** *

The data type of the variable.

*/ inline CreateVariableRequest& WithDataType(DataType&& value) { SetDataType(std::move(value)); return *this;} /** *

The source of the data.

*/ inline const DataSource& GetDataSource() const{ return m_dataSource; } /** *

The source of the data.

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

The source of the data.

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

The source of the data.

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

The source of the data.

*/ inline CreateVariableRequest& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;} /** *

The source of the data.

*/ inline CreateVariableRequest& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;} /** *

The default value for the variable when no value is received.

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

The default value for the variable when no value is received.

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

The default value for the variable when no value is received.

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

The default value for the variable when no value is received.

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

The default value for the variable when no value is received.

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

The default value for the variable when no value is received.

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

The default value for the variable when no value is received.

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

The default value for the variable when no value is received.

*/ inline CreateVariableRequest& WithDefaultValue(const char* value) { SetDefaultValue(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 CreateVariableRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description.

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

The description.

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

The variable type. 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 variable type. 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 variable type. 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 variable type. 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 variable type. 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 variable type. 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 CreateVariableRequest& WithVariableType(const Aws::String& value) { SetVariableType(value); return *this;} /** *

The variable type. 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 CreateVariableRequest& WithVariableType(Aws::String&& value) { SetVariableType(std::move(value)); return *this;} /** *

The variable type. 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 CreateVariableRequest& WithVariableType(const char* value) { SetVariableType(value); return *this;} /** *

A collection of key and value pairs.

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

A collection of key and value pairs.

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

A collection of key and value pairs.

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

A collection of key and value pairs.

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

A collection of key and value pairs.

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

A collection of key and value pairs.

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

A collection of key and value pairs.

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

A collection of key and value pairs.

*/ inline CreateVariableRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; DataType m_dataType; bool m_dataTypeHasBeenSet = false; DataSource 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; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws