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.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 ImmutableCheckRunResponse.Builder
app(App app)
Initializes the optional valueapp
to app.ImmutableCheckRunResponse.Builder
app(Optional<? extends App> app)
Initializes the optional valueapp
to app.ImmutableCheckRunResponse
build()
Builds a newImmutableCheckRunResponse
.ImmutableCheckRunResponse.Builder
checkSuite(CheckSuite checkSuite)
Initializes the optional valuecheckSuite
to checkSuite.ImmutableCheckRunResponse.Builder
checkSuite(Optional<? extends CheckSuite> checkSuite)
Initializes the optional valuecheckSuite
to checkSuite.ImmutableCheckRunResponse.Builder
completedAt(ZonedDateTime completedAt)
Initializes the optional valuecompletedAt
to completedAt.ImmutableCheckRunResponse.Builder
completedAt(Optional<? extends ZonedDateTime> completedAt)
Initializes the optional valuecompletedAt
to completedAt.ImmutableCheckRunResponse.Builder
conclusion(CheckRunConclusion conclusion)
Initializes the optional valueconclusion
to conclusion.ImmutableCheckRunResponse.Builder
conclusion(Optional<? extends CheckRunConclusion> conclusion)
Initializes the optional valueconclusion
to conclusion.ImmutableCheckRunResponse.Builder
detailsUrl(String detailsUrl)
Initializes the optional valuedetailsUrl
to detailsUrl.ImmutableCheckRunResponse.Builder
detailsUrl(Optional<String> detailsUrl)
Initializes the optional valuedetailsUrl
to detailsUrl.ImmutableCheckRunResponse.Builder
externalId(String externalId)
Initializes the optional valueexternalId
to externalId.ImmutableCheckRunResponse.Builder
externalId(Optional<String> externalId)
Initializes the optional valueexternalId
to externalId.ImmutableCheckRunResponse.Builder
from(CheckRunBase instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunBase
instance.ImmutableCheckRunResponse.Builder
from(CheckRunResponse instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunResponse
instance.ImmutableCheckRunResponse.Builder
headSha(String headSha)
Initializes the value for theheadSha
attribute.ImmutableCheckRunResponse.Builder
htmlUrl(String htmlUrl)
Initializes the value for thehtmlUrl
attribute.ImmutableCheckRunResponse.Builder
id(long id)
Initializes the value for theid
attribute.ImmutableCheckRunResponse.Builder
name(String name)
Initializes the value for thename
attribute.ImmutableCheckRunResponse.Builder
output(CheckRunOutput output)
Initializes the value for theoutput
attribute.ImmutableCheckRunResponse.Builder
startedAt(ZonedDateTime startedAt)
Initializes the optional valuestartedAt
to startedAt.ImmutableCheckRunResponse.Builder
startedAt(Optional<? extends ZonedDateTime> startedAt)
Initializes the optional valuestartedAt
to startedAt.ImmutableCheckRunResponse.Builder
status(CheckRunStatus status)
Initializes the value for thestatus
attribute.ImmutableCheckRunResponse.Builder
url(String url)
Initializes the value for theurl
attribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder from(CheckRunBase instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunBase
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder 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.CheckRunResponse
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
headSha
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder headSha(String headSha)
Initializes the value for theheadSha
attribute.- Parameters:
headSha
- The value for headSha- Returns:
this
builder for use in a chained invocation
-
name
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder name(String name)
Initializes the value for thename
attribute.- Parameters:
name
- The value for name- Returns:
this
builder for use in a chained invocation
-
status
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder status(CheckRunStatus status)
Initializes the value for thestatus
attribute.- Parameters:
status
- The value for status- Returns:
this
builder for use in a chained invocation
-
conclusion
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder conclusion(CheckRunConclusion conclusion)
Initializes the optional valueconclusion
to conclusion.- Parameters:
conclusion
- The value for conclusion- Returns:
this
builder for chained invocation
-
conclusion
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder conclusion(Optional<? extends CheckRunConclusion> conclusion)
Initializes the optional valueconclusion
to conclusion.- Parameters:
conclusion
- The value for conclusion- Returns:
this
builder for use in a chained invocation
-
startedAt
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder startedAt(ZonedDateTime startedAt)
Initializes the optional valuestartedAt
to startedAt.- Parameters:
startedAt
- The value for startedAt- Returns:
this
builder for chained invocation
-
startedAt
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder startedAt(Optional<? extends ZonedDateTime> startedAt)
Initializes the optional valuestartedAt
to startedAt.- Parameters:
startedAt
- The value for startedAt- Returns:
this
builder for use in a chained invocation
-
completedAt
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder completedAt(ZonedDateTime completedAt)
Initializes the optional valuecompletedAt
to completedAt.- Parameters:
completedAt
- The value for completedAt- Returns:
this
builder for chained invocation
-
completedAt
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder completedAt(Optional<? extends ZonedDateTime> completedAt)
Initializes the optional valuecompletedAt
to completedAt.- Parameters:
completedAt
- The value for completedAt- Returns:
this
builder for use in a chained invocation
-
externalId
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder externalId(String externalId)
Initializes the optional valueexternalId
to externalId.- Parameters:
externalId
- The value for externalId- Returns:
this
builder for chained invocation
-
externalId
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder externalId(Optional<String> externalId)
Initializes the optional valueexternalId
to externalId.- Parameters:
externalId
- The value for externalId- Returns:
this
builder for use in a chained invocation
-
detailsUrl
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder detailsUrl(String detailsUrl)
Initializes the optional valuedetailsUrl
to detailsUrl.- Parameters:
detailsUrl
- The value for detailsUrl- Returns:
this
builder for chained invocation
-
detailsUrl
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder detailsUrl(Optional<String> detailsUrl)
Initializes the optional valuedetailsUrl
to detailsUrl.- Parameters:
detailsUrl
- The value for detailsUrl- Returns:
this
builder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder id(long id)
Initializes the value for theid
attribute.- Parameters:
id
- The value for id- Returns:
this
builder for use in a chained invocation
-
url
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder url(String url)
Initializes the value for theurl
attribute.- Parameters:
url
- The value for url- Returns:
this
builder for use in a chained invocation
-
htmlUrl
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder htmlUrl(String htmlUrl)
Initializes the value for thehtmlUrl
attribute.- Parameters:
htmlUrl
- The value for htmlUrl- Returns:
this
builder for use in a chained invocation
-
output
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder output(CheckRunOutput output)
Initializes the value for theoutput
attribute.- Parameters:
output
- The value for output- Returns:
this
builder for use in a chained invocation
-
checkSuite
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder checkSuite(CheckSuite checkSuite)
Initializes the optional valuecheckSuite
to checkSuite.- Parameters:
checkSuite
- The value for checkSuite- Returns:
this
builder for chained invocation
-
checkSuite
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder checkSuite(Optional<? extends CheckSuite> checkSuite)
Initializes the optional valuecheckSuite
to checkSuite.- Parameters:
checkSuite
- The value for checkSuite- Returns:
this
builder for use in a chained invocation
-
app
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder app(App app)
Initializes the optional valueapp
to app.- Parameters:
app
- The value for app- Returns:
this
builder for chained invocation
-
app
@CanIgnoreReturnValue public final ImmutableCheckRunResponse.Builder app(Optional<? extends App> app)
Initializes the optional valueapp
to app.- Parameters:
app
- The value for app- Returns:
this
builder 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
-
-