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 (for Unix epoch timestamps with second/millisecond level precision) or ISO_8601 (following ISO_8601 format with second/millisecond level precision, with an optional offset of Z or in the format HH:MM or HHMM.). E.g. if your object type is MyType and source JSON is {"generatedAt": {"timestamp": "2001-07-04T12:08:56.235-0700"}}, 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 letting customers specify a relative time window over which over which data is included in the Calculated Attribute. Use positive numbers to indicate that the endpoint is in the past, and negative numbers to indicate it is in the future. ValueRange overrides Value.- Returns:
this
-
valueRange
@Stability(Stable) public CfnCalculatedAttributeDefinition.RangeProperty.Builder valueRange(CfnCalculatedAttributeDefinition.ValueRangeProperty valueRange) Sets the value ofCfnCalculatedAttributeDefinition.RangeProperty.getValueRange()
- Parameters:
valueRange
- A structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute. Use positive numbers to indicate that the endpoint is in the past, and negative numbers to indicate it is in the future. ValueRange overrides Value.- 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
-