Package org.openapitools.client.model
Class FileDTO
- java.lang.Object
-
- org.openapitools.client.model.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileDTO.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_FILE_NAMEstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_S3_URLstatic StringSERIALIZED_NAME_SIZEstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description FileDTO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FileDTOcreatedAt(OffsetDateTime createdAt)booleanequals(Object o)FileDTOfileName(String fileName)static FileDTOfromJson(String jsonString)Create an instance of FileDTO given an JSON string@NotNull @Valid OffsetDateTimegetCreatedAt()Get createdAt@NotNull StringgetFileName()Get fileName@NotNull @Valid UUIDgetId()Get idStringgetLink()Get linkObjectgetMetadata()Get metadata@NotNull StringgetS3Url()Get s3Url@NotNull LonggetSize()Get size@NotNull @Valid OffsetDateTimegetUpdatedAt()Get updatedAtinthashCode()FileDTOid(UUID id)FileDTOlink(String link)FileDTOmetadata(Object metadata)FileDTOs3Url(String s3Url)voidsetCreatedAt(OffsetDateTime createdAt)voidsetFileName(String fileName)voidsetId(UUID id)voidsetLink(String link)voidsetMetadata(Object metadata)voidsetS3Url(String s3Url)voidsetSize(Long size)voidsetUpdatedAt(OffsetDateTime updatedAt)FileDTOsize(Long size)StringtoJson()Convert an instance of FileDTO to an JSON stringStringtoString()FileDTOupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FILE_NAME
public static final String SERIALIZED_NAME_FILE_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINK
public static final String SERIALIZED_NAME_LINK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_S3_URL
public static final String SERIALIZED_NAME_S3_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIZE
public static final String SERIALIZED_NAME_SIZE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
createdAt
public FileDTO createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime getCreatedAt()
Get createdAt- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
setFileName
public void setFileName(String fileName)
-
setId
public void setId(UUID id)
-
setLink
public void setLink(String link)
-
setMetadata
public void setMetadata(Object metadata)
-
setS3Url
public void setS3Url(String s3Url)
-
setSize
public void setSize(Long size)
-
updatedAt
public FileDTO updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime getUpdatedAt()
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-