Class GHDeployment

    • Field Detail

      • payload

        protected Object payload
      • environment

        protected String environment
      • description

        protected String description
      • statuses_url

        protected String statuses_url
      • repository_url

        protected String repository_url
      • creator

        protected GHUser creator
    • Constructor Detail

      • GHDeployment

        public GHDeployment()
    • Method Detail

      • getStatusesUrl

        public URL getStatusesUrl()
        Gets statuses url.
        Returns:
        the statuses url
      • getRepositoryUrl

        public URL getRepositoryUrl()
        Gets repository url.
        Returns:
        the repository url
      • getTask

        public String getTask()
        Gets task.
        Returns:
        the task
      • getPayload

        public String getPayload()
        Gets payload. NOTE: only use this method if you can guarantee the payload will be a simple string, otherwise use getPayloadObject().
        Returns:
        the payload
      • getPayloadMap

        public Map<String,​Object> getPayloadMap()
        Gets payload. NOTE: only use this method if you can guarantee the payload will be a JSON object (Map), otherwise use getPayloadObject().
        Returns:
        the payload
      • getPayloadObject

        public Object getPayloadObject()
        Gets payload without assuming its type. It could be a String or a Map.
        Returns:
        the payload
      • getEnvironment

        public String getEnvironment()
        Gets environment.
        Returns:
        the environment
      • getRef

        public String getRef()
        Gets ref.
        Returns:
        the ref
      • getSha

        public String getSha()
        Gets sha.
        Returns:
        the sha
      • getHtmlUrl

        public URL getHtmlUrl()
        Deprecated.
        This object has no HTML URL.
        Description copied from class: GHObject
        Gets html url.
        Specified by:
        getHtmlUrl in class GHObject
        Returns:
        URL of this object for humans, which renders some HTML.