package io.flow.github.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Boolean; import java.lang.Long; import java.lang.String; import java.util.Date; import java.util.List; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.5.20 * User agent: apibuilder app.apibuilder.io/flow/github/0.5.20/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * See https://developer.github.com/v3/repos/hooks/#create-a-hook */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Hook { @NotNull protected Long id; @NotNull protected String url; @NotNull protected String testUrl; @NotNull protected String pingUrl; @NotNull protected String name; @NotNull protected List events; @NotNull protected Boolean active; @NotNull protected HookConfig config; @NotNull protected Date updatedAt; @NotNull protected Date createdAt; public Hook(Long id, String url, String testUrl, String pingUrl, String name, List events, Boolean active, HookConfig config, Date updatedAt, Date createdAt) { this.id = id; this.url = url; this.testUrl = testUrl; this.pingUrl = pingUrl; this.name = name; this.events = events; this.active = active; this.config = config; this.updatedAt = updatedAt; this.createdAt = createdAt; } public Hook() { } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getTestUrl() { return testUrl; } public void setTestUrl(String testUrl) { this.testUrl = testUrl; } public String getPingUrl() { return pingUrl; } public void setPingUrl(String pingUrl) { this.pingUrl = pingUrl; } public String getName() { return name; } public void setName(String name) { this.name = name; } public List getEvents() { return events; } public void setEvents(List events) { this.events = events; } public Boolean getActive() { return active; } public void setActive(Boolean active) { this.active = active; } public HookConfig getConfig() { return config; } public void setConfig(HookConfig config) { this.config = config; } public Date getUpdatedAt() { return updatedAt; } public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; } public Date getCreatedAt() { return createdAt; } public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; } }