Package com.spotify.github.v3.workflows
Class ImmutableWorkflowsResponse
- java.lang.Object
-
- com.spotify.github.v3.workflows.ImmutableWorkflowsResponse
-
- All Implemented Interfaces:
WorkflowsResponse
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableWorkflowsResponse extends Object implements WorkflowsResponse
Immutable implementation ofWorkflowsResponse.Use the builder to create immutable instances:
ImmutableWorkflowsResponse.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableWorkflowsResponse.BuilderBuilds instances of typeImmutableWorkflowsResponse.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbadgeUrl()Badge Url string.static ImmutableWorkflowsResponse.Builderbuilder()Creates a builder forImmutableWorkflowsResponse.static ImmutableWorkflowsResponsecopyOf(WorkflowsResponse instance)Creates an immutable copy of aWorkflowsResponsevalue.ZonedDateTimecreatedAt()Created AtZonedDateTimedeletedAt()Deleted Atbooleanequals(Object another)This instance is equal to all instances ofImmutableWorkflowsResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:id,nodeId,name,path,state,createdAt,updatedAt,deletedAt,url,htmlUrl,badgeUrl.StringhtmlUrl()Html url string.intid()The Workflow ID.Stringname()Name.StringnodeId()Node IDStringpath()The workflow path.WorkflowsStatestate()Indicates the state of the workflow.StringtoString()Prints the immutable valueWorkflowsResponsewith attribute values.ZonedDateTimeupdatedAt()Updated AtStringurl()Url string.ImmutableWorkflowsResponsewithBadgeUrl(String value)Copy the current immutable object by setting a value for thebadgeUrlattribute.ImmutableWorkflowsResponsewithCreatedAt(ZonedDateTime value)Copy the current immutable object by setting a value for thecreatedAtattribute.ImmutableWorkflowsResponsewithDeletedAt(ZonedDateTime value)Copy the current immutable object by setting a value for thedeletedAtattribute.ImmutableWorkflowsResponsewithHtmlUrl(String value)Copy the current immutable object by setting a value for thehtmlUrlattribute.ImmutableWorkflowsResponsewithId(int value)Copy the current immutable object by setting a value for theidattribute.ImmutableWorkflowsResponsewithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableWorkflowsResponsewithNodeId(String value)Copy the current immutable object by setting a value for thenodeIdattribute.ImmutableWorkflowsResponsewithPath(String value)Copy the current immutable object by setting a value for thepathattribute.ImmutableWorkflowsResponsewithState(WorkflowsState value)Copy the current immutable object by setting a value for thestateattribute.ImmutableWorkflowsResponsewithUpdatedAt(ZonedDateTime value)Copy the current immutable object by setting a value for theupdatedAtattribute.ImmutableWorkflowsResponsewithUrl(String value)Copy the current immutable object by setting a value for theurlattribute.
-
-
-
Method Detail
-
id
public int id()
The Workflow ID.- Specified by:
idin interfaceWorkflowsResponse- Returns:
- the int
-
nodeId
public String nodeId()
Node ID- Specified by:
nodeIdin interfaceWorkflowsResponse
-
name
public String name()
Name.- Specified by:
namein interfaceWorkflowsResponse
-
path
public String path()
The workflow path.- Specified by:
pathin interfaceWorkflowsResponse
-
state
public WorkflowsState state()
Indicates the state of the workflow.- Specified by:
statein interfaceWorkflowsResponse
-
createdAt
public ZonedDateTime createdAt()
Created At- Specified by:
createdAtin interfaceWorkflowsResponse- Returns:
- The time when the workflow was created
-
updatedAt
public ZonedDateTime updatedAt()
Updated At- Specified by:
updatedAtin interfaceWorkflowsResponse- Returns:
- The time when the workflow was updated
-
deletedAt
@Nullable public ZonedDateTime deletedAt()
Deleted At- Specified by:
deletedAtin interfaceWorkflowsResponse- Returns:
- The time when the workflow was deleted
-
url
public String url()
Url string.- Specified by:
urlin interfaceWorkflowsResponse- Returns:
- the string
-
htmlUrl
public String htmlUrl()
Html url string.- Specified by:
htmlUrlin interfaceWorkflowsResponse- Returns:
- the string
-
badgeUrl
public String badgeUrl()
Badge Url string.- Specified by:
badgeUrlin interfaceWorkflowsResponse- Returns:
- the string
-
withId
public final ImmutableWorkflowsResponse withId(int value)
Copy the current immutable object by setting a value for theidattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withNodeId
public final ImmutableWorkflowsResponse withNodeId(String value)
Copy the current immutable object by setting a value for thenodeIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for nodeId- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableWorkflowsResponse withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withPath
public final ImmutableWorkflowsResponse withPath(String value)
Copy the current immutable object by setting a value for thepathattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for path- Returns:
- A modified copy of the
thisobject
-
withState
public final ImmutableWorkflowsResponse withState(WorkflowsState value)
Copy the current immutable object by setting a value for thestateattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for state- Returns:
- A modified copy of the
thisobject
-
withCreatedAt
public final ImmutableWorkflowsResponse withCreatedAt(ZonedDateTime value)
Copy the current immutable object by setting a value for thecreatedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for createdAt- Returns:
- A modified copy of the
thisobject
-
withUpdatedAt
public final ImmutableWorkflowsResponse withUpdatedAt(ZonedDateTime value)
Copy the current immutable object by setting a value for theupdatedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updatedAt- Returns:
- A modified copy of the
thisobject
-
withDeletedAt
public final ImmutableWorkflowsResponse withDeletedAt(@Nullable ZonedDateTime value)
Copy the current immutable object by setting a value for thedeletedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for deletedAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withUrl
public final ImmutableWorkflowsResponse withUrl(String value)
Copy the current immutable object by setting a value for theurlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url- Returns:
- A modified copy of the
thisobject
-
withHtmlUrl
public final ImmutableWorkflowsResponse withHtmlUrl(String value)
Copy the current immutable object by setting a value for thehtmlUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for htmlUrl- Returns:
- A modified copy of the
thisobject
-
withBadgeUrl
public final ImmutableWorkflowsResponse withBadgeUrl(String value)
Copy the current immutable object by setting a value for thebadgeUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for badgeUrl- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableWorkflowsResponsethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,nodeId,name,path,state,createdAt,updatedAt,deletedAt,url,htmlUrl,badgeUrl.
-
toString
public String toString()
Prints the immutable valueWorkflowsResponsewith attribute values.
-
copyOf
public static ImmutableWorkflowsResponse copyOf(WorkflowsResponse instance)
Creates an immutable copy of aWorkflowsResponsevalue. 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 WorkflowsResponse instance
-
builder
public static ImmutableWorkflowsResponse.Builder builder()
Creates a builder forImmutableWorkflowsResponse.ImmutableWorkflowsResponse.builder() .id(int) // requiredid.nodeId(String) // requirednodeId.name(String) // requiredname.path(String) // requiredpath.state(com.spotify.github.v3.workflows.WorkflowsState) // requiredstate.createdAt(java.time.ZonedDateTime) // requiredcreatedAt.updatedAt(java.time.ZonedDateTime) // requiredupdatedAt.deletedAt(java.time.ZonedDateTime | null) // nullabledeletedAt.url(String) // requiredurl.htmlUrl(String) // requiredhtmlUrl.badgeUrl(String) // requiredbadgeUrl.build();- Returns:
- A new ImmutableWorkflowsResponse builder
-
-