Package com.twitter.clientlib.model
Class RulesLookupResponse
- java.lang.Object
-
- com.twitter.clientlib.model.RulesLookupResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RulesLookupResponse extends Object
RulesLookupResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RulesLookupResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DATA
static String
SERIALIZED_NAME_META
-
Constructor Summary
Constructors Constructor Description RulesLookupResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RulesLookupResponse
addDataItem(Rule dataItem)
RulesLookupResponse
data(List<Rule> data)
boolean
equals(Object o)
static RulesLookupResponse
fromJson(String jsonString)
Create an instance of RulesLookupResponse given an JSON stringList<Rule>
getData()
Get dataRulesResponseMetadata
getMeta()
Get metaint
hashCode()
RulesLookupResponse
meta(RulesResponseMetadata meta)
void
setData(List<Rule> data)
void
setMeta(RulesResponseMetadata meta)
String
toJson()
Convert an instance of RulesLookupResponse 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_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_META
public static final String SERIALIZED_NAME_META
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public RulesLookupResponse data(List<Rule> data)
-
addDataItem
public RulesLookupResponse addDataItem(Rule dataItem)
-
meta
public RulesLookupResponse meta(RulesResponseMetadata meta)
-
getMeta
@Nonnull public RulesResponseMetadata getMeta()
Get meta- Returns:
- meta
-
setMeta
public void setMeta(RulesResponseMetadata meta)
-
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 RulesLookupResponse
-
fromJson
public static RulesLookupResponse fromJson(String jsonString) throws IOException
Create an instance of RulesLookupResponse given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of RulesLookupResponse
- Throws:
IOException
- if the JSON string is invalid with respect to RulesLookupResponse
-
toJson
public String toJson()
Convert an instance of RulesLookupResponse to an JSON string- Returns:
- JSON string
-
-