Package com.spotify.github.v3.workflows
Class ImmutableWorkflowsRepositoryResponseList
- java.lang.Object
-
- com.spotify.github.v3.workflows.ImmutableWorkflowsRepositoryResponseList
-
- All Implemented Interfaces:
WorkflowsRepositoryResponseList
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableWorkflowsRepositoryResponseList extends Object implements WorkflowsRepositoryResponseList
Immutable implementation ofWorkflowsRepositoryResponseList
.Use the builder to create immutable instances:
ImmutableWorkflowsRepositoryResponseList.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableWorkflowsRepositoryResponseList.Builder
Builds instances of typeImmutableWorkflowsRepositoryResponseList
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableWorkflowsRepositoryResponseList.Builder
builder()
Creates a builder forImmutableWorkflowsRepositoryResponseList
.static ImmutableWorkflowsRepositoryResponseList
copyOf(WorkflowsRepositoryResponseList instance)
Creates an immutable copy of aWorkflowsRepositoryResponseList
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableWorkflowsRepositoryResponseList
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:totalCount
,workflows
.String
toString()
Prints the immutable valueWorkflowsRepositoryResponseList
with attribute values.int
totalCount()
The count of workflows in the responseImmutableWorkflowsRepositoryResponseList
withTotalCount(int value)
Copy the current immutable object by setting a value for thetotalCount
attribute.ImmutableWorkflowsRepositoryResponseList
withWorkflows(WorkflowsResponse... elements)
Copy the current immutable object with elements that replace the content ofworkflows
.ImmutableWorkflowsRepositoryResponseList
withWorkflows(Iterable<? extends WorkflowsResponse> elements)
Copy the current immutable object with elements that replace the content ofworkflows
.List<WorkflowsResponse>
workflows()
Workflows list.
-
-
-
Method Detail
-
totalCount
public int totalCount()
The count of workflows in the response- Specified by:
totalCount
in interfaceWorkflowsRepositoryResponseList
- Returns:
- the int
-
workflows
public List<WorkflowsResponse> workflows()
Workflows list.- Specified by:
workflows
in interfaceWorkflowsRepositoryResponseList
- Returns:
- the list of workflows
-
withTotalCount
public final ImmutableWorkflowsRepositoryResponseList withTotalCount(int value)
Copy the current immutable object by setting a value for thetotalCount
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for totalCount- Returns:
- A modified copy of the
this
object
-
withWorkflows
public final ImmutableWorkflowsRepositoryResponseList withWorkflows(WorkflowsResponse... elements)
Copy the current immutable object with elements that replace the content ofworkflows
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withWorkflows
public final ImmutableWorkflowsRepositoryResponseList withWorkflows(Iterable<? extends WorkflowsResponse> elements)
Copy the current immutable object with elements that replace the content ofworkflows
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of workflows elements to set- Returns:
- A modified copy of
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableWorkflowsRepositoryResponseList
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:totalCount
,workflows
.
-
toString
public String toString()
Prints the immutable valueWorkflowsRepositoryResponseList
with attribute values.
-
copyOf
public static ImmutableWorkflowsRepositoryResponseList copyOf(WorkflowsRepositoryResponseList instance)
Creates an immutable copy of aWorkflowsRepositoryResponseList
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable WorkflowsRepositoryResponseList instance
-
builder
public static ImmutableWorkflowsRepositoryResponseList.Builder builder()
Creates a builder forImmutableWorkflowsRepositoryResponseList
.ImmutableWorkflowsRepositoryResponseList.builder() .totalCount(int) // required
totalCount
.addWorkflows|addAllWorkflows(com.spotify.github.v3.workflows.WorkflowsResponse) //workflows
elements .build();- Returns:
- A new ImmutableWorkflowsRepositoryResponseList builder
-
-