Class CfnEventType.EventVariableProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventType.EventVariableProperty>
- Enclosing interface:
CfnEventType.EventVariableProperty
CfnEventType.EventVariableProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnEventType.EventVariableProperty.getArn()
build()
Builds the configured instance.createdTime
(String createdTime) Sets the value ofCfnEventType.EventVariableProperty.getCreatedTime()
dataSource
(String dataSource) Sets the value ofCfnEventType.EventVariableProperty.getDataSource()
Sets the value ofCfnEventType.EventVariableProperty.getDataType()
defaultValue
(String defaultValue) Sets the value ofCfnEventType.EventVariableProperty.getDefaultValue()
description
(String description) Sets the value ofCfnEventType.EventVariableProperty.getDescription()
Sets the value ofCfnEventType.EventVariableProperty.getInline()
inline
(IResolvable inline) Sets the value ofCfnEventType.EventVariableProperty.getInline()
lastUpdatedTime
(String lastUpdatedTime) Sets the value ofCfnEventType.EventVariableProperty.getLastUpdatedTime()
Sets the value ofCfnEventType.EventVariableProperty.getName()
Sets the value ofCfnEventType.EventVariableProperty.getTags()
variableType
(String variableType) Sets the value ofCfnEventType.EventVariableProperty.getVariableType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnEventType.EventVariableProperty.getArn()
- Parameters:
arn
- The event variable ARN.- Returns:
this
-
createdTime
@Stability(Stable) public CfnEventType.EventVariableProperty.Builder createdTime(String createdTime) Sets the value ofCfnEventType.EventVariableProperty.getCreatedTime()
- Parameters:
createdTime
- Timestamp for when event variable was created.- Returns:
this
-
dataSource
Sets the value ofCfnEventType.EventVariableProperty.getDataSource()
- Parameters:
dataSource
- The source of the event variable. Valid values:EVENT | EXTERNAL_MODEL_SCORE
When defining a variable within a event type, 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 ofCfnEventType.EventVariableProperty.getDataType()
- Parameters:
dataType
- The data type of the event variable. For more information, see Data types .- Returns:
this
-
defaultValue
@Stability(Stable) public CfnEventType.EventVariableProperty.Builder defaultValue(String defaultValue) Sets the value ofCfnEventType.EventVariableProperty.getDefaultValue()
- Parameters:
defaultValue
- The default value of the event variable.- Returns:
this
-
description
@Stability(Stable) public CfnEventType.EventVariableProperty.Builder description(String description) Sets the value ofCfnEventType.EventVariableProperty.getDescription()
- Parameters:
description
- The event variable description.- Returns:
this
-
inline
Sets the value ofCfnEventType.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::EventType
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 event type but not execute any changes to the variables.- Returns:
this
-
inline
Sets the value ofCfnEventType.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::EventType
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 event type but not execute any changes to the variables.- Returns:
this
-
lastUpdatedTime
@Stability(Stable) public CfnEventType.EventVariableProperty.Builder lastUpdatedTime(String lastUpdatedTime) Sets the value ofCfnEventType.EventVariableProperty.getLastUpdatedTime()
- Parameters:
lastUpdatedTime
- Timestamp for when the event variable was last updated.- Returns:
this
-
name
Sets the value ofCfnEventType.EventVariableProperty.getName()
- Parameters:
name
- The name of the event variable.- Returns:
this
-
tags
@Stability(Stable) public CfnEventType.EventVariableProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnEventType.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 CfnEventType.EventVariableProperty.Builder variableType(String variableType) Sets the value ofCfnEventType.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<CfnEventType.EventVariableProperty>
- Returns:
- a new instance of
CfnEventType.EventVariableProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-