Class Trace.Builder

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

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

      • getTraceId

        public String getTraceId()
        Gets the value of the 'traceId' field.
        Returns:
        The value.
      • setTraceId

        public Trace.Builder setTraceId​(String value)
        Sets the value of the 'traceId' field.
        Parameters:
        value - The value of 'traceId'.
        Returns:
        This builder.
      • hasTraceId

        public boolean hasTraceId()
        Checks whether the 'traceId' field has been set.
        Returns:
        True if the 'traceId' field has been set, false otherwise.
      • clearTraceId

        public Trace.Builder clearTraceId()
        Clears the value of the 'traceId' field.
        Returns:
        This builder.
      • getCustomer

        public String getCustomer()
        Gets the value of the 'customer' field.
        Returns:
        The value.
      • setCustomer

        public Trace.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 Trace.Builder clearCustomer()
        Clears the value of the 'customer' field.
        Returns:
        This builder.
      • getSpans

        public List<Span> getSpans()
        Gets the value of the 'spans' field.
        Returns:
        The value.
      • setSpans

        public Trace.Builder setSpans​(List<Span> value)
        Sets the value of the 'spans' field.
        Parameters:
        value - The value of 'spans'.
        Returns:
        This builder.
      • hasSpans

        public boolean hasSpans()
        Checks whether the 'spans' field has been set.
        Returns:
        True if the 'spans' field has been set, false otherwise.
      • clearSpans

        public Trace.Builder clearSpans()
        Clears the value of the 'spans' field.
        Returns:
        This builder.
      • build

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