Class FileCreationRequest
-
- All Implemented Interfaces:
-
java.io.Serializable
@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FileCreationRequest implements Serializable
FileCreationRequest
-
-
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
-
Constructor Summary
Constructors Constructor Description FileCreationRequest()
-
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)
FileCreationRequest
sectionId(Long sectionId)
FileCreationRequest
path(String path)
FileCreationRequest
downloadable(Boolean downloadable)
FileCreationRequest
attachment(File attachment)
FileCreationRequest
contentType(String contentType)
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
@Nonnull() Long getSectionId()
Unique identifier for a `Section`
- Returns:
sectionId
-
setSectionId
void setSectionId(Long sectionId)
-
getPath
@Nonnull() 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
@Nonnull() 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)
-
sectionId
FileCreationRequest sectionId(Long sectionId)
-
path
FileCreationRequest path(String path)
-
downloadable
FileCreationRequest downloadable(Boolean downloadable)
-
attachment
FileCreationRequest attachment(File attachment)
-
contentType
FileCreationRequest contentType(String contentType)
-
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
-
-
-
-