Package com.spotify.github.v3.workflows
Class ImmutableWorkflowsRepositoryResponseList.Builder
- java.lang.Object
-
- com.spotify.github.v3.workflows.ImmutableWorkflowsRepositoryResponseList.Builder
-
- Enclosing class:
- ImmutableWorkflowsRepositoryResponseList
@NotThreadSafe public static final class ImmutableWorkflowsRepositoryResponseList.Builder extends Object
Builds instances of typeImmutableWorkflowsRepositoryResponseList
. 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
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder from(WorkflowsRepositoryResponseList instance)
Fill a builder with attribute values from the providedWorkflowsRepositoryResponseList
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
totalCount
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder totalCount(int totalCount)
Initializes the value for thetotalCount
attribute.- Parameters:
totalCount
- The value for totalCount- Returns:
this
builder for use in a chained invocation
-
addWorkflows
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder addWorkflows(WorkflowsResponse element)
Adds one element toworkflows
list.- Parameters:
element
- A workflows element- Returns:
this
builder for use in a chained invocation
-
addWorkflows
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder addWorkflows(WorkflowsResponse... elements)
Adds elements toworkflows
list.- Parameters:
elements
- An array of workflows elements- Returns:
this
builder for use in a chained invocation
-
workflows
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder workflows(Iterable<? extends WorkflowsResponse> elements)
Sets or replaces all elements forworkflows
list.- Parameters:
elements
- An iterable of workflows elements- Returns:
this
builder for use in a chained invocation
-
addAllWorkflows
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder addAllWorkflows(Iterable<? extends WorkflowsResponse> elements)
Adds elements toworkflows
list.- Parameters:
elements
- An iterable of workflows elements- Returns:
this
builder for use in a chained invocation
-
build
public ImmutableWorkflowsRepositoryResponseList build()
Builds a newImmutableWorkflowsRepositoryResponseList
.- Returns:
- An immutable instance of WorkflowsRepositoryResponseList
- Throws:
IllegalStateException
- if any required attributes are missing
-
-