Package com.twitter.clientlib.model
Class UsageCapExceededProblemAllOf
- java.lang.Object
-
- com.twitter.clientlib.model.UsageCapExceededProblemAllOf
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UsageCapExceededProblemAllOf extends Object
UsageCapExceededProblemAllOf
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsageCapExceededProblemAllOf.CustomTypeAdapterFactorystatic classUsageCapExceededProblemAllOf.PeriodEnumGets or Sets periodstatic classUsageCapExceededProblemAllOf.ScopeEnumGets or Sets scope
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PERIODstatic StringSERIALIZED_NAME_SCOPE
-
Constructor Summary
Constructors Constructor Description UsageCapExceededProblemAllOf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static UsageCapExceededProblemAllOffromJson(String jsonString)Create an instance of UsageCapExceededProblemAllOf given an JSON stringUsageCapExceededProblemAllOf.PeriodEnumgetPeriod()Get periodUsageCapExceededProblemAllOf.ScopeEnumgetScope()Get scopeinthashCode()UsageCapExceededProblemAllOfperiod(UsageCapExceededProblemAllOf.PeriodEnum period)UsageCapExceededProblemAllOfscope(UsageCapExceededProblemAllOf.ScopeEnum scope)voidsetPeriod(UsageCapExceededProblemAllOf.PeriodEnum period)voidsetScope(UsageCapExceededProblemAllOf.ScopeEnum scope)StringtoJson()Convert an instance of UsageCapExceededProblemAllOf to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PERIOD
public static final String SERIALIZED_NAME_PERIOD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCOPE
public static final String SERIALIZED_NAME_SCOPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
period
public UsageCapExceededProblemAllOf period(UsageCapExceededProblemAllOf.PeriodEnum period)
-
getPeriod
@Nullable public UsageCapExceededProblemAllOf.PeriodEnum getPeriod()
Get period- Returns:
- period
-
setPeriod
public void setPeriod(UsageCapExceededProblemAllOf.PeriodEnum period)
-
scope
public UsageCapExceededProblemAllOf scope(UsageCapExceededProblemAllOf.ScopeEnum scope)
-
getScope
@Nullable public UsageCapExceededProblemAllOf.ScopeEnum getScope()
Get scope- Returns:
- scope
-
setScope
public void setScope(UsageCapExceededProblemAllOf.ScopeEnum scope)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to UsageCapExceededProblemAllOf
-
fromJson
public static UsageCapExceededProblemAllOf fromJson(String jsonString) throws IOException
Create an instance of UsageCapExceededProblemAllOf given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UsageCapExceededProblemAllOf
- Throws:
IOException- if the JSON string is invalid with respect to UsageCapExceededProblemAllOf
-
toJson
public String toJson()
Convert an instance of UsageCapExceededProblemAllOf to an JSON string- Returns:
- JSON string
-
-