Class ModelFile
-
- All Implemented Interfaces:
-
java.io.Serializable
@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ModelFile implements Serializable
File as held in the 3scale CMS
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringJSON_PROPERTY_SECTION_IDpublic LongsectionIdpublic final static StringJSON_PROPERTY_PATHpublic Stringpathpublic final static StringJSON_PROPERTY_DOWNLOADABLEpublic Booleandownloadablepublic final static StringJSON_PROPERTY_ATTACHMENTpublic Fileattachmentpublic final static StringJSON_PROPERTY_CONTENT_TYPEpublic StringcontentTypepublic final static StringJSON_PROPERTY_IDpublic Longidpublic final static StringJSON_PROPERTY_CREATED_ATpublic OffsetDateTimecreatedAtpublic final static StringJSON_PROPERTY_UPDATED_ATpublic OffsetDateTimeupdatedAtpublic final static StringJSON_PROPERTY_URLpublic Stringurlpublic final static StringJSON_PROPERTY_TITLEpublic Stringtitle
-
Constructor Summary
Constructors Constructor Description ModelFile()
-
Method Summary
Modifier and Type Method Description LonggetSectionId()Unique identifier for a `Section` voidsetSectionId(Long sectionId)StringgetPath()The path from which the file is retrieved from the 3scale Developer Portal. voidsetPath(String path)BooleangetDownloadable()Flag indicating whether the file will be returned from the Developer Portal with headers indicating it is intended to be downloaded voidsetDownloadable(Boolean downloadable)FilegetAttachment()The full contents of the file voidsetAttachment(File attachment)StringgetContentType()The mime-type describing type of content. voidsetContentType(String contentType)LonggetId()Unique identifier for a `File` object voidsetId(Long id)OffsetDateTimegetCreatedAt()The instant at which the file was first created in the 3scale CMS voidsetCreatedAt(OffsetDateTime createdAt)OffsetDateTimegetUpdatedAt()The instant at which the file was last updated voidsetUpdatedAt(OffsetDateTime updatedAt)StringgetUrl()The location at which the file is stored by 3scale; for 3scale-internal use voidsetUrl(String url)StringgetTitle()The name of the file voidsetTitle(String title)ModelFilesectionId(Long sectionId)ModelFilepath(String path)ModelFiledownloadable(Boolean downloadable)ModelFileattachment(File attachment)ModelFilecontentType(String contentType)ModelFileid(Long id)ModelFilecreatedAt(OffsetDateTime createdAt)ModelFileupdatedAt(OffsetDateTime updatedAt)ModelFileurl(String url)ModelFiletitle(String title)booleanequals(Object o)inthashCode()StringtoString()StringtoUrlQueryString()Convert the instance into URL query string. StringtoUrlQueryString(String prefix)Convert the instance into URL query string. -
-
Method Detail
-
getSectionId
@Nullable() Long getSectionId()
Unique identifier for a `Section`
- Returns:
sectionId
-
setSectionId
void setSectionId(Long sectionId)
-
getPath
@Nullable() String getPath()
The path from which the file is retrieved from the 3scale Developer Portal. Must be unique across all CMS objects
- Returns:
path
-
getDownloadable
@Nullable() Boolean getDownloadable()
Flag indicating whether the file will be returned from the Developer Portal with headers indicating it is intended to be downloaded
- Returns:
downloadable
-
setDownloadable
void setDownloadable(Boolean downloadable)
-
getAttachment
@Nullable() File getAttachment()
The full contents of the file
- Returns:
attachment
-
setAttachment
void setAttachment(File attachment)
-
getContentType
@Nullable() String getContentType()
The mime-type describing type of content.
- Returns:
contentType
-
setContentType
void setContentType(String contentType)
-
getCreatedAt
@Nullable() OffsetDateTime getCreatedAt()
The instant at which the file was first created in the 3scale CMS
- Returns:
createdAt
-
setCreatedAt
void setCreatedAt(OffsetDateTime createdAt)
-
getUpdatedAt
@Nullable() OffsetDateTime getUpdatedAt()
The instant at which the file was last updated
- Returns:
updatedAt
-
setUpdatedAt
void setUpdatedAt(OffsetDateTime updatedAt)
-
getUrl
@Nullable() String getUrl()
The location at which the file is stored by 3scale; for 3scale-internal use
- Returns:
url
-
downloadable
ModelFile downloadable(Boolean downloadable)
-
attachment
ModelFile attachment(File attachment)
-
contentType
ModelFile contentType(String contentType)
-
createdAt
ModelFile createdAt(OffsetDateTime createdAt)
-
updatedAt
ModelFile updatedAt(OffsetDateTime updatedAt)
-
hashCode
int hashCode()
-
toUrlQueryString
String toUrlQueryString()
Convert the instance into URL query string.
- Returns:
URL query string
-
toUrlQueryString
String toUrlQueryString(String prefix)
Convert the instance into URL query string.
- Parameters:
prefix- prefix of the query string- Returns:
URL query string
-
-
-
-