mn.foreman.api.endpoints.StatusSubmit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-api Show documentation
Show all versions of java-api Show documentation
A library for interacting with the Foreman API.
package mn.foreman.api.endpoints;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The action submit statuses. */
public enum StatusSubmit {
/** Action was accepted. */
@JsonProperty("okay")
OKAY;
/**
* Returns whether or not the action was accepted.
*
* @return Whether or not the action was accepted.
*/
public boolean isSuccess() {
return (this == OKAY);
}
}