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 classAddOrDeleteRulesResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_ERRORSstatic StringSERIALIZED_NAME_META
-
Constructor Summary
Constructors Constructor Description AddOrDeleteRulesResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddOrDeleteRulesResponseaddDataItem(Rule dataItem)AddOrDeleteRulesResponseaddErrorsItem(Problem errorsItem)AddOrDeleteRulesResponsedata(List<Rule> data)booleanequals(Object o)AddOrDeleteRulesResponseerrors(List<Problem> errors)static AddOrDeleteRulesResponsefromJson(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 errorsRulesResponseMetadatagetMeta()Get metainthashCode()AddOrDeleteRulesResponsemeta(RulesResponseMetadata meta)voidsetData(List<Rule> data)voidsetErrors(List<Problem> errors)voidsetMeta(RulesResponseMetadata meta)StringtoJson()Convert an instance of AddOrDeleteRulesResponse 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_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 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 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
-
-