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

com.frightanic.smn.OpenDataSmnConfiguration Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package com.frightanic.smn;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;

@Getter
@Setter
public class OpenDataSmnConfiguration extends Configuration {
  @NotEmpty
  @JsonProperty("data.url")
  private String dataUrl;

  @NotEmpty
  @JsonProperty("data.cacheTimeToLiveMinutes")
  private String dataCacheTimeToLiveMinutes;

  @NotEmpty
  @JsonProperty("responseCacheTimeToLiveMinutes")
  private String responseCacheTimeToLiveMinutes;

  @JsonProperty("swaggerPort")
  private String swaggerPort;

  public Short getDataCacheTimeToLiveMinutes() {
    return Short.valueOf(dataCacheTimeToLiveMinutes);
  }

  public Short getResponseCacheTimeToLiveMinutes() {
    return Short.valueOf(responseCacheTimeToLiveMinutes);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy