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.Builderis 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 providedWorkflowsRepositoryResponseListinstance. 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:
thisbuilder for use in a chained invocation
-
totalCount
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder totalCount(int totalCount)
Initializes the value for thetotalCountattribute.- Parameters:
totalCount- The value for totalCount- Returns:
thisbuilder for use in a chained invocation
-
addWorkflows
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder addWorkflows(WorkflowsResponse element)
Adds one element toworkflowslist.- Parameters:
element- A workflows element- Returns:
thisbuilder for use in a chained invocation
-
addWorkflows
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder addWorkflows(WorkflowsResponse... elements)
Adds elements toworkflowslist.- Parameters:
elements- An array of workflows elements- Returns:
thisbuilder for use in a chained invocation
-
workflows
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder workflows(Iterable<? extends WorkflowsResponse> elements)
Sets or replaces all elements forworkflowslist.- Parameters:
elements- An iterable of workflows elements- Returns:
thisbuilder for use in a chained invocation
-
addAllWorkflows
@CanIgnoreReturnValue public final ImmutableWorkflowsRepositoryResponseList.Builder addAllWorkflows(Iterable<? extends WorkflowsResponse> elements)
Adds elements toworkflowslist.- Parameters:
elements- An iterable of workflows elements- Returns:
thisbuilder 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
-
-