Package com.spotify.github.v3.workflows
Class ImmutableWorkflowsResponse.Builder
- java.lang.Object
-
- com.spotify.github.v3.workflows.ImmutableWorkflowsResponse.Builder
-
- Enclosing class:
- ImmutableWorkflowsResponse
@NotThreadSafe public static final class ImmutableWorkflowsResponse.Builder extends Object
Builds instances of typeImmutableWorkflowsResponse
. 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 ImmutableWorkflowsResponse.Builder
badgeUrl(String badgeUrl)
Initializes the value for thebadgeUrl
attribute.ImmutableWorkflowsResponse
build()
Builds a newImmutableWorkflowsResponse
.ImmutableWorkflowsResponse.Builder
createdAt(ZonedDateTime createdAt)
Initializes the value for thecreatedAt
attribute.ImmutableWorkflowsResponse.Builder
deletedAt(ZonedDateTime deletedAt)
Initializes the value for thedeletedAt
attribute.ImmutableWorkflowsResponse.Builder
from(WorkflowsResponse instance)
Fill a builder with attribute values from the providedWorkflowsResponse
instance.ImmutableWorkflowsResponse.Builder
htmlUrl(String htmlUrl)
Initializes the value for thehtmlUrl
attribute.ImmutableWorkflowsResponse.Builder
id(int id)
Initializes the value for theid
attribute.ImmutableWorkflowsResponse.Builder
name(String name)
Initializes the value for thename
attribute.ImmutableWorkflowsResponse.Builder
nodeId(String nodeId)
Initializes the value for thenodeId
attribute.ImmutableWorkflowsResponse.Builder
path(String path)
Initializes the value for thepath
attribute.ImmutableWorkflowsResponse.Builder
state(WorkflowsState state)
Initializes the value for thestate
attribute.ImmutableWorkflowsResponse.Builder
updatedAt(ZonedDateTime updatedAt)
Initializes the value for theupdatedAt
attribute.ImmutableWorkflowsResponse.Builder
url(String url)
Initializes the value for theurl
attribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder from(WorkflowsResponse instance)
Fill a builder with attribute values from the providedWorkflowsResponse
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder id(int id)
Initializes the value for theid
attribute.- Parameters:
id
- The value for id- Returns:
this
builder for use in a chained invocation
-
nodeId
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder nodeId(String nodeId)
Initializes the value for thenodeId
attribute.- Parameters:
nodeId
- The value for nodeId- Returns:
this
builder for use in a chained invocation
-
name
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.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
-
path
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder path(String path)
Initializes the value for thepath
attribute.- Parameters:
path
- The value for path- Returns:
this
builder for use in a chained invocation
-
state
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder state(WorkflowsState state)
Initializes the value for thestate
attribute.- Parameters:
state
- The value for state- Returns:
this
builder for use in a chained invocation
-
createdAt
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder createdAt(ZonedDateTime createdAt)
Initializes the value for thecreatedAt
attribute.- Parameters:
createdAt
- The value for createdAt- Returns:
this
builder for use in a chained invocation
-
updatedAt
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder updatedAt(ZonedDateTime updatedAt)
Initializes the value for theupdatedAt
attribute.- Parameters:
updatedAt
- The value for updatedAt- Returns:
this
builder for use in a chained invocation
-
deletedAt
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder deletedAt(@Nullable ZonedDateTime deletedAt)
Initializes the value for thedeletedAt
attribute.- Parameters:
deletedAt
- The value for deletedAt (can benull
)- Returns:
this
builder for use in a chained invocation
-
url
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.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 ImmutableWorkflowsResponse.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
-
badgeUrl
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder badgeUrl(String badgeUrl)
Initializes the value for thebadgeUrl
attribute.- Parameters:
badgeUrl
- The value for badgeUrl- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableWorkflowsResponse build()
Builds a newImmutableWorkflowsResponse
.- Returns:
- An immutable instance of WorkflowsResponse
- Throws:
IllegalStateException
- if any required attributes are missing
-
-