All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.airbus_cyber_security.graylog.config.rest.FieldWizard Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
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);
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy