Class EditQuotaRuleOptions
java.lang.Object
build.cursed.genapi.forgejo.model.EditQuotaRuleOptions
@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 EditQuotaRuleOptions
extends Object
EditQuotaRuleOptions represents the options for editing a quota rule
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubjectsItem(String subjectsItem) booleanstatic EditQuotaRuleOptionsCreate an instance of EditQuotaRuleOptions given an JSON stringgetLimit()The limit set by the ruleThe subjects affected by the ruleinthashCode()voidvoidsetSubjects(List<String> subjects) toJson()Convert an instance of EditQuotaRuleOptions 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_SUBJECTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EditQuotaRuleOptions
public EditQuotaRuleOptions()
-
-
Method Details
-
limit
-
getLimit
The limit set by the rule- Returns:
- limit
-
setLimit
-
subjects
-
addSubjectsItem
-
getSubjects
The subjects affected by the rule- 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 EditQuotaRuleOptions
-
fromJson
Create an instance of EditQuotaRuleOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EditQuotaRuleOptions
- Throws:
IOException- if the JSON string is invalid with respect to EditQuotaRuleOptions
-
toJson
Convert an instance of EditQuotaRuleOptions to an JSON string- Returns:
- JSON string
-