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

org.kiwiproject.consul.model.query.Failover Maven / Gradle / Ivy

package org.kiwiproject.consul.model.query;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.immutables.value.Value;

import java.util.List;
import java.util.Optional;

@Value.Immutable
@Value.Style(jakarta = true)
@JsonDeserialize(as = ImmutableFailover.class)
@JsonSerialize(as = ImmutableFailover.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class Failover {

    @JsonProperty("NearestN")
    public abstract Optional getNearestN();

    @JsonProperty("Datacenters")
    public abstract Optional> datacenters();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy