Interface Range.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Range.Builder,
,Range> SdkBuilder<Range.Builder,
,Range> SdkPojo
- Enclosing class:
Range
-
Method Summary
Modifier and TypeMethodDescriptiontimestampFormat
(String timestampFormat) The format the timestamp field in your JSON object is specified.timestampSource
(String timestampSource) An expression specifying the field in your JSON object from which the date should be parsed.The unit of time.The unit of time.The amount of time of the specified unit.default Range.Builder
valueRange
(Consumer<ValueRange.Builder> valueRange) A structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute.valueRange
(ValueRange valueRange) A structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
value
The amount of time of the specified unit.
- Parameters:
value
- The amount of time of the specified unit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unit
The unit of time.
- Parameters:
unit
- The unit of time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unit
The unit of time.
- Parameters:
unit
- The unit of time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theValueRange.Builder
avoiding the need to create one manually viaValueRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalueRange(ValueRange)
.- Parameters:
valueRange
- a consumer that will call methods onValueRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.<Location of timestamp field in JSON pointer format>}\". E.g. if your object type is MyType and source JSON is {" generatedAt ": {"timestamp": "1737587945945"}}, then TimestampSource should be "{MyType.generatedAt.timestamp}".
- 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.<Location of timestamp field in JSON pointer format>}\". E.g. if your object type is MyType and source JSON is {" generatedAt ": {"timestamp": "1737587945945"}}, then TimestampSource should be "{MyType.generatedAt.timestamp}".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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".
- 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:
- Returns a reference to this object so that method calls can be chained together.
-