Class RestDownloadHistory

java.lang.Object
de.dlr.proseo.interfaces.rest.model.RestDownloadHistory
All Implemented Interfaces:
Serializable

public class RestDownloadHistory extends Object implements Serializable
See Also:
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      See Also:
    • username

      protected String username
      The user who initiated the download
    • productFileName

      protected String productFileName
      The file name of the downloaded ProductFile
    • productFileSize

      protected Long productFileSize
      The product file size in bytes
    • dateTime

      protected String dateTime
      The time of the download in orbit format (YYYY-MM-DDThh:mm:ss.SSSSSS)
  • Constructor Details

    • RestDownloadHistory

      public RestDownloadHistory()
      Creates a new RestDownloadHistory.
    • RestDownloadHistory

      public RestDownloadHistory(String username, String productFileName, Long productFileSize, String dateTime)
      Creates a new RestDownloadHistory.
  • Method Details

    • getUsername

      @NotNull public String getUsername()
      Returns the username.
      Returns:
      username
    • setUsername

      public void setUsername(String username)
      Set the username.
      Parameters:
      username - the new username
    • getProductFileName

      @NotNull public String getProductFileName()
      Returns the productFileName.
      Returns:
      productFileName
    • setProductFileName

      public void setProductFileName(String productFileName)
      Set the productFileName.
      Parameters:
      productFileName - the new productFileName
    • getProductFileSize

      @NotNull public Long getProductFileSize()
      Returns the productFileSize.
      Returns:
      productFileSize
    • setProductFileSize

      public void setProductFileSize(Long productFileSize)
      Set the productFileSize.
      Parameters:
      productFileSize - the new productFileSize
    • getDateTime

      @NotNull @Pattern(regexp="^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d.\\d{6}$") public String getDateTime()
      Returns the dateTime.
      Returns:
      dateTime
    • setDateTime

      public void setDateTime(String dateTime)
      Set the dateTime.
      Parameters:
      dateTime - the new dateTime
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object