Package com.twitter.clientlib.model
Class GetRulesResponse
- java.lang.Object
-
- com.twitter.clientlib.model.GetRulesResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class GetRulesResponse extends Object
GetRulesResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetRulesResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_META
-
Constructor Summary
Constructors Constructor Description GetRulesResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GetRulesResponseaddDataItem(Rule dataItem)GetRulesResponsedata(List<Rule> data)booleanequals(Object o)static GetRulesResponsefromJson(String jsonString)Create an instance of GetRulesResponse given an JSON stringList<Rule>getData()Get dataRulesResponseMetadatagetMeta()Get metainthashCode()GetRulesResponsemeta(RulesResponseMetadata meta)voidsetData(List<Rule> data)voidsetMeta(RulesResponseMetadata meta)StringtoJson()Convert an instance of GetRulesResponse 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_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 GetRulesResponse data(List<Rule> data)
-
addDataItem
public GetRulesResponse addDataItem(Rule dataItem)
-
meta
public GetRulesResponse 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 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 GetRulesResponse
-
fromJson
public static GetRulesResponse fromJson(String jsonString) throws IOException
Create an instance of GetRulesResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetRulesResponse
- Throws:
IOException- if the JSON string is invalid with respect to GetRulesResponse
-
toJson
public String toJson()
Convert an instance of GetRulesResponse to an JSON string- Returns:
- JSON string
-
-