Class CfnVariableProps.Builder
java.lang.Object
software.amazon.awscdk.services.frauddetector.CfnVariableProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVariableProps>
- Enclosing interface:
- CfnVariableProps
@Stability(Stable)
public static final class CfnVariableProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVariableProps>
A builder for
CfnVariableProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataSource(String dataSource) Sets the value ofCfnVariableProps.getDataSource()Sets the value ofCfnVariableProps.getDataType()defaultValue(String defaultValue) Sets the value ofCfnVariableProps.getDefaultValue()description(String description) Sets the value ofCfnVariableProps.getDescription()Sets the value ofCfnVariableProps.getName()Sets the value ofCfnVariableProps.getTags()variableType(String variableType) Sets the value ofCfnVariableProps.getVariableType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSource
Sets the value ofCfnVariableProps.getDataSource()- Parameters:
dataSource- The data source of the variable. This parameter is required. Valid values:EVENT | EXTERNAL_MODEL_SCOREWhen defining a variable within a detector, you can only use the
EVENTvalue for DataSource when the Inline property is set to true. If the Inline property is set false, you can use eitherEVENTorMODEL_SCOREfor DataSource.- Returns:
this
-
dataType
Sets the value ofCfnVariableProps.getDataType()- Parameters:
dataType- The data type of the variable. This parameter is required. Valid data types:STRING | INTEGER | BOOLEAN | FLOAT- Returns:
this
-
defaultValue
Sets the value ofCfnVariableProps.getDefaultValue()- Parameters:
defaultValue- The default value of the variable. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnVariableProps.getName()- Parameters:
name- The name of the variable. This parameter is required. Pattern:^[0-9a-z_-]+$- Returns:
this
-
description
Sets the value ofCfnVariableProps.getDescription()- Parameters:
description- The description of the variable.- Returns:
this
-
tags
Sets the value ofCfnVariableProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
variableType
Sets the value ofCfnVariableProps.getVariableType()- Parameters:
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- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVariableProps>- Returns:
- a new instance of
CfnVariableProps - Throws:
NullPointerException- if any required attribute was not provided
-