org.teamapps.dto.UiMapConfig Maven / Gradle / Ivy
package org.teamapps.dto;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;
/**
* THIS IS GENERATED CODE!
* PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type", defaultImpl = UiMapConfig.class)
public class UiMapConfig implements UiObject {
protected String urlTemplate;
protected String id = "";
protected int minZoom = 1;
protected int maxZoom = 18;
protected String attribution = "";
public UiMapConfig() {
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_MAP_CONFIG;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("urlTemplate=" + urlTemplate).append(", ")
.append("minZoom=" + minZoom).append(", ")
.append("maxZoom=" + maxZoom).append(", ")
.append("attribution=" + attribution)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("urlTemplate")
public String getUrlTemplate() {
return urlTemplate;
}
@com.fasterxml.jackson.annotation.JsonGetter("id")
public String getId() {
return id;
}
@com.fasterxml.jackson.annotation.JsonGetter("minZoom")
public int getMinZoom() {
return minZoom;
}
@com.fasterxml.jackson.annotation.JsonGetter("maxZoom")
public int getMaxZoom() {
return maxZoom;
}
@com.fasterxml.jackson.annotation.JsonGetter("attribution")
public String getAttribution() {
return attribution;
}
@com.fasterxml.jackson.annotation.JsonSetter("urlTemplate")
public UiMapConfig setUrlTemplate(String urlTemplate) {
this.urlTemplate = urlTemplate;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiMapConfig setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("minZoom")
public UiMapConfig setMinZoom(int minZoom) {
this.minZoom = minZoom;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("maxZoom")
public UiMapConfig setMaxZoom(int maxZoom) {
this.maxZoom = maxZoom;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attribution")
public UiMapConfig setAttribution(String attribution) {
this.attribution = attribution;
return this;
}
}