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 classImmutableWorkflowsRepositoryResponseList.BuilderBuilds instances of typeImmutableWorkflowsRepositoryResponseList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableWorkflowsRepositoryResponseList.Builderbuilder()Creates a builder forImmutableWorkflowsRepositoryResponseList.static ImmutableWorkflowsRepositoryResponseListcopyOf(WorkflowsRepositoryResponseList instance)Creates an immutable copy of aWorkflowsRepositoryResponseListvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableWorkflowsRepositoryResponseListthat have equal attribute values.inthashCode()Computes a hash code from attributes:totalCount,workflows.StringtoString()Prints the immutable valueWorkflowsRepositoryResponseListwith attribute values.inttotalCount()The count of workflows in the responseImmutableWorkflowsRepositoryResponseListwithTotalCount(int value)Copy the current immutable object by setting a value for thetotalCountattribute.ImmutableWorkflowsRepositoryResponseListwithWorkflows(WorkflowsResponse... elements)Copy the current immutable object with elements that replace the content ofworkflows.ImmutableWorkflowsRepositoryResponseListwithWorkflows(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:
totalCountin interfaceWorkflowsRepositoryResponseList- Returns:
- the int
-
workflows
public List<WorkflowsResponse> workflows()
Workflows list.- Specified by:
workflowsin interfaceWorkflowsRepositoryResponseList- Returns:
- the list of workflows
-
withTotalCount
public final ImmutableWorkflowsRepositoryResponseList withTotalCount(int value)
Copy the current immutable object by setting a value for thetotalCountattribute. 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
thisobject
-
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
thisobject
-
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
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableWorkflowsRepositoryResponseListthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:totalCount,workflows.
-
toString
public String toString()
Prints the immutable valueWorkflowsRepositoryResponseListwith attribute values.
-
copyOf
public static ImmutableWorkflowsRepositoryResponseList copyOf(WorkflowsRepositoryResponseList instance)
Creates an immutable copy of aWorkflowsRepositoryResponseListvalue. 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) // requiredtotalCount.addWorkflows|addAllWorkflows(com.spotify.github.v3.workflows.WorkflowsResponse) //workflowselements .build();- Returns:
- A new ImmutableWorkflowsRepositoryResponseList builder
-
-