Package wavefront.report
Class ReportEvent.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<ReportEvent>
-
- wavefront.report.ReportEvent.Builder
-
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<ReportEvent>
- Enclosing class:
- ReportEvent
public static class ReportEvent.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<ReportEvent> implements org.apache.avro.data.RecordBuilder<ReportEvent>
RecordBuilder for ReportEvent instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportEventbuild()ReportEvent.BuilderclearAnnotations()Clears the value of the 'annotations' field.ReportEvent.BuilderclearDimensions()Clears the value of the 'dimensions' field.ReportEvent.BuilderclearEndTime()Clears the value of the 'endTime' field.ReportEvent.BuilderclearHosts()Clears the value of the 'hosts' field.ReportEvent.BuilderclearName()Clears the value of the 'name' field.ReportEvent.BuilderclearStartTime()Clears the value of the 'startTime' field.ReportEvent.BuilderclearTags()Clears the value of the 'tags' field.Map<String,String>getAnnotations()Gets the value of the 'annotations' field.Map<String,List<String>>getDimensions()Gets the value of the 'dimensions' field.longgetEndTime()Gets the value of the 'endTime' field.List<String>getHosts()Gets the value of the 'hosts' field.StringgetName()Gets the value of the 'name' field.longgetStartTime()Gets the value of the 'startTime' field.List<String>getTags()Gets the value of the 'tags' field.booleanhasAnnotations()Checks whether the 'annotations' field has been set.booleanhasDimensions()Checks whether the 'dimensions' field has been set.booleanhasEndTime()Checks whether the 'endTime' field has been set.booleanhasHosts()Checks whether the 'hosts' field has been set.booleanhasName()Checks whether the 'name' field has been set.booleanhasStartTime()Checks whether the 'startTime' field has been set.booleanhasTags()Checks whether the 'tags' field has been set.ReportEvent.BuildersetAnnotations(Map<String,String> value)Sets the value of the 'annotations' field.ReportEvent.BuildersetDimensions(Map<String,List<String>> value)Sets the value of the 'dimensions' field.ReportEvent.BuildersetEndTime(long value)Sets the value of the 'endTime' field.ReportEvent.BuildersetHosts(List<String> value)Sets the value of the 'hosts' field.ReportEvent.BuildersetName(String value)Sets the value of the 'name' field.ReportEvent.BuildersetStartTime(long value)Sets the value of the 'startTime' field.ReportEvent.BuildersetTags(List<String> value)Sets the value of the 'tags' field.
-
-
-
Method Detail
-
getName
public String getName()
Gets the value of the 'name' field.- Returns:
- The value.
-
setName
public ReportEvent.Builder setName(String value)
Sets the value of the 'name' field.- Parameters:
value- The value of 'name'.- Returns:
- This builder.
-
hasName
public boolean hasName()
Checks whether the 'name' field has been set.- Returns:
- True if the 'name' field has been set, false otherwise.
-
clearName
public ReportEvent.Builder clearName()
Clears the value of the 'name' field.- Returns:
- This builder.
-
getStartTime
public long getStartTime()
Gets the value of the 'startTime' field.- Returns:
- The value.
-
setStartTime
public ReportEvent.Builder setStartTime(long value)
Sets the value of the 'startTime' field.- Parameters:
value- The value of 'startTime'.- Returns:
- This builder.
-
hasStartTime
public boolean hasStartTime()
Checks whether the 'startTime' field has been set.- Returns:
- True if the 'startTime' field has been set, false otherwise.
-
clearStartTime
public ReportEvent.Builder clearStartTime()
Clears the value of the 'startTime' field.- Returns:
- This builder.
-
getEndTime
public long getEndTime()
Gets the value of the 'endTime' field.- Returns:
- The value.
-
setEndTime
public ReportEvent.Builder setEndTime(long value)
Sets the value of the 'endTime' field.- Parameters:
value- The value of 'endTime'.- Returns:
- This builder.
-
hasEndTime
public boolean hasEndTime()
Checks whether the 'endTime' field has been set.- Returns:
- True if the 'endTime' field has been set, false otherwise.
-
clearEndTime
public ReportEvent.Builder clearEndTime()
Clears the value of the 'endTime' field.- Returns:
- This builder.
-
getAnnotations
public Map<String,String> getAnnotations()
Gets the value of the 'annotations' field.- Returns:
- The value.
-
setAnnotations
public ReportEvent.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 ReportEvent.Builder clearAnnotations()
Clears the value of the 'annotations' field.- Returns:
- This builder.
-
setHosts
public ReportEvent.Builder setHosts(List<String> value)
Sets the value of the 'hosts' field.- Parameters:
value- The value of 'hosts'.- Returns:
- This builder.
-
hasHosts
public boolean hasHosts()
Checks whether the 'hosts' field has been set.- Returns:
- True if the 'hosts' field has been set, false otherwise.
-
clearHosts
public ReportEvent.Builder clearHosts()
Clears the value of the 'hosts' field.- Returns:
- This builder.
-
setTags
public ReportEvent.Builder setTags(List<String> value)
Sets the value of the 'tags' field.- Parameters:
value- The value of 'tags'.- Returns:
- This builder.
-
hasTags
public boolean hasTags()
Checks whether the 'tags' field has been set.- Returns:
- True if the 'tags' field has been set, false otherwise.
-
clearTags
public ReportEvent.Builder clearTags()
Clears the value of the 'tags' field.- Returns:
- This builder.
-
getDimensions
public Map<String,List<String>> getDimensions()
Gets the value of the 'dimensions' field.- Returns:
- The value.
-
setDimensions
public ReportEvent.Builder setDimensions(Map<String,List<String>> value)
Sets the value of the 'dimensions' field.- Parameters:
value- The value of 'dimensions'.- Returns:
- This builder.
-
hasDimensions
public boolean hasDimensions()
Checks whether the 'dimensions' field has been set.- Returns:
- True if the 'dimensions' field has been set, false otherwise.
-
clearDimensions
public ReportEvent.Builder clearDimensions()
Clears the value of the 'dimensions' field.- Returns:
- This builder.
-
build
public ReportEvent build()
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<ReportEvent>
-
-