Package com.spotify.github.v3.checks
Class ImmutableCheckRunResponse.Builder
- java.lang.Object
-
- com.spotify.github.v3.checks.ImmutableCheckRunResponse.Builder
-
- Enclosing class:
- ImmutableCheckRunResponse
@NotThreadSafe public static final class ImmutableCheckRunResponse.Builder extends Object
Builds instances of typeImmutableCheckRunResponse. 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 ImmutableCheckRunResponse.Builderapp(App app)Initializes the optional valueappto app.ImmutableCheckRunResponse.Builderapp(Optional<? extends App> app)Initializes the optional valueappto app.ImmutableCheckRunResponsebuild()Builds a newImmutableCheckRunResponse.ImmutableCheckRunResponse.BuildercheckSuite(CheckSuite checkSuite)Initializes the optional valuecheckSuiteto checkSuite.ImmutableCheckRunResponse.BuildercheckSuite(Optional<? extends CheckSuite> checkSuite)Initializes the optional valuecheckSuiteto checkSuite.ImmutableCheckRunResponse.BuildercompletedAt(ZonedDateTime completedAt)Initializes the optional valuecompletedAtto completedAt.ImmutableCheckRunResponse.BuildercompletedAt(Optional<? extends ZonedDateTime> completedAt)Initializes the optional valuecompletedAtto completedAt.ImmutableCheckRunResponse.Builderconclusion(CheckRunConclusion conclusion)Initializes the optional valueconclusionto conclusion.ImmutableCheckRunResponse.Builderconclusion(Optional<? extends CheckRunConclusion> conclusion)Initializes the optional valueconclusionto conclusion.ImmutableCheckRunResponse.BuilderdetailsUrl(String detailsUrl)Initializes the optional valuedetailsUrlto detailsUrl.ImmutableCheckRunResponse.BuilderdetailsUrl(Optional<String> detailsUrl)Initializes the optional valuedetailsUrlto detailsUrl.ImmutableCheckRunResponse.BuilderexternalId(String externalId)Initializes the optional valueexternalIdto externalId.ImmutableCheckRunResponse.BuilderexternalId(Optional<String> externalId)Initializes the optional valueexternalIdto externalId.ImmutableCheckRunResponse.Builderfrom(CheckRunBase instance)Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunBaseinstance.ImmutableCheckRunResponse.Builderfrom(CheckRunResponse instance)Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunResponseinstance.ImmutableCheckRunResponse.BuilderheadSha(String headSha)Initializes the value for theheadShaattribute.ImmutableCheckRunResponse.BuilderhtmlUrl(String htmlUrl)Initializes the value for thehtmlUrlattribute.ImmutableCheckRunResponse.Builderid(long id)Initializes the value for theidattribute.ImmutableCheckRunResponse.Buildername(String name)Initializes the value for thenameattribute.ImmutableCheckRunResponse.Builderoutput(CheckRunOutput output)Initializes the value for theoutputattribute.ImmutableCheckRunResponse.BuilderstartedAt(ZonedDateTime startedAt)Initializes the optional valuestartedAtto startedAt.ImmutableCheckRunResponse.BuilderstartedAt(Optional<? extends ZonedDateTime> startedAt)Initializes the optional valuestartedAtto startedAt.ImmutableCheckRunResponse.Builderstatus(CheckRunStatus status)Initializes the value for thestatusattribute.ImmutableCheckRunResponse.Builderurl(String url)Initializes the value for theurlattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder from(CheckRunBase instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunBaseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder from(CheckRunResponse instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunResponseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
headSha
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder headSha(String headSha)
Initializes the value for theheadShaattribute.- Parameters:
headSha- The value for headSha- Returns:
thisbuilder for use in a chained invocation
-
name
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder name(String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
status
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder status(CheckRunStatus status)
Initializes the value for thestatusattribute.- Parameters:
status- The value for status- Returns:
thisbuilder for use in a chained invocation
-
conclusion
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder conclusion(CheckRunConclusion conclusion)
Initializes the optional valueconclusionto conclusion.- Parameters:
conclusion- The value for conclusion- Returns:
thisbuilder for chained invocation
-
conclusion
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder conclusion(Optional<? extends CheckRunConclusion> conclusion)
Initializes the optional valueconclusionto conclusion.- Parameters:
conclusion- The value for conclusion- Returns:
thisbuilder for use in a chained invocation
-
startedAt
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder startedAt(ZonedDateTime startedAt)
Initializes the optional valuestartedAtto startedAt.- Parameters:
startedAt- The value for startedAt- Returns:
thisbuilder for chained invocation
-
startedAt
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder startedAt(Optional<? extends ZonedDateTime> startedAt)
Initializes the optional valuestartedAtto startedAt.- Parameters:
startedAt- The value for startedAt- Returns:
thisbuilder for use in a chained invocation
-
completedAt
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder completedAt(ZonedDateTime completedAt)
Initializes the optional valuecompletedAtto completedAt.- Parameters:
completedAt- The value for completedAt- Returns:
thisbuilder for chained invocation
-
completedAt
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder completedAt(Optional<? extends ZonedDateTime> completedAt)
Initializes the optional valuecompletedAtto completedAt.- Parameters:
completedAt- The value for completedAt- Returns:
thisbuilder for use in a chained invocation
-
externalId
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder externalId(String externalId)
Initializes the optional valueexternalIdto externalId.- Parameters:
externalId- The value for externalId- Returns:
thisbuilder for chained invocation
-
externalId
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder externalId(Optional<String> externalId)
Initializes the optional valueexternalIdto externalId.- Parameters:
externalId- The value for externalId- Returns:
thisbuilder for use in a chained invocation
-
detailsUrl
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder detailsUrl(String detailsUrl)
Initializes the optional valuedetailsUrlto detailsUrl.- Parameters:
detailsUrl- The value for detailsUrl- Returns:
thisbuilder for chained invocation
-
detailsUrl
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder detailsUrl(Optional<String> detailsUrl)
Initializes the optional valuedetailsUrlto detailsUrl.- Parameters:
detailsUrl- The value for detailsUrl- Returns:
thisbuilder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder id(long id)
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
url
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder url(String url)
Initializes the value for theurlattribute.- Parameters:
url- The value for url- Returns:
thisbuilder for use in a chained invocation
-
htmlUrl
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder htmlUrl(String htmlUrl)
Initializes the value for thehtmlUrlattribute.- Parameters:
htmlUrl- The value for htmlUrl- Returns:
thisbuilder for use in a chained invocation
-
output
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder output(CheckRunOutput output)
Initializes the value for theoutputattribute.- Parameters:
output- The value for output- Returns:
thisbuilder for use in a chained invocation
-
checkSuite
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder checkSuite(CheckSuite checkSuite)
Initializes the optional valuecheckSuiteto checkSuite.- Parameters:
checkSuite- The value for checkSuite- Returns:
thisbuilder for chained invocation
-
checkSuite
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder checkSuite(Optional<? extends CheckSuite> checkSuite)
Initializes the optional valuecheckSuiteto checkSuite.- Parameters:
checkSuite- The value for checkSuite- Returns:
thisbuilder for use in a chained invocation
-
app
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder app(App app)
Initializes the optional valueappto app.- Parameters:
app- The value for app- Returns:
thisbuilder for chained invocation
-
app
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder app(Optional<? extends App> app)
Initializes the optional valueappto app.- Parameters:
app- The value for app- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCheckRunResponse build()
Builds a newImmutableCheckRunResponse.- Returns:
- An immutable instance of CheckRunResponse
- Throws:
IllegalStateException- if any required attributes are missing
-
-