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

com.grafana.foundation.common.FrameGeometrySource Maven / Gradle / Ivy

There is a newer version: 11.3.0-1730898216
Show newest version
// Code generated - EDITING IS FUTILE. DO NOT EDIT.

package com.grafana.foundation.common;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class FrameGeometrySource {
    @JsonProperty("mode")
    public FrameGeometrySourceMode mode;
    // Field mappings
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("geohash")
    public String geohash;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("latitude")
    public String latitude;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("longitude")
    public String longitude;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("wkt")
    public String wkt;
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("lookup")
    public String lookup;
    // Path to Gazetteer
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("gazetteer")
    public String gazetteer;
    
    public String toJSON() throws JsonProcessingException {
        ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
        return ow.writeValueAsString(this);
    }

    
    public static class Builder implements com.grafana.foundation.cog.Builder {
        private final FrameGeometrySource internal;
        
        public Builder() {
            this.internal = new FrameGeometrySource();
        }
    public Builder mode(FrameGeometrySourceMode mode) {
    this.internal.mode = mode;
        return this;
    }
    
    public Builder geohash(String geohash) {
    this.internal.geohash = geohash;
        return this;
    }
    
    public Builder latitude(String latitude) {
    this.internal.latitude = latitude;
        return this;
    }
    
    public Builder longitude(String longitude) {
    this.internal.longitude = longitude;
        return this;
    }
    
    public Builder wkt(String wkt) {
    this.internal.wkt = wkt;
        return this;
    }
    
    public Builder lookup(String lookup) {
    this.internal.lookup = lookup;
        return this;
    }
    
    public Builder gazetteer(String gazetteer) {
    this.internal.gazetteer = gazetteer;
        return this;
    }
    public FrameGeometrySource build() {
            return this.internal;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy