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.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 ImmutableWorkflowsResponse.BuilderbadgeUrl(String badgeUrl)Initializes the value for thebadgeUrlattribute.ImmutableWorkflowsResponsebuild()Builds a newImmutableWorkflowsResponse.ImmutableWorkflowsResponse.BuildercreatedAt(ZonedDateTime createdAt)Initializes the value for thecreatedAtattribute.ImmutableWorkflowsResponse.BuilderdeletedAt(ZonedDateTime deletedAt)Initializes the value for thedeletedAtattribute.ImmutableWorkflowsResponse.Builderfrom(WorkflowsResponse instance)Fill a builder with attribute values from the providedWorkflowsResponseinstance.ImmutableWorkflowsResponse.BuilderhtmlUrl(String htmlUrl)Initializes the value for thehtmlUrlattribute.ImmutableWorkflowsResponse.Builderid(int id)Initializes the value for theidattribute.ImmutableWorkflowsResponse.Buildername(String name)Initializes the value for thenameattribute.ImmutableWorkflowsResponse.BuildernodeId(String nodeId)Initializes the value for thenodeIdattribute.ImmutableWorkflowsResponse.Builderpath(String path)Initializes the value for thepathattribute.ImmutableWorkflowsResponse.Builderstate(WorkflowsState state)Initializes the value for thestateattribute.ImmutableWorkflowsResponse.BuilderupdatedAt(ZonedDateTime updatedAt)Initializes the value for theupdatedAtattribute.ImmutableWorkflowsResponse.Builderurl(String url)Initializes the value for theurlattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder from(WorkflowsResponse instance)
Fill a builder with attribute values from the providedWorkflowsResponseinstance. 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:
thisbuilder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder id(int id)
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
nodeId
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder nodeId(String nodeId)
Initializes the value for thenodeIdattribute.- Parameters:
nodeId- The value for nodeId- Returns:
thisbuilder for use in a chained invocation
-
name
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder name(String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
path
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder path(String path)
Initializes the value for thepathattribute.- Parameters:
path- The value for path- Returns:
thisbuilder for use in a chained invocation
-
state
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder state(WorkflowsState state)
Initializes the value for thestateattribute.- Parameters:
state- The value for state- Returns:
thisbuilder for use in a chained invocation
-
createdAt
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder createdAt(ZonedDateTime createdAt)
Initializes the value for thecreatedAtattribute.- Parameters:
createdAt- The value for createdAt- Returns:
thisbuilder for use in a chained invocation
-
updatedAt
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder updatedAt(ZonedDateTime updatedAt)
Initializes the value for theupdatedAtattribute.- Parameters:
updatedAt- The value for updatedAt- Returns:
thisbuilder for use in a chained invocation
-
deletedAt
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder deletedAt(@Nullable ZonedDateTime deletedAt)
Initializes the value for thedeletedAtattribute.- Parameters:
deletedAt- The value for deletedAt (can benull)- Returns:
thisbuilder for use in a chained invocation
-
url
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.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 ImmutableWorkflowsResponse.Builder htmlUrl(String htmlUrl)
Initializes the value for thehtmlUrlattribute.- Parameters:
htmlUrl- The value for htmlUrl- Returns:
thisbuilder for use in a chained invocation
-
badgeUrl
@CanIgnoreReturnValue public final ImmutableWorkflowsResponse.Builder badgeUrl(String badgeUrl)
Initializes the value for thebadgeUrlattribute.- Parameters:
badgeUrl- The value for badgeUrl- Returns:
thisbuilder 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
-
-