Class ImmutableApplicationLog.Builder

  • Enclosing class:
    ImmutableApplicationLog

    public static final class ImmutableApplicationLog.Builder
    extends Object
    Builds instances of type ImmutableApplicationLog. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final ImmutableApplicationLog.Builder from​(ApplicationLog instance)
        Fill a builder with attribute values from the provided ApplicationLog instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • applicationGuid

        public final ImmutableApplicationLog.Builder applicationGuid​(String applicationGuid)
        Initializes the value for the applicationGuid attribute.
        Parameters:
        applicationGuid - The value for applicationGuid
        Returns:
        this builder for use in a chained invocation
      • message

        public final ImmutableApplicationLog.Builder message​(String message)
        Initializes the value for the message attribute.
        Parameters:
        message - The value for message
        Returns:
        this builder for use in a chained invocation
      • timestamp

        public final ImmutableApplicationLog.Builder timestamp​(Date timestamp)
        Initializes the value for the timestamp attribute.
        Parameters:
        timestamp - The value for timestamp
        Returns:
        this builder for use in a chained invocation
      • sourceId

        public final ImmutableApplicationLog.Builder sourceId​(String sourceId)
        Initializes the value for the sourceId attribute.
        Parameters:
        sourceId - The value for sourceId
        Returns:
        this builder for use in a chained invocation
      • sourceName

        public final ImmutableApplicationLog.Builder sourceName​(String sourceName)
        Initializes the value for the sourceName attribute.
        Parameters:
        sourceName - The value for sourceName
        Returns:
        this builder for use in a chained invocation