Interface PeriodToDateComputation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PeriodToDateComputation.Builder,
,PeriodToDateComputation> SdkBuilder<PeriodToDateComputation.Builder,
,PeriodToDateComputation> SdkPojo
- Enclosing class:
PeriodToDateComputation
-
Method Summary
Modifier and TypeMethodDescriptioncomputationId
(String computationId) The ID for a computation.The name of a computation.periodTimeGranularity
(String periodTimeGranularity) The time granularity setup of period to date computation.periodTimeGranularity
(TimeGranularity periodTimeGranularity) The time granularity setup of period to date computation.default PeriodToDateComputation.Builder
time
(Consumer<DimensionField.Builder> time) The time field that is used in a computation.time
(DimensionField time) The time field that is used in a computation.default PeriodToDateComputation.Builder
value
(Consumer<MeasureField.Builder> value) The value field that is used in a computation.value
(MeasureField value) The value field that is used in a computation.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
-
computationId
The ID for a computation.
- Parameters:
computationId
- The ID for a computation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of a computation.
- Parameters:
name
- The name of a computation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
time
The time field that is used in a computation.
- Parameters:
time
- The time field that is used in a computation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
time
The time field that is used in a computation.
This is a convenience method that creates an instance of theDimensionField.Builder
avoiding the need to create one manually viaDimensionField.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totime(DimensionField)
.- Parameters:
time
- a consumer that will call methods onDimensionField.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
value
The value field that is used in a computation.
- Parameters:
value
- The value field that is used in a computation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The value field that is used in a computation.
This is a convenience method that creates an instance of theMeasureField.Builder
avoiding the need to create one manually viaMeasureField.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalue(MeasureField)
.- Parameters:
value
- a consumer that will call methods onMeasureField.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
periodTimeGranularity
The time granularity setup of period to date computation. Choose from the following options:
-
YEAR: Year to date.
-
MONTH: Month to date.
- Parameters:
periodTimeGranularity
- The time granularity setup of period to date computation. Choose from the following options:-
YEAR: Year to date.
-
MONTH: Month to date.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
periodTimeGranularity
The time granularity setup of period to date computation. Choose from the following options:
-
YEAR: Year to date.
-
MONTH: Month to date.
- Parameters:
periodTimeGranularity
- The time granularity setup of period to date computation. Choose from the following options:-
YEAR: Year to date.
-
MONTH: Month to date.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-