Package com.jcabi.github
Class Statuses.StatusCreate
java.lang.Object
com.jcabi.github.Statuses.StatusCreate
- All Implemented Interfaces:
JsonReadable
- Enclosing interface:
- Statuses
Data to use when creating a new GitHub commit status.
- Since:
- 0.24
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.json.JsonObjectjson()Describe it in a JSON object.withContext(com.google.common.base.Optional<String> cntxt) Returns a StatusCreate with the given context.withDescription(String desc) Returns a StatusCreate with the given description.withState(Status.State stat) Returns a StatusCreate with the given state.withTargetUrl(com.google.common.base.Optional<String> target) Returns a StatusCreate with the given target URL.
-
Constructor Details
-
StatusCreate
Public ctor.- Parameters:
stat- State
-
-
Method Details
-
withState
Returns a StatusCreate with the given state.- Parameters:
stat- State- Returns:
- StatusCreate
-
withDescription
Returns a StatusCreate with the given description.- Parameters:
desc- Description- Returns:
- StatusCreate
-
withContext
Returns a StatusCreate with the given context.- Parameters:
cntxt- Context- Returns:
- StatusCreate
-
withTargetUrl
Returns a StatusCreate with the given target URL.- Parameters:
target- Target URL- Returns:
- StatusCreate
-
json
public jakarta.json.JsonObject json()Description copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
-