Class CfnCampaign.ConditionBasedCollectionSchemeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotfleetwise.CfnCampaign.ConditionBasedCollectionSchemeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.ConditionBasedCollectionSchemeProperty>
- Enclosing interface:
- CfnCampaign.ConditionBasedCollectionSchemeProperty
@Stability(Stable)
public static final class CfnCampaign.ConditionBasedCollectionSchemeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.ConditionBasedCollectionSchemeProperty>
A builder for
CfnCampaign.ConditionBasedCollectionSchemeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conditionLanguageVersion(Number conditionLanguageVersion) expression(String expression) Sets the value ofCfnCampaign.ConditionBasedCollectionSchemeProperty.getExpression()minimumTriggerIntervalMs(Number minimumTriggerIntervalMs) triggerMode(String triggerMode) Sets the value ofCfnCampaign.ConditionBasedCollectionSchemeProperty.getTriggerMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
@Stability(Stable) public CfnCampaign.ConditionBasedCollectionSchemeProperty.Builder expression(String expression) Sets the value ofCfnCampaign.ConditionBasedCollectionSchemeProperty.getExpression()- Parameters:
expression- The logical expression used to recognize what data to collect. This parameter is required. For example,$variable.Vehicle.OutsideAirTemperature >= 105.0.- Returns:
this
-
conditionLanguageVersion
@Stability(Stable) public CfnCampaign.ConditionBasedCollectionSchemeProperty.Builder conditionLanguageVersion(Number conditionLanguageVersion) - Parameters:
conditionLanguageVersion- (Optional) Specifies the version of the conditional expression language.- Returns:
this
-
minimumTriggerIntervalMs
@Stability(Stable) public CfnCampaign.ConditionBasedCollectionSchemeProperty.Builder minimumTriggerIntervalMs(Number minimumTriggerIntervalMs) - Parameters:
minimumTriggerIntervalMs- (Optional) The minimum duration of time between two triggering events to collect data, in milliseconds.If a signal changes often, you might want to collect data at a slower rate.
- Returns:
this
-
triggerMode
@Stability(Stable) public CfnCampaign.ConditionBasedCollectionSchemeProperty.Builder triggerMode(String triggerMode) Sets the value ofCfnCampaign.ConditionBasedCollectionSchemeProperty.getTriggerMode()- Parameters:
triggerMode- (Optional) Whether to collect data for all triggering events (ALWAYS). Specify (RISING_EDGE), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaign.ConditionBasedCollectionSchemeProperty>- Returns:
- a new instance of
CfnCampaign.ConditionBasedCollectionSchemeProperty - Throws:
NullPointerException- if any required attribute was not provided
-