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.Object
Builds instances of type
RuntimeRepositoryEventUpdateFailed
.
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 RuntimeRepositoryEventUpdateFailed
build()
Builds a newRuntimeRepositoryEventUpdateFailed
.RuntimeRepositoryEventUpdateFailed.Builder
from(RuntimeRepositoryEventType instance)
Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventType
instance.RuntimeRepositoryEventUpdateFailed.Builder
from(RuntimeRepositoryEventUpdateFailedType instance)
Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateFailedType
instance.RuntimeRepositoryEventUpdateFailed.Builder
from(RuntimeRepositoryEventUpdateType instance)
Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateType
instance.RuntimeRepositoryEventUpdateFailed.Builder
setException(java.lang.Exception exception)
Initializes the value for theexception
attribute.RuntimeRepositoryEventUpdateFailed.Builder
setRepository(java.net.URI repository)
Initializes the value for therepository
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.coffeepick.repository.spi.RuntimeRepositoryEventType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder 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.RuntimeRepositoryEventUpdateFailedType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder 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.RuntimeRepositoryEventUpdateType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setRepository
Initializes the value for therepository
attribute.- Parameters:
repository
- The value for repository- Returns:
this
builder for use in a chained invocation
-
setException
public final RuntimeRepositoryEventUpdateFailed.Builder setException(java.lang.Exception exception)Initializes the value for theexception
attribute.- Parameters:
exception
- The value for exception- Returns:
this
builder for use in a chained invocation
-
build
Builds a newRuntimeRepositoryEventUpdateFailed
.- Returns:
- An immutable instance of RuntimeRepositoryEventUpdateFailed
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-