Class Webhook

java.lang.Object
ink.icoding.github4j.model.Webhook

public class Webhook extends Object
GitHub Webhook。

Webhook 允许用户在仓库或组织发生特定事件时接收 HTTP 回调通知。 可以配置监听的事件类型、回调 URL 等参数。

See Also:
  • Constructor Details

    • Webhook

      public Webhook()
  • Method Details

    • getId

      public long getId()
    • setId

      public void setId(long id)
    • getNodeId

      public String getNodeId()
    • setNodeId

      public void setNodeId(String nodeId)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • isActive

      public boolean isActive()
    • setActive

      public void setActive(boolean active)
    • getEvents

      public List<String> getEvents()
    • setEvents

      public void setEvents(List<String> events)
    • getConfig

      public Map<String,Object> getConfig()
    • setConfig

      public void setConfig(Map<String,Object> config)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getTestUrl

      public String getTestUrl()
    • setTestUrl

      public void setTestUrl(String testUrl)
    • getPingUrl

      public String getPingUrl()
    • setPingUrl

      public void setPingUrl(String pingUrl)
    • getDeliveriesUrl

      public String getDeliveriesUrl()
    • setDeliveriesUrl

      public void setDeliveriesUrl(String deliveriesUrl)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getCreatedAt

      public Instant getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
    • getUpdatedAt

      public Instant getUpdatedAt()
    • setUpdatedAt

      public void setUpdatedAt(Instant updatedAt)