Package com.twitter.clientlib.model
Class AddOrDeleteRulesResponse
- java.lang.Object
-
- com.twitter.clientlib.model.AddOrDeleteRulesResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class AddOrDeleteRulesResponse extends Object
A response from modifying user-specified stream filtering rules.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddOrDeleteRulesResponse.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_ERRORS
static String
SERIALIZED_NAME_META
-
Constructor Summary
Constructors Constructor Description AddOrDeleteRulesResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddOrDeleteRulesResponse
addDataItem(Rule dataItem)
AddOrDeleteRulesResponse
addErrorsItem(Problem errorsItem)
AddOrDeleteRulesResponse
data(List<Rule> data)
boolean
equals(Object o)
AddOrDeleteRulesResponse
errors(List<Problem> errors)
static AddOrDeleteRulesResponse
fromJson(String jsonString)
Create an instance of AddOrDeleteRulesResponse given an JSON stringList<Rule>
getData()
All user-specified stream filtering rules that were created.List<Problem>
getErrors()
Get errorsRulesResponseMetadata
getMeta()
Get metaint
hashCode()
AddOrDeleteRulesResponse
meta(RulesResponseMetadata meta)
void
setData(List<Rule> data)
void
setErrors(List<Problem> errors)
void
setMeta(RulesResponseMetadata meta)
String
toJson()
Convert an instance of AddOrDeleteRulesResponse 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_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_META
public static final String SERIALIZED_NAME_META
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public AddOrDeleteRulesResponse data(List<Rule> data)
-
addDataItem
public AddOrDeleteRulesResponse addDataItem(Rule dataItem)
-
getData
@Nullable public List<Rule> getData()
All user-specified stream filtering rules that were created.- Returns:
- data
-
errors
public AddOrDeleteRulesResponse errors(List<Problem> errors)
-
addErrorsItem
public AddOrDeleteRulesResponse addErrorsItem(Problem errorsItem)
-
meta
public AddOrDeleteRulesResponse 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 AddOrDeleteRulesResponse
-
fromJson
public static AddOrDeleteRulesResponse fromJson(String jsonString) throws IOException
Create an instance of AddOrDeleteRulesResponse given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of AddOrDeleteRulesResponse
- Throws:
IOException
- if the JSON string is invalid with respect to AddOrDeleteRulesResponse
-
toJson
public String toJson()
Convert an instance of AddOrDeleteRulesResponse to an JSON string- Returns:
- JSON string
-
-