Package io.gitea.model
Class GeneralAttachmentSettings
- java.lang.Object
-
- io.gitea.model.GeneralAttachmentSettings
-
public class GeneralAttachmentSettings extends java.lang.ObjectGeneralAttachmentSettings contains global Attachment settings exposed by API
-
-
Constructor Summary
Constructors Constructor Description GeneralAttachmentSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneralAttachmentSettingsallowedTypes(java.lang.String allowedTypes)GeneralAttachmentSettingsenabled(java.lang.Boolean enabled)booleanequals(java.lang.Object o)java.lang.StringgetAllowedTypes()Get allowedTypesjava.lang.LonggetMaxFiles()Get maxFilesjava.lang.LonggetMaxSize()Get maxSizeinthashCode()java.lang.BooleanisEnabled()Get enabledGeneralAttachmentSettingsmaxFiles(java.lang.Long maxFiles)GeneralAttachmentSettingsmaxSize(java.lang.Long maxSize)voidsetAllowedTypes(java.lang.String allowedTypes)voidsetEnabled(java.lang.Boolean enabled)voidsetMaxFiles(java.lang.Long maxFiles)voidsetMaxSize(java.lang.Long maxSize)java.lang.StringtoString()
-
-
-
Method Detail
-
allowedTypes
public GeneralAttachmentSettings allowedTypes(java.lang.String allowedTypes)
-
getAllowedTypes
public java.lang.String getAllowedTypes()
Get allowedTypes- Returns:
- allowedTypes
-
setAllowedTypes
public void setAllowedTypes(java.lang.String allowedTypes)
-
enabled
public GeneralAttachmentSettings enabled(java.lang.Boolean enabled)
-
isEnabled
public java.lang.Boolean isEnabled()
Get enabled- Returns:
- enabled
-
setEnabled
public void setEnabled(java.lang.Boolean enabled)
-
maxFiles
public GeneralAttachmentSettings maxFiles(java.lang.Long maxFiles)
-
getMaxFiles
public java.lang.Long getMaxFiles()
Get maxFiles- Returns:
- maxFiles
-
setMaxFiles
public void setMaxFiles(java.lang.Long maxFiles)
-
maxSize
public GeneralAttachmentSettings maxSize(java.lang.Long maxSize)
-
getMaxSize
public java.lang.Long getMaxSize()
Get maxSize- Returns:
- maxSize
-
setMaxSize
public void setMaxSize(java.lang.Long maxSize)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-