@Stability(value=Stable) public static final class CfnVariableProps.Builder extends Object implements software.amazon.jsii.Builder<CfnVariableProps>
CfnVariableProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnVariableProps |
build()
Builds the configured instance.
|
CfnVariableProps.Builder |
dataSource(String dataSource)
Sets the value of
CfnVariableProps.getDataSource() |
CfnVariableProps.Builder |
dataType(String dataType)
Sets the value of
CfnVariableProps.getDataType() |
CfnVariableProps.Builder |
defaultValue(String defaultValue)
Sets the value of
CfnVariableProps.getDefaultValue() |
CfnVariableProps.Builder |
description(String description)
Sets the value of
CfnVariableProps.getDescription() |
CfnVariableProps.Builder |
name(String name)
Sets the value of
CfnVariableProps.getName() |
CfnVariableProps.Builder |
tags(List<? extends CfnTag> tags)
Sets the value of
CfnVariableProps.getTags() |
CfnVariableProps.Builder |
variableType(String variableType)
Sets the value of
CfnVariableProps.getVariableType() |
@Stability(value=Stable) public CfnVariableProps.Builder dataSource(String dataSource)
CfnVariableProps.getDataSource()dataSource - The data source of the variable. This parameter is required.
Valid values: EVENT | EXTERNAL_MODEL_SCORE
When defining a variable within a detector, you can only use the EVENT value for DataSource when the Inline property is set to true. If the Inline property is set false, you can use either EVENT or MODEL_SCORE for DataSource.
this@Stability(value=Stable) public CfnVariableProps.Builder dataType(String dataType)
CfnVariableProps.getDataType()dataType - The data type of the variable. This parameter is required.
Valid data types: STRING | INTEGER | BOOLEAN | FLOATthis@Stability(value=Stable) public CfnVariableProps.Builder defaultValue(String defaultValue)
CfnVariableProps.getDefaultValue()defaultValue - The default value of the variable. This parameter is required.this@Stability(value=Stable) public CfnVariableProps.Builder name(String name)
CfnVariableProps.getName()name - The name of the variable. This parameter is required.
Pattern: ^[0-9a-z_-]+$this@Stability(value=Stable) public CfnVariableProps.Builder description(String description)
CfnVariableProps.getDescription()description - The description of the variable.this@Stability(value=Stable) public CfnVariableProps.Builder tags(List<? extends CfnTag> tags)
CfnVariableProps.getTags()tags - An array of key-value pairs to apply to this resource.
For more information, see Tag .this@Stability(value=Stable) public CfnVariableProps.Builder variableType(String variableType)
CfnVariableProps.getVariableType()variableType - The type of the variable. For more information see [Variable types](https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#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 | USERAGENTthis@Stability(value=Stable) public CfnVariableProps build()
build in interface software.amazon.jsii.Builder<CfnVariableProps>CfnVariablePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.