Class BLProgressFileStarted.Builder

java.lang.Object
com.io7m.brooklime.api.BLProgressFileStarted.Builder
Enclosing class:
BLProgressFileStarted

public static final class BLProgressFileStarted.Builder extends Object
Builds instances of type BLProgressFileStarted. 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 Details

    • from

      Fill a builder with attribute values from the provided com.io7m.brooklime.api.BLProgressEventType.BLProgressFileStartedType instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final BLProgressFileStarted.Builder from(BLProgressEventType instance)
      Fill a builder with attribute values from the provided com.io7m.brooklime.api.BLProgressEventType instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setName

      public final BLProgressFileStarted.Builder setName(String name)
      Initializes the value for the name attribute.
      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • setAttemptCurrent

      public final BLProgressFileStarted.Builder setAttemptCurrent(int attemptCurrent)
      Initializes the value for the attemptCurrent attribute.
      Parameters:
      attemptCurrent - The value for attemptCurrent
      Returns:
      this builder for use in a chained invocation
    • setAttemptMaximum

      public final BLProgressFileStarted.Builder setAttemptMaximum(int attemptMaximum)
      Initializes the value for the attemptMaximum attribute.
      Parameters:
      attemptMaximum - The value for attemptMaximum
      Returns:
      this builder for use in a chained invocation
    • setFileIndexCurrent

      public final BLProgressFileStarted.Builder setFileIndexCurrent(int fileIndexCurrent)
      Initializes the value for the fileIndexCurrent attribute.
      Parameters:
      fileIndexCurrent - The value for fileIndexCurrent
      Returns:
      this builder for use in a chained invocation
    • setFileIndexMaximum

      public final BLProgressFileStarted.Builder setFileIndexMaximum(int fileIndexMaximum)
      Initializes the value for the fileIndexMaximum attribute.
      Parameters:
      fileIndexMaximum - The value for fileIndexMaximum
      Returns:
      this builder for use in a chained invocation
    • build

      public BLProgressFileStarted build()
      Builds a new BLProgressFileStarted.
      Returns:
      An immutable instance of BLProgressFileStarted
      Throws:
      IllegalStateException - if any required attributes are missing