Class ImmutableCheckRunEvent.Builder
- java.lang.Object
-
- com.spotify.github.v3.activity.events.ImmutableCheckRunEvent.Builder
-
- Enclosing class:
- ImmutableCheckRunEvent
@NotThreadSafe public static final class ImmutableCheckRunEvent.Builder extends Object
Builds instances of typeImmutableCheckRunEvent
. Initialize attributes and then invoke thebuild()
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableCheckRunEvent.Builder
action(String action)
Initializes the value for theaction
attribute.ImmutableCheckRunEvent
build()
Builds a newImmutableCheckRunEvent
.ImmutableCheckRunEvent.Builder
checkRun(CheckRunResponse checkRun)
Initializes the value for thecheckRun
attribute.ImmutableCheckRunEvent.Builder
createdAt(GitHubInstant createdAt)
Initializes the value for thecreatedAt
attribute.ImmutableCheckRunEvent.Builder
eventInstallation(EventInstallation eventInstallation)
Initializes the value for theeventInstallation
attribute.ImmutableCheckRunEvent.Builder
from(UpdateTracking instance)
Fill a builder with attribute values from the providedcom.spotify.github.UpdateTracking
instance.ImmutableCheckRunEvent.Builder
from(BaseEvent instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.activity.events.BaseEvent
instance.ImmutableCheckRunEvent.Builder
from(CheckRunEvent instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.activity.events.CheckRunEvent
instance.ImmutableCheckRunEvent.Builder
repository(Repository repository)
Initializes the value for therepository
attribute.ImmutableCheckRunEvent.Builder
sender(User sender)
Initializes the value for thesender
attribute.ImmutableCheckRunEvent.Builder
updatedAt(GitHubInstant updatedAt)
Initializes the value for theupdatedAt
attribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder from(CheckRunEvent instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.activity.events.CheckRunEvent
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder from(BaseEvent instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.activity.events.BaseEvent
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder from(UpdateTracking instance)
Fill a builder with attribute values from the providedcom.spotify.github.UpdateTracking
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
repository
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder repository(@Nullable Repository repository)
Initializes the value for therepository
attribute.- Parameters:
repository
- The value for repository (can benull
)- Returns:
this
builder for use in a chained invocation
-
sender
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder sender(@Nullable User sender)
Initializes the value for thesender
attribute.- Parameters:
sender
- The value for sender (can benull
)- Returns:
this
builder for use in a chained invocation
-
eventInstallation
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder eventInstallation(@Nullable EventInstallation eventInstallation)
Initializes the value for theeventInstallation
attribute.- Parameters:
eventInstallation
- The value for eventInstallation (can benull
)- Returns:
this
builder for use in a chained invocation
-
createdAt
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder createdAt(@Nullable GitHubInstant createdAt)
Initializes the value for thecreatedAt
attribute.- Parameters:
createdAt
- The value for createdAt (can benull
)- Returns:
this
builder for use in a chained invocation
-
updatedAt
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder updatedAt(@Nullable GitHubInstant updatedAt)
Initializes the value for theupdatedAt
attribute.- Parameters:
updatedAt
- The value for updatedAt (can benull
)- Returns:
this
builder for use in a chained invocation
-
action
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder action(@Nullable String action)
Initializes the value for theaction
attribute.- Parameters:
action
- The value for action (can benull
)- Returns:
this
builder for use in a chained invocation
-
checkRun
@CanIgnoreReturnValue public final ImmutableCheckRunEvent.Builder checkRun(@Nullable CheckRunResponse checkRun)
Initializes the value for thecheckRun
attribute.- Parameters:
checkRun
- The value for checkRun (can benull
)- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableCheckRunEvent build()
Builds a newImmutableCheckRunEvent
.- Returns:
- An immutable instance of CheckRunEvent
- Throws:
IllegalStateException
- if any required attributes are missing
-
-