Class RuntimeRepositoryEventUpdateFailed.Builder
- java.lang.Object
-
- com.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateFailed.Builder
-
- Enclosing class:
- RuntimeRepositoryEventUpdateFailed
public static final class RuntimeRepositoryEventUpdateFailed.Builder extends java.lang.ObjectBuilds instances of typeRuntimeRepositoryEventUpdateFailed. 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 RuntimeRepositoryEventUpdateFailedbuild()Builds a newRuntimeRepositoryEventUpdateFailed.RuntimeRepositoryEventUpdateFailed.Builderfrom(RuntimeRepositoryEventType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventTypeinstance.RuntimeRepositoryEventUpdateFailed.Builderfrom(RuntimeRepositoryEventUpdateFailedType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateFailedTypeinstance.RuntimeRepositoryEventUpdateFailed.Builderfrom(RuntimeRepositoryEventUpdateType instance)Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateTypeinstance.RuntimeRepositoryEventUpdateFailed.BuildersetException(java.lang.Exception exception)Initializes the value for theexceptionattribute.RuntimeRepositoryEventUpdateFailed.BuildersetRepository(java.net.URI repository)Initializes the value for therepositoryattribute.
-
-
-
Method Detail
-
from
public final RuntimeRepositoryEventUpdateFailed.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 RuntimeRepositoryEventUpdateFailed.Builder from(RuntimeRepositoryEventUpdateFailedType instance)
Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateFailedTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final RuntimeRepositoryEventUpdateFailed.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 RuntimeRepositoryEventUpdateFailed.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
-
setException
public final RuntimeRepositoryEventUpdateFailed.Builder setException(java.lang.Exception exception)
Initializes the value for theexceptionattribute.- Parameters:
exception- The value for exception- Returns:
thisbuilder for use in a chained invocation
-
build
public RuntimeRepositoryEventUpdateFailed build()
Builds a newRuntimeRepositoryEventUpdateFailed.- Returns:
- An immutable instance of RuntimeRepositoryEventUpdateFailed
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
-