com.airbus_cyber_security.graylog.config.rest.FieldWizard Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graylog-plugin-alert-wizard Show documentation
Show all versions of graylog-plugin-alert-wizard Show documentation
Graylog ${project.artifactId} plugin.
package com.airbus_cyber_security.graylog.config.rest;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
import org.graylog2.database.CollectionName;
import javax.validation.constraints.NotNull;
@AutoValue
@JsonAutoDetect
@JsonIgnoreProperties(ignoreUnknown = true)
@CollectionName("field_wizard")
public abstract class FieldWizard {
@JsonProperty("name")
@NotNull
public abstract String getName();
@JsonProperty("enabled")
public abstract boolean getEnabled();
@JsonCreator
public static FieldWizard create(@JsonProperty("name") String name,
@JsonProperty("enabled") boolean enabled){
return new AutoValue_FieldWizard(name, enabled);
}
}