Class 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 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.
      • getHosts

        public List<String> getHosts()
        Gets the value of the 'hosts' field.
        Returns:
        The value.
      • 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.
      • getTags

        public List<String> getTags()
        Gets the value of the 'tags' field.
        Returns:
        The value.
      • 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:
        build in interface org.apache.avro.data.RecordBuilder<ReportEvent>