Class CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.customerprofiles.CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty>
- Enclosing interface:
CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty
@Stability(Stable)
public static final class CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty>
A builder for
CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.timestampFormat(String timestampFormat) timestampSource(String timestampSource) Sets the value ofCfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.getUnit()Sets the value ofCfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.getValue()Sets the value ofCfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.getValueRange()valueRange(IResolvable valueRange) Sets the value ofCfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.getValueRange()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
timestampFormat
@Stability(Stable) public CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.Builder timestampFormat(String timestampFormat) - 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 CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.Builder timestampSource(String timestampSource) - 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
-
unit
@Stability(Stable) public CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.Builder unit(String unit) Sets the value ofCfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.getUnit()- Parameters:
unit- The unit of time.- Returns:
this
-
value
@Stability(Stable) public CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.Builder value(Number value) Sets the value ofCfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.getValue()- Parameters:
value- The amount of time of the specified unit.- Returns:
this
-
valueRange
@Stability(Stable) public CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.Builder valueRange(IResolvable valueRange) Sets the value ofCfnCalculatedAttributeDefinitionPropsMixin.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 CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty.Builder valueRange(CfnCalculatedAttributeDefinitionPropsMixin.ValueRangeProperty valueRange) Sets the value ofCfnCalculatedAttributeDefinitionPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty>- Returns:
- a new instance of
CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty - Throws:
NullPointerException- if any required attribute was not provided
-