Package com.io7m.brooklime.api
Class BLProgressFileStarted.Builder
java.lang.Object
com.io7m.brooklime.api.BLProgressFileStarted.Builder
- Enclosing class:
- BLProgressFileStarted
public static final class BLProgressFileStarted.Builder
extends java.lang.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 Summary
Modifier and Type Method Description BLProgressFileStartedbuild()Builds a newBLProgressFileStarted.BLProgressFileStarted.Builderfrom(BLProgressEventType instance)Fill a builder with attribute values from the providedcom.io7m.brooklime.api.BLProgressEventTypeinstance.BLProgressFileStarted.Builderfrom(BLProgressEventType.BLProgressFileStartedType instance)Fill a builder with attribute values from the providedcom.io7m.brooklime.api.BLProgressEventType.BLProgressFileStartedTypeinstance.BLProgressFileStarted.BuildersetAttemptCurrent(int attemptCurrent)Initializes the value for theattemptCurrentattribute.BLProgressFileStarted.BuildersetAttemptMaximum(int attemptMaximum)Initializes the value for theattemptMaximumattribute.BLProgressFileStarted.BuildersetFileIndexCurrent(int fileIndexCurrent)Initializes the value for thefileIndexCurrentattribute.BLProgressFileStarted.BuildersetFileIndexMaximum(int fileIndexMaximum)Initializes the value for thefileIndexMaximumattribute.BLProgressFileStarted.BuildersetName(java.lang.String name)Initializes the value for thenameattribute.
-
Method Details
-
from
public final BLProgressFileStarted.Builder from(BLProgressEventType.BLProgressFileStartedType instance)Fill a builder with attribute values from the providedcom.io7m.brooklime.api.BLProgressEventType.BLProgressFileStartedTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.brooklime.api.BLProgressEventTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setName
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setAttemptCurrent
Initializes the value for theattemptCurrentattribute.- Parameters:
attemptCurrent- The value for attemptCurrent- Returns:
thisbuilder for use in a chained invocation
-
setAttemptMaximum
Initializes the value for theattemptMaximumattribute.- Parameters:
attemptMaximum- The value for attemptMaximum- Returns:
thisbuilder for use in a chained invocation
-
setFileIndexCurrent
Initializes the value for thefileIndexCurrentattribute.- Parameters:
fileIndexCurrent- The value for fileIndexCurrent- Returns:
thisbuilder for use in a chained invocation
-
setFileIndexMaximum
Initializes the value for thefileIndexMaximumattribute.- Parameters:
fileIndexMaximum- The value for fileIndexMaximum- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newBLProgressFileStarted.- Returns:
- An immutable instance of BLProgressFileStarted
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-