Class CfnDetector.EventVariableProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetector.EventVariableProperty>
- Enclosing interface:
CfnDetector.EventVariableProperty
CfnDetector.EventVariableProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDetector.EventVariableProperty.getArn()
build()
Builds the configured instance.createdTime
(String createdTime) Sets the value ofCfnDetector.EventVariableProperty.getCreatedTime()
dataSource
(String dataSource) Sets the value ofCfnDetector.EventVariableProperty.getDataSource()
Sets the value ofCfnDetector.EventVariableProperty.getDataType()
defaultValue
(String defaultValue) Sets the value ofCfnDetector.EventVariableProperty.getDefaultValue()
description
(String description) Sets the value ofCfnDetector.EventVariableProperty.getDescription()
Sets the value ofCfnDetector.EventVariableProperty.getInline()
inline
(IResolvable inline) Sets the value ofCfnDetector.EventVariableProperty.getInline()
lastUpdatedTime
(String lastUpdatedTime) Sets the value ofCfnDetector.EventVariableProperty.getLastUpdatedTime()
Sets the value ofCfnDetector.EventVariableProperty.getName()
Sets the value ofCfnDetector.EventVariableProperty.getTags()
variableType
(String variableType) Sets the value ofCfnDetector.EventVariableProperty.getVariableType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnDetector.EventVariableProperty.getArn()
- Parameters:
arn
- The event variable ARN.- Returns:
this
-
createdTime
Sets the value ofCfnDetector.EventVariableProperty.getCreatedTime()
- Parameters:
createdTime
- Timestamp for when the event variable was created.- Returns:
this
-
dataSource
Sets the value ofCfnDetector.EventVariableProperty.getDataSource()
- Parameters:
dataSource
- The data source of the event variable. 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 eitherEVENT
orMODEL_SCORE
for DataSource.- Returns:
this
-
dataType
Sets the value ofCfnDetector.EventVariableProperty.getDataType()
- Parameters:
dataType
- The data type of the event variable. Valid values:STRING | INTEGER | BOOLEAN | FLOAT
- Returns:
this
-
defaultValue
@Stability(Stable) public CfnDetector.EventVariableProperty.Builder defaultValue(String defaultValue) Sets the value ofCfnDetector.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
Sets the value ofCfnDetector.EventVariableProperty.getDescription()
- Parameters:
description
- The description of the event variable.- Returns:
this
-
inline
Sets the value ofCfnDetector.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::Detector
you must define at least two variables. You can setInline=true
for 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
Sets the value ofCfnDetector.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::Detector
you must define at least two variables. You can setInline=true
for 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 CfnDetector.EventVariableProperty.Builder lastUpdatedTime(String lastUpdatedTime) Sets the value ofCfnDetector.EventVariableProperty.getLastUpdatedTime()
- Parameters:
lastUpdatedTime
- Timestamp for when the event variable was last updated.- Returns:
this
-
name
Sets the value ofCfnDetector.EventVariableProperty.getName()
- Parameters:
name
- The name of the event variable.- Returns:
this
-
tags
@Stability(Stable) public CfnDetector.EventVariableProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnDetector.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 CfnDetector.EventVariableProperty.Builder variableType(String variableType) Sets the value ofCfnDetector.EventVariableProperty.getVariableType()
- Parameters:
variableType
- The type of event variable. For more information, see Variable types .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetector.EventVariableProperty>
- Returns:
- a new instance of
CfnDetector.EventVariableProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-