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

org.heigit.ohsome.ohsomeapi.output.Metadata Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.annotations.ApiModelProperty;

/**
 * Represents the metadata JSON object containing the execution time, a description of the result
 * values, as well as the request URL.
 */
@JsonInclude(Include.NON_NULL)
public class Metadata {
  @ApiModelProperty(notes = "Time the server needed to execute the request", required = true)
  private Long executionTime;
  @ApiModelProperty(notes = "Text describing the result in a sentence", required = true)
  private String description;
  @ApiModelProperty(notes = "Request URL to which this whole output JSON was generated", required = true)
  private String requestUrl;

  @java.lang.SuppressWarnings("all")
  public Long getExecutionTime() {
    return this.executionTime;
  }

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

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

  @java.lang.SuppressWarnings("all")
  public Metadata(final Long executionTime, final String description, final String requestUrl) {
    this.executionTime = executionTime;
    this.description = description;
    this.requestUrl = requestUrl;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy