Package com.spotify.github.v3.checks
Class ImmutableCheckRunRequest.Builder
- java.lang.Object
-
- com.spotify.github.v3.checks.ImmutableCheckRunRequest.Builder
-
- Enclosing class:
- ImmutableCheckRunRequest
@NotThreadSafe public static final class ImmutableCheckRunRequest.Builder extends Object
Builds instances of typeImmutableCheckRunRequest
. 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 ImmutableCheckRunRequest.Builder
actions(Iterable<? extends CheckRunAction> elements)
Sets or replaces all elements foractions
list.ImmutableCheckRunRequest.Builder
addActions(CheckRunAction element)
Adds one element toactions
list.ImmutableCheckRunRequest.Builder
addActions(CheckRunAction... elements)
Adds elements toactions
list.ImmutableCheckRunRequest.Builder
addAllActions(Iterable<? extends CheckRunAction> elements)
Adds elements toactions
list.ImmutableCheckRunRequest
build()
Builds a newImmutableCheckRunRequest
.ImmutableCheckRunRequest.Builder
completedAt(ZonedDateTime completedAt)
Initializes the optional valuecompletedAt
to completedAt.ImmutableCheckRunRequest.Builder
completedAt(Optional<? extends ZonedDateTime> completedAt)
Initializes the optional valuecompletedAt
to completedAt.ImmutableCheckRunRequest.Builder
conclusion(CheckRunConclusion conclusion)
Initializes the optional valueconclusion
to conclusion.ImmutableCheckRunRequest.Builder
conclusion(Optional<? extends CheckRunConclusion> conclusion)
Initializes the optional valueconclusion
to conclusion.ImmutableCheckRunRequest.Builder
detailsUrl(String detailsUrl)
Initializes the optional valuedetailsUrl
to detailsUrl.ImmutableCheckRunRequest.Builder
detailsUrl(Optional<String> detailsUrl)
Initializes the optional valuedetailsUrl
to detailsUrl.ImmutableCheckRunRequest.Builder
externalId(String externalId)
Initializes the optional valueexternalId
to externalId.ImmutableCheckRunRequest.Builder
externalId(Optional<String> externalId)
Initializes the optional valueexternalId
to externalId.ImmutableCheckRunRequest.Builder
from(CheckRunBase instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunBase
instance.ImmutableCheckRunRequest.Builder
from(CheckRunRequest instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunRequest
instance.ImmutableCheckRunRequest.Builder
headSha(String headSha)
Initializes the value for theheadSha
attribute.ImmutableCheckRunRequest.Builder
name(String name)
Initializes the value for thename
attribute.ImmutableCheckRunRequest.Builder
output(CheckRunOutput output)
Initializes the optional valueoutput
to output.ImmutableCheckRunRequest.Builder
output(Optional<? extends CheckRunOutput> output)
Initializes the optional valueoutput
to output.ImmutableCheckRunRequest.Builder
startedAt(ZonedDateTime startedAt)
Initializes the optional valuestartedAt
to startedAt.ImmutableCheckRunRequest.Builder
startedAt(Optional<? extends ZonedDateTime> startedAt)
Initializes the optional valuestartedAt
to startedAt.ImmutableCheckRunRequest.Builder
status(CheckRunStatus status)
Initializes the value for thestatus
attribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableCheckRunRequest.Builder from(CheckRunRequest instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.checks.CheckRunRequest
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableCheckRunRequest.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
-
headSha
@CanIgnoreReturnValue public final ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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 ImmutableCheckRunRequest.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
-
output
@CanIgnoreReturnValue public final ImmutableCheckRunRequest.Builder output(CheckRunOutput output)
Initializes the optional valueoutput
to output.- Parameters:
output
- The value for output- Returns:
this
builder for chained invocation
-
output
@CanIgnoreReturnValue public final ImmutableCheckRunRequest.Builder output(Optional<? extends CheckRunOutput> output)
Initializes the optional valueoutput
to output.- Parameters:
output
- The value for output- Returns:
this
builder for use in a chained invocation
-
addActions
@CanIgnoreReturnValue public final ImmutableCheckRunRequest.Builder addActions(CheckRunAction element)
Adds one element toactions
list.- Parameters:
element
- A actions element- Returns:
this
builder for use in a chained invocation
-
addActions
@CanIgnoreReturnValue public final ImmutableCheckRunRequest.Builder addActions(CheckRunAction... elements)
Adds elements toactions
list.- Parameters:
elements
- An array of actions elements- Returns:
this
builder for use in a chained invocation
-
actions
@CanIgnoreReturnValue public final ImmutableCheckRunRequest.Builder actions(Iterable<? extends CheckRunAction> elements)
Sets or replaces all elements foractions
list.- Parameters:
elements
- An iterable of actions elements- Returns:
this
builder for use in a chained invocation
-
addAllActions
@CanIgnoreReturnValue public final ImmutableCheckRunRequest.Builder addAllActions(Iterable<? extends CheckRunAction> elements)
Adds elements toactions
list.- Parameters:
elements
- An iterable of actions elements- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableCheckRunRequest build()
Builds a newImmutableCheckRunRequest
.- Returns:
- An immutable instance of CheckRunRequest
- Throws:
IllegalStateException
- if any required attributes are missing
-
-