Package com.arpnetworking.tsdcore.model
Class PeriodicData.Builder
java.lang.Object
com.arpnetworking.commons.builder.OvalBuilder<T>
com.arpnetworking.commons.builder.ThreadLocalBuilder<PeriodicData>
com.arpnetworking.tsdcore.model.PeriodicData.Builder
- All Implemented Interfaces:
com.arpnetworking.commons.builder.Builder<PeriodicData>
- Enclosing class:
- PeriodicData
public static final class PeriodicData.Builder
extends com.arpnetworking.commons.builder.ThreadLocalBuilder<PeriodicData>
Builder
implementation for
PeriodicData
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
reset()
setData
(com.google.common.collect.ImmutableMultimap<String, AggregatedData> value) Set the data.setDimensions
(Key value) Set the dimensions.setMinRequestTime
(ZonedDateTime value) Set the earliest time at which data in this bucket was recorded.Set the period.setStart
(ZonedDateTime value) Set the start.Methods inherited from class com.arpnetworking.commons.builder.ThreadLocalBuilder
build, build, buildGeneric, clone, clone
Methods inherited from class com.arpnetworking.commons.builder.OvalBuilder
clone, clone, construct, isSelfValidating, toString, validate
-
Constructor Details
-
Builder
public Builder()Public constructor.
-
-
Method Details
-
setPeriod
Set the period. Required. Cannot be null.- Parameters:
value
- The period.- Returns:
- This
PeriodicData.Builder
instance.
-
setStart
Set the start. Required. Cannot be null.- Parameters:
value
- The start.- Returns:
- This
PeriodicData.Builder
instance.
-
setMinRequestTime
Set the earliest time at which data in this bucket was recorded. May be null.- Parameters:
value
- The timestamp- Returns:
- This
PeriodicData.Builder
instance.
-
setDimensions
Set the dimensions. Required. Cannot be null.- Parameters:
value
- The dimensions.- Returns:
- This
PeriodicData.Builder
instance.
-
setData
public PeriodicData.Builder setData(com.google.common.collect.ImmutableMultimap<String, AggregatedData> value) Set the data. Optional. Cannot be null. Defaults to an emptyImmutableMultimap
.- Parameters:
value
- The data.- Returns:
- This
PeriodicData.Builder
instance.
-
reset
protected void reset()- Specified by:
reset
in classcom.arpnetworking.commons.builder.ThreadLocalBuilder<PeriodicData>
-