Package wavefront.report
Class TimeSeries.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<TimeSeries>
-
- wavefront.report.TimeSeries.Builder
-
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<TimeSeries>
- Enclosing class:
- TimeSeries
public static class TimeSeries.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<TimeSeries> implements org.apache.avro.data.RecordBuilder<TimeSeries>
RecordBuilder for TimeSeries instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeSeriesbuild()TimeSeries.BuilderclearAnnotations()Clears the value of the 'annotations' field.TimeSeries.BuilderclearHost()Clears the value of the 'host' field.TimeSeries.BuilderclearMetric()Clears the value of the 'metric' field.TimeSeries.BuilderclearTable()Clears the value of the 'table' field.Map<String,String>getAnnotations()Gets the value of the 'annotations' field.StringgetHost()Gets the value of the 'host' field.StringgetMetric()Gets the value of the 'metric' field.StringgetTable()Gets the value of the 'table' field.booleanhasAnnotations()Checks whether the 'annotations' field has been set.booleanhasHost()Checks whether the 'host' field has been set.booleanhasMetric()Checks whether the 'metric' field has been set.booleanhasTable()Checks whether the 'table' field has been set.TimeSeries.BuildersetAnnotations(Map<String,String> value)Sets the value of the 'annotations' field.TimeSeries.BuildersetHost(String value)Sets the value of the 'host' field.TimeSeries.BuildersetMetric(String value)Sets the value of the 'metric' field.TimeSeries.BuildersetTable(String value)Sets the value of the 'table' field.
-
-
-
Method Detail
-
getMetric
public String getMetric()
Gets the value of the 'metric' field.- Returns:
- The value.
-
setMetric
public TimeSeries.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 TimeSeries.Builder clearMetric()
Clears the value of the 'metric' field.- Returns:
- This builder.
-
getHost
public String getHost()
Gets the value of the 'host' field.- Returns:
- The value.
-
setHost
public TimeSeries.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 TimeSeries.Builder clearHost()
Clears the value of the 'host' field.- Returns:
- This builder.
-
getTable
public String getTable()
Gets the value of the 'table' field.- Returns:
- The value.
-
setTable
public TimeSeries.Builder setTable(String value)
Sets the value of the 'table' field.- Parameters:
value- The value of 'table'.- Returns:
- This builder.
-
hasTable
public boolean hasTable()
Checks whether the 'table' field has been set.- Returns:
- True if the 'table' field has been set, false otherwise.
-
clearTable
public TimeSeries.Builder clearTable()
Clears the value of the 'table' field.- Returns:
- This builder.
-
getAnnotations
public Map<String,String> getAnnotations()
Gets the value of the 'annotations' field.- Returns:
- The value.
-
setAnnotations
public TimeSeries.Builder setAnnotations(Map<String,String> 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 TimeSeries.Builder clearAnnotations()
Clears the value of the 'annotations' field.- Returns:
- This builder.
-
build
public TimeSeries build()
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<TimeSeries>
-
-