mn.foreman.api.model.CommandDone 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.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
import java.util.Map;
/**
* A {@link CommandDone} represents all of the information related to a Pickaxe
* command finishing.
*/
@Data
@Builder
public class CommandDone
implements Command {
/** The command. */
@JsonProperty("command")
private final String command;
/** The result. */
@JsonProperty("result")
private final Map result;
/** The status code. */
@JsonProperty("status")
private final Status status;
/** The response. */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public static class Response {
/** The command status. */
@JsonProperty("status")
public String status;
}
/** The status. */
@Data
@Builder
public static class Status {
/** A detailed message. */
@JsonProperty("details")
public String details;
/** The message. */
@JsonProperty("message")
public String message;
/** The type. */
@JsonProperty("type")
public DoneStatus type;
}
}