
org.sourcelab.github.client.objects.Workflow Maven / Gradle / Ivy
The newest version!
package org.sourcelab.github.client.objects;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.ZonedDateTime;
public class Workflow {
private final long id;
private final String name;
private final String path;
private final WorkflowState state;
private final ZonedDateTime createdAt;
private final ZonedDateTime updatedAt;
private final String htmlUrl;
/**
* Constructor.
*/
@JsonCreator
public Workflow(
@JsonProperty("id") final long id,
@JsonProperty("name") final String name,
@JsonProperty("path") final String path,
@JsonProperty("state") final WorkflowState state,
@JsonProperty("created_at") final ZonedDateTime createdAt,
@JsonProperty("updated_at") final ZonedDateTime updatedAt,
@JsonProperty("html_url") final String htmlUrl
) {
this.id = id;
this.name = name;
this.path = path;
this.state = state;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.htmlUrl = htmlUrl;
}
public long getId() {
return id;
}
public String getName() {
return name;
}
public String getPath() {
return path;
}
public WorkflowState getState() {
return state;
}
public ZonedDateTime getCreatedAt() {
return createdAt;
}
public ZonedDateTime getUpdatedAt() {
return updatedAt;
}
public String getHtmlUrl() {
return htmlUrl;
}
@Override
public String toString() {
return "Workflow{"
+ "\n\tid=" + id
+ "\n\tname='" + name + '\''
+ "\n\tpath='" + path + '\''
+ "\n\tstate='" + state + '\''
+ "\n\tcreatedAt=" + createdAt
+ "\n\tupdatedAt=" + updatedAt
+ "\n\thtmlUrl='" + htmlUrl + '\''
+ "\n}";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy