Class RuntimeRepositoryEventUpdateRunning.Builder
- java.lang.Object
-
- com.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateRunning.Builder
-
- Enclosing class:
- RuntimeRepositoryEventUpdateRunning
public static final class RuntimeRepositoryEventUpdateRunning.Builder extends java.lang.ObjectBuilds instances of typeRuntimeRepositoryEventUpdateRunning. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeRepositoryEventUpdateRunningbuild()Builds a newRuntimeRepositoryEventUpdateRunning.RuntimeRepositoryEventUpdateRunning.Builderfrom(RuntimeRepositoryEventType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventTypeinstance.RuntimeRepositoryEventUpdateRunning.Builderfrom(RuntimeRepositoryEventUpdateRunningType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateRunningTypeinstance.RuntimeRepositoryEventUpdateRunning.Builderfrom(RuntimeRepositoryEventUpdateType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateTypeinstance.RuntimeRepositoryEventUpdateRunning.BuildersetProgress(double progress)Initializes the value for theprogressattribute.RuntimeRepositoryEventUpdateRunning.BuildersetRepository(java.net.URI repository)Initializes the value for therepositoryattribute.
-
-
-
Method Detail
-
from
public final RuntimeRepositoryEventUpdateRunning.Builder from(RuntimeRepositoryEventType instance)
Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final RuntimeRepositoryEventUpdateRunning.Builder from(RuntimeRepositoryEventUpdateRunningType instance)
Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateRunningTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final RuntimeRepositoryEventUpdateRunning.Builder from(RuntimeRepositoryEventUpdateType instance)
Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setRepository
public final RuntimeRepositoryEventUpdateRunning.Builder setRepository(java.net.URI repository)
Initializes the value for therepositoryattribute.- Parameters:
repository- The value for repository- Returns:
thisbuilder for use in a chained invocation
-
setProgress
public final RuntimeRepositoryEventUpdateRunning.Builder setProgress(double progress)
Initializes the value for theprogressattribute.- Parameters:
progress- The value for progress- Returns:
thisbuilder for use in a chained invocation
-
build
public RuntimeRepositoryEventUpdateRunning build()
Builds a newRuntimeRepositoryEventUpdateRunning.- Returns:
- An immutable instance of RuntimeRepositoryEventUpdateRunning
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
-