Package wavefront.report
Class ReportHistogram.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<ReportHistogram>
-
- wavefront.report.ReportHistogram.Builder
-
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<ReportHistogram>
- Enclosing class:
- ReportHistogram
public static class ReportHistogram.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<ReportHistogram> implements org.apache.avro.data.RecordBuilder<ReportHistogram>
RecordBuilder for ReportHistogram instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportHistogrambuild()ReportHistogram.BuilderclearAnnotations()Clears the value of the 'annotations' field.ReportHistogram.BuilderclearCustomer()Clears the value of the 'customer' field.ReportHistogram.BuilderclearHost()Clears the value of the 'host' field.ReportHistogram.BuilderclearMetric()Clears the value of the 'metric' field.ReportHistogram.BuilderclearTimestamp()Clears the value of the 'timestamp' field.ReportHistogram.BuilderclearValue()Clears the value of the 'value' field.List<Annotation>getAnnotations()Gets the value of the 'annotations' field.StringgetCustomer()Gets the value of the 'customer' field.StringgetHost()Gets the value of the 'host' field.StringgetMetric()Gets the value of the 'metric' field.longgetTimestamp()Gets the value of the 'timestamp' field.HistogramgetValue()Gets the value of the 'value' field.Histogram.BuildergetValueBuilder()Gets the Builder instance for the 'value' field and creates one if it doesn't exist yet.booleanhasAnnotations()Checks whether the 'annotations' field has been set.booleanhasCustomer()Checks whether the 'customer' field has been set.booleanhasHost()Checks whether the 'host' field has been set.booleanhasMetric()Checks whether the 'metric' field has been set.booleanhasTimestamp()Checks whether the 'timestamp' field has been set.booleanhasValue()Checks whether the 'value' field has been set.booleanhasValueBuilder()Checks whether the 'value' field has an active Builder instanceReportHistogram.BuildersetAnnotations(List<Annotation> value)Sets the value of the 'annotations' field.ReportHistogram.BuildersetCustomer(String value)Sets the value of the 'customer' field.ReportHistogram.BuildersetHost(String value)Sets the value of the 'host' field.ReportHistogram.BuildersetMetric(String value)Sets the value of the 'metric' field.ReportHistogram.BuildersetTimestamp(long value)Sets the value of the 'timestamp' field.ReportHistogram.BuildersetValue(Histogram value)Sets the value of the 'value' field.ReportHistogram.BuildersetValueBuilder(Histogram.Builder value)Sets the Builder instance for the 'value' field
-
-
-
Method Detail
-
getMetric
public String getMetric()
Gets the value of the 'metric' field.- Returns:
- The value.
-
setMetric
public ReportHistogram.Builder setMetric(String value)
Sets the value of the 'metric' field.- Parameters:
value- The value of 'metric'.- Returns:
- This builder.
-
hasMetric
public boolean hasMetric()
Checks whether the 'metric' field has been set.- Returns:
- True if the 'metric' field has been set, false otherwise.
-
clearMetric
public ReportHistogram.Builder clearMetric()
Clears the value of the 'metric' field.- Returns:
- This builder.
-
getTimestamp
public long getTimestamp()
Gets the value of the 'timestamp' field.- Returns:
- The value.
-
setTimestamp
public ReportHistogram.Builder setTimestamp(long value)
Sets the value of the 'timestamp' field.- Parameters:
value- The value of 'timestamp'.- Returns:
- This builder.
-
hasTimestamp
public boolean hasTimestamp()
Checks whether the 'timestamp' field has been set.- Returns:
- True if the 'timestamp' field has been set, false otherwise.
-
clearTimestamp
public ReportHistogram.Builder clearTimestamp()
Clears the value of the 'timestamp' field.- Returns:
- This builder.
-
getValue
public Histogram getValue()
Gets the value of the 'value' field.- Returns:
- The value.
-
setValue
public ReportHistogram.Builder setValue(Histogram value)
Sets the value of the 'value' field.- Parameters:
value- The value of 'value'.- Returns:
- This builder.
-
hasValue
public boolean hasValue()
Checks whether the 'value' field has been set.- Returns:
- True if the 'value' field has been set, false otherwise.
-
getValueBuilder
public Histogram.Builder getValueBuilder()
Gets the Builder instance for the 'value' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setValueBuilder
public ReportHistogram.Builder setValueBuilder(Histogram.Builder value)
Sets the Builder instance for the 'value' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasValueBuilder
public boolean hasValueBuilder()
Checks whether the 'value' field has an active Builder instance- Returns:
- True if the 'value' field has an active Builder instance
-
clearValue
public ReportHistogram.Builder clearValue()
Clears the value of the 'value' field.- Returns:
- This builder.
-
getHost
public String getHost()
Gets the value of the 'host' field.- Returns:
- The value.
-
setHost
public ReportHistogram.Builder setHost(String value)
Sets the value of the 'host' field.- Parameters:
value- The value of 'host'.- Returns:
- This builder.
-
hasHost
public boolean hasHost()
Checks whether the 'host' field has been set.- Returns:
- True if the 'host' field has been set, false otherwise.
-
clearHost
public ReportHistogram.Builder clearHost()
Clears the value of the 'host' field.- Returns:
- This builder.
-
getCustomer
public String getCustomer()
Gets the value of the 'customer' field.- Returns:
- The value.
-
setCustomer
public ReportHistogram.Builder setCustomer(String value)
Sets the value of the 'customer' field.- Parameters:
value- The value of 'customer'.- Returns:
- This builder.
-
hasCustomer
public boolean hasCustomer()
Checks whether the 'customer' field has been set.- Returns:
- True if the 'customer' field has been set, false otherwise.
-
clearCustomer
public ReportHistogram.Builder clearCustomer()
Clears the value of the 'customer' field.- Returns:
- This builder.
-
getAnnotations
public List<Annotation> getAnnotations()
Gets the value of the 'annotations' field.- Returns:
- The value.
-
setAnnotations
public ReportHistogram.Builder setAnnotations(List<Annotation> value)
Sets the value of the 'annotations' field.- Parameters:
value- The value of 'annotations'.- Returns:
- This builder.
-
hasAnnotations
public boolean hasAnnotations()
Checks whether the 'annotations' field has been set.- Returns:
- True if the 'annotations' field has been set, false otherwise.
-
clearAnnotations
public ReportHistogram.Builder clearAnnotations()
Clears the value of the 'annotations' field.- Returns:
- This builder.
-
build
public ReportHistogram build()
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<ReportHistogram>
-
-