
com.hubspot.singularity.SingularityDeployUpdate Maven / Gradle / Ivy
The newest version!
package com.hubspot.singularity;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;
public class SingularityDeployUpdate {
public enum DeployEventType {
STARTING, FINISHED;
}
private final SingularityDeployMarker deployMarker;
private final Optional deploy;
private final DeployEventType eventType;
private final Optional deployResult;
@JsonCreator
public SingularityDeployUpdate(@JsonProperty("deployMarker") SingularityDeployMarker deployMarker, @JsonProperty("deploy") Optional deploy, @JsonProperty("eventType") DeployEventType eventType, @JsonProperty("deployResult") Optional deployResult) {
this.deployMarker = deployMarker;
this.deploy = deploy;
this.eventType = eventType;
this.deployResult = deployResult;
}
public SingularityDeployMarker getDeployMarker() {
return deployMarker;
}
public Optional getDeploy() {
return deploy;
}
public DeployEventType getEventType() {
return eventType;
}
public Optional getDeployResult() {
return deployResult;
}
@Override
public String toString() {
return "SingularityDeployWebhook [deployMarker=" + deployMarker + ", deploy=" + deploy + ", eventType=" + eventType + ", deployResult=" + deployResult + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy