Class CfnDetectorPropsMixin.EventVariableProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorPropsMixin.EventVariableProperty>
- Enclosing interface:
CfnDetectorPropsMixin.EventVariableProperty
CfnDetectorPropsMixin.EventVariableProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDetectorPropsMixin.EventVariableProperty.getArn()build()Builds the configured instance.createdTime(String createdTime) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getCreatedTime()dataSource(String dataSource) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getDataSource()Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getDataType()defaultValue(String defaultValue) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getDefaultValue()description(String description) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getDescription()Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getInline()inline(IResolvable inline) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getInline()lastUpdatedTime(String lastUpdatedTime) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getLastUpdatedTime()Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getName()Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getTags()variableType(String variableType) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getVariableType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getArn()- Parameters:
arn- The event variable ARN.- Returns:
this
-
createdTime
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder createdTime(String createdTime) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getCreatedTime()- Parameters:
createdTime- Timestamp for when the event variable was created.- Returns:
this
-
dataSource
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder dataSource(String dataSource) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getDataSource()- Parameters:
dataSource- The data source of the event variable. 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
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder dataType(String dataType) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getDataType()- Parameters:
dataType- The data type of the event variable. Valid values:STRING | INTEGER | BOOLEAN | FLOAT- Returns:
this
-
defaultValue
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder defaultValue(String defaultValue) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getDefaultValue()- Parameters:
defaultValue- The default value of the event variable. This is required if you are providing the details of your variables instead of the ARN.- Returns:
this
-
description
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder description(String description) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getDescription()- Parameters:
description- The description of the event variable.- Returns:
this
-
inline
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder inline(Boolean inline) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getInline()- Parameters:
inline- Indicates whether the resource is defined within this CloudFormation template and impacts the create, update, and delete behavior of the stack. If the value istrue, CloudFormation will create/update/delete the resource when creating/updating/deleting the stack. If the value isfalse, CloudFormation will validate that the object exists and then use it within the resource without making changes to the object.For example, when creating
AWS::FraudDetector::Detectoryou must define at least two variables. You can setInline=truefor these variables and CloudFormation will create/update/delete the variables as part of stack operations. However, if you setInline=false, CloudFormation will associate the variables to your detector but not execute any changes to the variables.- Returns:
this
-
inline
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder inline(IResolvable inline) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getInline()- Parameters:
inline- Indicates whether the resource is defined within this CloudFormation template and impacts the create, update, and delete behavior of the stack. If the value istrue, CloudFormation will create/update/delete the resource when creating/updating/deleting the stack. If the value isfalse, CloudFormation will validate that the object exists and then use it within the resource without making changes to the object.For example, when creating
AWS::FraudDetector::Detectoryou must define at least two variables. You can setInline=truefor these variables and CloudFormation will create/update/delete the variables as part of stack operations. However, if you setInline=false, CloudFormation will associate the variables to your detector but not execute any changes to the variables.- Returns:
this
-
lastUpdatedTime
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder lastUpdatedTime(String lastUpdatedTime) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getLastUpdatedTime()- Parameters:
lastUpdatedTime- Timestamp for when the event variable was last updated.- Returns:
this
-
name
Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getName()- Parameters:
name- The name of the event variable.- Returns:
this
-
tags
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
variableType
@Stability(Stable) public CfnDetectorPropsMixin.EventVariableProperty.Builder variableType(String variableType) Sets the value ofCfnDetectorPropsMixin.EventVariableProperty.getVariableType()- Parameters:
variableType- The type of event variable. For more information, see Variable types .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDetectorPropsMixin.EventVariableProperty>- Returns:
- a new instance of
CfnDetectorPropsMixin.EventVariableProperty - Throws:
NullPointerException- if any required attribute was not provided
-