Class QuotaRuleInfo
java.lang.Object
build.cursed.genapi.forgejo.model.QuotaRuleInfo
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class QuotaRuleInfo
extends Object
QuotaRuleInfo contains information about a quota rule
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubjectsItem(String subjectsItem) booleanstatic QuotaRuleInfoCreate an instance of QuotaRuleInfo given an JSON stringgetLimit()The limit set by the rulegetName()Name of the rule (only shown to admins)Subjects the rule affectsinthashCode()voidvoidvoidsetSubjects(List<String> subjects) toJson()Convert an instance of QuotaRuleInfo to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LIMIT
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_SUBJECTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuotaRuleInfo
public QuotaRuleInfo()
-
-
Method Details
-
limit
-
getLimit
The limit set by the rule- Returns:
- limit
-
setLimit
-
name
-
getName
Name of the rule (only shown to admins)- Returns:
- name
-
setName
-
subjects
-
addSubjectsItem
-
getSubjects
Subjects the rule affects- Returns:
- subjects
-
setSubjects
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to QuotaRuleInfo
-
fromJson
Create an instance of QuotaRuleInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QuotaRuleInfo
- Throws:
IOException- if the JSON string is invalid with respect to QuotaRuleInfo
-
toJson
Convert an instance of QuotaRuleInfo to an JSON string- Returns:
- JSON string
-