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

org.heigit.ohsome.ohsomeapi.output.metadataresponse.MetadataResponse Maven / Gradle / Ivy

There is a newer version: 1.10.4
Show newest version
package org.heigit.ohsome.ohsomeapi.output.metadataresponse;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.annotations.ApiModelProperty;
import org.heigit.ohsome.ohsomeapi.output.dataaggregationresponse.Attribution;

/**
 * Represents the JSON response object for the /metadata request. It contains information about the
 * attribution, the version of the API and the
 * {@link org.heigit.ohsome.ohsomeapi.output.metadataresponse.ExtractRegion ExtractRegion}.
 */
@JsonInclude(Include.NON_NULL)
public class MetadataResponse {
  @ApiModelProperty(notes = "License and copyright info", required = true, position = 0)
  private Attribution attribution;
  @ApiModelProperty(notes = "Specific version of this API", required = true, position = 1)
  private String apiVersion;
  @ApiModelProperty(notes = "Maximal response timeout in seconds", required = true, position = 2)
  private double timeout;
  @ApiModelProperty(notes = "Extract region object holding the spatial|temporal extent + attribution", required = true, position = 3)
  private ExtractRegion extractRegion;

  @java.lang.SuppressWarnings("all")
  public Attribution getAttribution() {
    return this.attribution;
  }

  @java.lang.SuppressWarnings("all")
  public String getApiVersion() {
    return this.apiVersion;
  }

  @java.lang.SuppressWarnings("all")
  public double getTimeout() {
    return this.timeout;
  }

  @java.lang.SuppressWarnings("all")
  public ExtractRegion getExtractRegion() {
    return this.extractRegion;
  }

  @java.lang.SuppressWarnings("all")
  public MetadataResponse(final Attribution attribution, final String apiVersion, final double timeout, final ExtractRegion extractRegion) {
    this.attribution = attribution;
    this.apiVersion = apiVersion;
    this.timeout = timeout;
    this.extractRegion = extractRegion;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy