001/*
002 * Licensed under the Apache License, Version 2.0 (the "License");
003 * you may not use this file except in compliance with the License.
004 * You may obtain a copy of the License at
005 *
006 *     http://www.apache.org/licenses/LICENSE-2.0
007 *
008 * Unless required by applicable law or agreed to in writing, software
009 * distributed under the License is distributed on an "AS IS" BASIS,
010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
011 * See the License for the specific language governing permissions and
012 * limitations under the License.
013 */
014package org.gbif.api.model.registry;
015
016import java.io.Serializable;
017import java.util.UUID;
018
019import io.swagger.v3.oas.annotations.media.Schema;
020import lombok.Data;
021
022/** Represents the information about the usage of one organization in an occurrence download. */
023@SuppressWarnings("unused")
024@Data
025public class OrganizationOccurrenceDownloadUsage implements Serializable {
026
027  @Schema(
028      description =
029          "The GBIF key assigned to the download.\n\n"
030              + "Note that citations should instead use the download DOI.")
031  private String downloadKey;
032
033  @Schema(description = "The GBIF organization key.")
034  private UUID organizationKey;
035
036  @Schema(description = "The title of the organization, at the time the download was created.")
037  private String organizationTitle;
038
039  @Schema(description = "The number of records from this organization included in the download.")
040  private long numberRecords;
041
042  @Schema(description = "The publishing country code of the organization.")
043  private String publishingCountryCode;
044}