Class CreateQuotaRuleOptions
java.lang.Object
build.cursed.genapi.forgejo.model.CreateQuotaRuleOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class CreateQuotaRuleOptions
extends Object
CreateQuotaRuleOptions represents the options for creating a quota rule
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubjectsItem(String subjectsItem) booleanstatic CreateQuotaRuleOptionsCreate an instance of CreateQuotaRuleOptions given an JSON stringgetLimit()The limit set by the rulegetName()Name of the rule to createThe subjects affected by the ruleinthashCode()voidvoidvoidsetSubjects(List<String> subjects) toJson()Convert an instance of CreateQuotaRuleOptions 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
-
CreateQuotaRuleOptions
public CreateQuotaRuleOptions()
-
-
Method Details
-
limit
-
getLimit
The limit set by the rule- Returns:
- limit
-
setLimit
-
name
-
getName
Name of the rule to create- Returns:
- name
-
setName
-
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 CreateQuotaRuleOptions
-
fromJson
Create an instance of CreateQuotaRuleOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateQuotaRuleOptions
- Throws:
IOException- if the JSON string is invalid with respect to CreateQuotaRuleOptions
-
toJson
Convert an instance of CreateQuotaRuleOptions to an JSON string- Returns:
- JSON string
-