Package io.gitea.model
Class GeneralAttachmentSettings
java.lang.Object
io.gitea.model.GeneralAttachmentSettings
public class GeneralAttachmentSettings
extends java.lang.Object
GeneralAttachmentSettings contains global Attachment settings exposed by API
-
Constructor Summary
Constructors Constructor Description GeneralAttachmentSettings() -
Method Summary
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()
-
Constructor Details
-
GeneralAttachmentSettings
public GeneralAttachmentSettings()
-
-
Method Details
-
allowedTypes
-
getAllowedTypes
public java.lang.String getAllowedTypes()Get allowedTypes- Returns:
- allowedTypes
-
setAllowedTypes
public void setAllowedTypes(java.lang.String allowedTypes) -
enabled
-
isEnabled
public java.lang.Boolean isEnabled()Get enabled- Returns:
- enabled
-
setEnabled
public void setEnabled(java.lang.Boolean enabled) -
maxFiles
-
getMaxFiles
public java.lang.Long getMaxFiles()Get maxFiles- Returns:
- maxFiles
-
setMaxFiles
public void setMaxFiles(java.lang.Long maxFiles) -
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
-