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 class
UsageCapExceededProblemAllOf.CustomTypeAdapterFactory
static class
UsageCapExceededProblemAllOf.PeriodEnum
Gets or Sets periodstatic class
UsageCapExceededProblemAllOf.ScopeEnum
Gets or Sets scope
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_PERIOD
static String
SERIALIZED_NAME_SCOPE
-
Constructor Summary
Constructors Constructor Description UsageCapExceededProblemAllOf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static UsageCapExceededProblemAllOf
fromJson(String jsonString)
Create an instance of UsageCapExceededProblemAllOf given an JSON stringUsageCapExceededProblemAllOf.PeriodEnum
getPeriod()
Get periodUsageCapExceededProblemAllOf.ScopeEnum
getScope()
Get scopeint
hashCode()
UsageCapExceededProblemAllOf
period(UsageCapExceededProblemAllOf.PeriodEnum period)
UsageCapExceededProblemAllOf
scope(UsageCapExceededProblemAllOf.ScopeEnum scope)
void
setPeriod(UsageCapExceededProblemAllOf.PeriodEnum period)
void
setScope(UsageCapExceededProblemAllOf.ScopeEnum scope)
String
toJson()
Convert an instance of UsageCapExceededProblemAllOf to an JSON stringString
toString()
static void
validateJsonObject(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 IOException
Validates 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
-
-