Package com.io7m.brooklime.api
Class BLProgressFileStarted.Builder
java.lang.Object
com.io7m.brooklime.api.BLProgressFileStarted.Builder
- Enclosing class:
BLProgressFileStarted
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 TypeMethodDescriptionbuild()Builds a newBLProgressFileStarted.from(BLProgressEventType instance) Fill a builder with attribute values from the providedcom.io7m.brooklime.api.BLProgressEventTypeinstance.Fill a builder with attribute values from the providedcom.io7m.brooklime.api.BLProgressEventType.BLProgressFileStartedTypeinstance.setAttemptCurrent(int attemptCurrent) Initializes the value for theattemptCurrentattribute.setAttemptMaximum(int attemptMaximum) Initializes the value for theattemptMaximumattribute.setFileIndexCurrent(int fileIndexCurrent) Initializes the value for thefileIndexCurrentattribute.setFileIndexMaximum(int fileIndexMaximum) Initializes the value for thefileIndexMaximumattribute.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:
IllegalStateException- if any required attributes are missing
-