Class CfnCalculatedAttributeDefinition.ConditionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition.ConditionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCalculatedAttributeDefinition.ConditionsProperty>
- Enclosing interface:
- CfnCalculatedAttributeDefinition.ConditionsProperty
@Stability(Stable)
public static final class CfnCalculatedAttributeDefinition.ConditionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCalculatedAttributeDefinition.ConditionsProperty>
A builder for
CfnCalculatedAttributeDefinition.ConditionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.objectCount
(Number objectCount) Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getObjectCount()
range
(IResolvable range) Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getRange()
Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getRange()
threshold
(IResolvable threshold) Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getThreshold()
Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
objectCount
@Stability(Stable) public CfnCalculatedAttributeDefinition.ConditionsProperty.Builder objectCount(Number objectCount) Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getObjectCount()
- Parameters:
objectCount
- The number of profile objects used for the calculated attribute.- Returns:
this
-
range
@Stability(Stable) public CfnCalculatedAttributeDefinition.ConditionsProperty.Builder range(IResolvable range) Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getRange()
- Parameters:
range
- The relative time period over which data is included in the aggregation.- Returns:
this
-
range
@Stability(Stable) public CfnCalculatedAttributeDefinition.ConditionsProperty.Builder range(CfnCalculatedAttributeDefinition.RangeProperty range) Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getRange()
- Parameters:
range
- The relative time period over which data is included in the aggregation.- Returns:
this
-
threshold
@Stability(Stable) public CfnCalculatedAttributeDefinition.ConditionsProperty.Builder threshold(IResolvable threshold) Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getThreshold()
- Parameters:
threshold
- The threshold for the calculated attribute.- Returns:
this
-
threshold
@Stability(Stable) public CfnCalculatedAttributeDefinition.ConditionsProperty.Builder threshold(CfnCalculatedAttributeDefinition.ThresholdProperty threshold) Sets the value ofCfnCalculatedAttributeDefinition.ConditionsProperty.getThreshold()
- Parameters:
threshold
- The threshold for the calculated attribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCalculatedAttributeDefinition.ConditionsProperty>
- Returns:
- a new instance of
CfnCalculatedAttributeDefinition.ConditionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-