Class ReportMetric.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder<ReportMetric>
    Enclosing class:
    ReportMetric

    public static class ReportMetric.Builder
    extends org.apache.avro.specific.SpecificRecordBuilderBase<ReportMetric>
    implements org.apache.avro.data.RecordBuilder<ReportMetric>
    RecordBuilder for ReportMetric instances.
    • Method Detail

      • getMetric

        public String getMetric()
        Gets the value of the 'metric' field.
        Returns:
        The value.
      • setMetric

        public ReportMetric.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 ReportMetric.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 ReportMetric.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 ReportMetric.Builder clearTimestamp()
        Clears the value of the 'timestamp' field.
        Returns:
        This builder.
      • getValue

        public double getValue()
        Gets the value of the 'value' field.
        Returns:
        The value.
      • setValue

        public ReportMetric.Builder setValue​(double 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.
      • clearValue

        public ReportMetric.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 ReportMetric.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 ReportMetric.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 ReportMetric.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 ReportMetric.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 ReportMetric.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 ReportMetric.Builder clearAnnotations()
        Clears the value of the 'annotations' field.
        Returns:
        This builder.
      • build

        public ReportMetric build()
        Specified by:
        build in interface org.apache.avro.data.RecordBuilder<ReportMetric>