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 class
ImmutableWorkflowsResponse.Builder
Builds instances of typeImmutableWorkflowsResponse
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
badgeUrl()
Badge Url string.static ImmutableWorkflowsResponse.Builder
builder()
Creates a builder forImmutableWorkflowsResponse
.static ImmutableWorkflowsResponse
copyOf(WorkflowsResponse instance)
Creates an immutable copy of aWorkflowsResponse
value.ZonedDateTime
createdAt()
Created AtZonedDateTime
deletedAt()
Deleted Atboolean
equals(Object another)
This instance is equal to all instances ofImmutableWorkflowsResponse
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,nodeId
,name
,path
,state
,createdAt
,updatedAt
,deletedAt
,url
,htmlUrl
,badgeUrl
.String
htmlUrl()
Html url string.int
id()
The Workflow ID.String
name()
Name.String
nodeId()
Node IDString
path()
The workflow path.WorkflowsState
state()
Indicates the state of the workflow.String
toString()
Prints the immutable valueWorkflowsResponse
with attribute values.ZonedDateTime
updatedAt()
Updated AtString
url()
Url string.ImmutableWorkflowsResponse
withBadgeUrl(String value)
Copy the current immutable object by setting a value for thebadgeUrl
attribute.ImmutableWorkflowsResponse
withCreatedAt(ZonedDateTime value)
Copy the current immutable object by setting a value for thecreatedAt
attribute.ImmutableWorkflowsResponse
withDeletedAt(ZonedDateTime value)
Copy the current immutable object by setting a value for thedeletedAt
attribute.ImmutableWorkflowsResponse
withHtmlUrl(String value)
Copy the current immutable object by setting a value for thehtmlUrl
attribute.ImmutableWorkflowsResponse
withId(int value)
Copy the current immutable object by setting a value for theid
attribute.ImmutableWorkflowsResponse
withName(String value)
Copy the current immutable object by setting a value for thename
attribute.ImmutableWorkflowsResponse
withNodeId(String value)
Copy the current immutable object by setting a value for thenodeId
attribute.ImmutableWorkflowsResponse
withPath(String value)
Copy the current immutable object by setting a value for thepath
attribute.ImmutableWorkflowsResponse
withState(WorkflowsState value)
Copy the current immutable object by setting a value for thestate
attribute.ImmutableWorkflowsResponse
withUpdatedAt(ZonedDateTime value)
Copy the current immutable object by setting a value for theupdatedAt
attribute.ImmutableWorkflowsResponse
withUrl(String value)
Copy the current immutable object by setting a value for theurl
attribute.
-
-
-
Method Detail
-
id
public int id()
The Workflow ID.- Specified by:
id
in interfaceWorkflowsResponse
- Returns:
- the int
-
nodeId
public String nodeId()
Node ID- Specified by:
nodeId
in interfaceWorkflowsResponse
-
name
public String name()
Name.- Specified by:
name
in interfaceWorkflowsResponse
-
path
public String path()
The workflow path.- Specified by:
path
in interfaceWorkflowsResponse
-
state
public WorkflowsState state()
Indicates the state of the workflow.- Specified by:
state
in interfaceWorkflowsResponse
-
createdAt
public ZonedDateTime createdAt()
Created At- Specified by:
createdAt
in interfaceWorkflowsResponse
- Returns:
- The time when the workflow was created
-
updatedAt
public ZonedDateTime updatedAt()
Updated At- Specified by:
updatedAt
in interfaceWorkflowsResponse
- Returns:
- The time when the workflow was updated
-
deletedAt
@Nullable public ZonedDateTime deletedAt()
Deleted At- Specified by:
deletedAt
in interfaceWorkflowsResponse
- Returns:
- The time when the workflow was deleted
-
url
public String url()
Url string.- Specified by:
url
in interfaceWorkflowsResponse
- Returns:
- the string
-
htmlUrl
public String htmlUrl()
Html url string.- Specified by:
htmlUrl
in interfaceWorkflowsResponse
- Returns:
- the string
-
badgeUrl
public String badgeUrl()
Badge Url string.- Specified by:
badgeUrl
in interfaceWorkflowsResponse
- Returns:
- the string
-
withId
public final ImmutableWorkflowsResponse withId(int value)
Copy the current immutable object by setting a value for theid
attribute. 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
this
object
-
withNodeId
public final ImmutableWorkflowsResponse withNodeId(String value)
Copy the current immutable object by setting a value for thenodeId
attribute. 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
this
object
-
withName
public final ImmutableWorkflowsResponse withName(String value)
Copy the current immutable object by setting a value for thename
attribute. 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
this
object
-
withPath
public final ImmutableWorkflowsResponse withPath(String value)
Copy the current immutable object by setting a value for thepath
attribute. 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
this
object
-
withState
public final ImmutableWorkflowsResponse withState(WorkflowsState value)
Copy the current immutable object by setting a value for thestate
attribute. 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
this
object
-
withCreatedAt
public final ImmutableWorkflowsResponse withCreatedAt(ZonedDateTime value)
Copy the current immutable object by setting a value for thecreatedAt
attribute. 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
this
object
-
withUpdatedAt
public final ImmutableWorkflowsResponse withUpdatedAt(ZonedDateTime value)
Copy the current immutable object by setting a value for theupdatedAt
attribute. 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
this
object
-
withDeletedAt
public final ImmutableWorkflowsResponse withDeletedAt(@Nullable ZonedDateTime value)
Copy the current immutable object by setting a value for thedeletedAt
attribute. 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
this
object
-
withUrl
public final ImmutableWorkflowsResponse withUrl(String value)
Copy the current immutable object by setting a value for theurl
attribute. 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
this
object
-
withHtmlUrl
public final ImmutableWorkflowsResponse withHtmlUrl(String value)
Copy the current immutable object by setting a value for thehtmlUrl
attribute. 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
this
object
-
withBadgeUrl
public final ImmutableWorkflowsResponse withBadgeUrl(String value)
Copy the current immutable object by setting a value for thebadgeUrl
attribute. 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
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableWorkflowsResponse
that 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 valueWorkflowsResponse
with attribute values.
-
copyOf
public static ImmutableWorkflowsResponse copyOf(WorkflowsResponse instance)
Creates an immutable copy of aWorkflowsResponse
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 WorkflowsResponse instance
-
builder
public static ImmutableWorkflowsResponse.Builder builder()
Creates a builder forImmutableWorkflowsResponse
.ImmutableWorkflowsResponse.builder() .id(int) // required
id
.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
-
-