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 String
JSON_PROPERTY_SECTION_ID
public Long
sectionId
public final static String
JSON_PROPERTY_PATH
public String
path
public final static String
JSON_PROPERTY_DOWNLOADABLE
public Boolean
downloadable
public final static String
JSON_PROPERTY_ATTACHMENT
public File
attachment
public final static String
JSON_PROPERTY_CONTENT_TYPE
public String
contentType
public final static String
JSON_PROPERTY_ID
public Long
id
public final static String
JSON_PROPERTY_CREATED_AT
public OffsetDateTime
createdAt
public final static String
JSON_PROPERTY_UPDATED_AT
public OffsetDateTime
updatedAt
public final static String
JSON_PROPERTY_URL
public String
url
public final static String
JSON_PROPERTY_TITLE
public String
title
-
Constructor Summary
Constructors Constructor Description ModelFile()
-
Method Summary
Modifier and Type Method Description Long
getSectionId()
Unique identifier for a `Section` void
setSectionId(Long sectionId)
String
getPath()
The path from which the file is retrieved from the 3scale Developer Portal. void
setPath(String path)
Boolean
getDownloadable()
Flag indicating whether the file will be returned from the Developer Portal with headers indicating it is intended to be downloaded void
setDownloadable(Boolean downloadable)
File
getAttachment()
The full contents of the file void
setAttachment(File attachment)
String
getContentType()
The mime-type describing type of content. void
setContentType(String contentType)
Long
getId()
Unique identifier for a `File` object void
setId(Long id)
OffsetDateTime
getCreatedAt()
The instant at which the file was first created in the 3scale CMS void
setCreatedAt(OffsetDateTime createdAt)
OffsetDateTime
getUpdatedAt()
The instant at which the file was last updated void
setUpdatedAt(OffsetDateTime updatedAt)
String
getUrl()
The location at which the file is stored by 3scale; for 3scale-internal use void
setUrl(String url)
String
getTitle()
The name of the file void
setTitle(String title)
ModelFile
sectionId(Long sectionId)
ModelFile
path(String path)
ModelFile
downloadable(Boolean downloadable)
ModelFile
attachment(File attachment)
ModelFile
contentType(String contentType)
ModelFile
id(Long id)
ModelFile
createdAt(OffsetDateTime createdAt)
ModelFile
updatedAt(OffsetDateTime updatedAt)
ModelFile
url(String url)
ModelFile
title(String title)
boolean
equals(Object o)
int
hashCode()
String
toString()
String
toUrlQueryString()
Convert the instance into URL query string. String
toUrlQueryString(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
-
-
-
-