Class FileDTO


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]",
               comments="Generator version: 7.4.0")
    public class FileDTO
    extends Object
    FileDTO
    • Constructor Detail

      • FileDTO

        public FileDTO()
    • Method Detail

      • getCreatedAt

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid OffsetDateTime getCreatedAt()
        Get createdAt
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
      • getFileName

        @Nonnull
        @NotNull
        public @NotNull String getFileName()
        Get fileName
        Returns:
        fileName
      • setFileName

        public void setFileName​(String fileName)
      • getId

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid UUID getId()
        Get id
        Returns:
        id
      • setId

        public void setId​(UUID id)
      • setLink

        public void setLink​(String link)
      • getMetadata

        @Nullable
        public Object getMetadata()
        Get metadata
        Returns:
        metadata
      • setMetadata

        public void setMetadata​(Object metadata)
      • getS3Url

        @Nonnull
        @NotNull
        public @NotNull String getS3Url()
        Get s3Url
        Returns:
        s3Url
      • setS3Url

        public void setS3Url​(String s3Url)
      • getSize

        @Nonnull
        @NotNull
        public @NotNull Long getSize()
        Get size
        Returns:
        size
      • setSize

        public void setSize​(Long size)
      • getUpdatedAt

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid OffsetDateTime getUpdatedAt()
        Get updatedAt
        Returns:
        updatedAt
      • setUpdatedAt

        public void setUpdatedAt​(OffsetDateTime updatedAt)
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to FileDTO
      • fromJson

        public static FileDTO fromJson​(String jsonString)
                                throws IOException
        Create an instance of FileDTO given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of FileDTO
        Throws:
        IOException - if the JSON string is invalid with respect to FileDTO
      • toJson

        public String toJson()
        Convert an instance of FileDTO to an JSON string
        Returns:
        JSON string