Class CreateQuotaGroupOptions
java.lang.Object
build.cursed.genapi.forgejo.model.CreateQuotaGroupOptions
@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 CreateQuotaGroupOptions
extends Object
CreateQutaGroupOptions represents the options for creating a quota group
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem(CreateQuotaRuleOptions rulesItem) booleanstatic CreateQuotaGroupOptionsCreate an instance of CreateQuotaGroupOptions given an JSON stringgetName()Name of the quota group to creategetRules()Rules to add to the newly created group.inthashCode()rules(List<CreateQuotaRuleOptions> rules) voidvoidsetRules(List<CreateQuotaRuleOptions> rules) toJson()Convert an instance of CreateQuotaGroupOptions 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_NAME
- See Also:
-
SERIALIZED_NAME_RULES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateQuotaGroupOptions
public CreateQuotaGroupOptions()
-
-
Method Details
-
name
-
getName
Name of the quota group to create- Returns:
- name
-
setName
-
rules
-
addRulesItem
-
getRules
Rules to add to the newly created group. If a rule does not exist, it will be created.- Returns:
- rules
-
setRules
-
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 CreateQuotaGroupOptions
-
fromJson
Create an instance of CreateQuotaGroupOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateQuotaGroupOptions
- Throws:
IOException- if the JSON string is invalid with respect to CreateQuotaGroupOptions
-
toJson
Convert an instance of CreateQuotaGroupOptions to an JSON string- Returns:
- JSON string
-