Class CfnCalculatedAttributeDefinition.RangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition.RangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCalculatedAttributeDefinition.RangeProperty>
- Enclosing interface:
CfnCalculatedAttributeDefinition.RangeProperty
@Stability(Stable)
public static final class CfnCalculatedAttributeDefinition.RangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCalculatedAttributeDefinition.RangeProperty>
A builder for
CfnCalculatedAttributeDefinition.RangeProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.timestampFormat
(String timestampFormat) Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getTimestampFormat()
timestampSource
(String timestampSource) Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getTimestampSource()
Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getUnit()
Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getValue()
valueRange
(IResolvable valueRange) Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getValueRange()
Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getValueRange()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
unit
Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getUnit()
- Parameters:
unit
- The unit of time. This parameter is required.- Returns:
this
-
timestampFormat
@Stability(Stable) public CfnCalculatedAttributeDefinition.RangeProperty.Builder timestampFormat(String timestampFormat) Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getTimestampFormat()
- Parameters:
timestampFormat
- The format the timestamp field in your JSON object is specified. This value should be one of EPOCHMILLI or ISO_8601. E.g. if your object type is MyType and source JSON is {"generatedAt": {"timestamp": "2001-07-04T12:08:56.235Z"}}, then TimestampFormat should be "ISO_8601".- Returns:
this
-
timestampSource
@Stability(Stable) public CfnCalculatedAttributeDefinition.RangeProperty.Builder timestampSource(String timestampSource) Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getTimestampSource()
- Parameters:
timestampSource
- An expression specifying the field in your JSON object from which the date should be parsed. The expression should follow the structure of "{ObjectTypeName.}". E.g. if your object type is MyType and source JSON is {"generatedAt": {"timestamp": "1737587945945"}}, then TimestampSource should be "{MyType.generatedAt.timestamp}". - Returns:
this
-
value
@Stability(Stable) public CfnCalculatedAttributeDefinition.RangeProperty.Builder value(Number value) Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getValue()
- Parameters:
value
- The amount of time of the specified unit.- Returns:
this
-
valueRange
@Stability(Stable) public CfnCalculatedAttributeDefinition.RangeProperty.Builder valueRange(IResolvable valueRange) Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getValueRange()
- Parameters:
valueRange
- A structure specifying the endpoints of the relative time period over which data is included in the aggregation.- Returns:
this
-
valueRange
@Stability(Stable) public CfnCalculatedAttributeDefinition.RangeProperty.Builder valueRange(CfnCalculatedAttributeDefinition.ValueRangeProperty valueRange) Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getValueRange()
- Parameters:
valueRange
- A structure specifying the endpoints of the relative time period over which data is included in the aggregation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCalculatedAttributeDefinition.RangeProperty>
- Returns:
- a new instance of
CfnCalculatedAttributeDefinition.RangeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-