Class Statuses.StatusCreate

java.lang.Object
com.jcabi.github.Statuses.StatusCreate
All Implemented Interfaces:
JsonReadable
Enclosing interface:
Statuses

@Loggable(1) public static final class Statuses.StatusCreate extends Object implements JsonReadable
Data to use when creating a new GitHub commit status.
Since:
0.24
See Also:
  • Constructor Details

    • StatusCreate

      public StatusCreate(Status.State stat)
      Public ctor.
      Parameters:
      stat - State
  • Method Details

    • withState

      public Statuses.StatusCreate withState(Status.State stat)
      Returns a StatusCreate with the given state.
      Parameters:
      stat - State
      Returns:
      StatusCreate
    • withDescription

      public Statuses.StatusCreate withDescription(String desc)
      Returns a StatusCreate with the given description.
      Parameters:
      desc - Description
      Returns:
      StatusCreate
    • withContext

      public Statuses.StatusCreate withContext(com.google.common.base.Optional<String> cntxt)
      Returns a StatusCreate with the given context.
      Parameters:
      cntxt - Context
      Returns:
      StatusCreate
    • withTargetUrl

      public Statuses.StatusCreate withTargetUrl(com.google.common.base.Optional<String> target)
      Returns a StatusCreate with the given target URL.
      Parameters:
      target - Target URL
      Returns:
      StatusCreate
    • json

      public jakarta.json.JsonObject json()
      Description copied from interface: JsonReadable
      Describe it in a JSON object.
      Specified by:
      json in interface JsonReadable
      Returns:
      JSON object