Package com.twitter.clientlib.model
Class RuleNoId
- java.lang.Object
-
- com.twitter.clientlib.model.RuleNoId
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RuleNoId extends Object
A user-provided stream filtering rule.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRuleNoId.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_TAGstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description RuleNoId()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static RuleNoIdfromJson(String jsonString)Create an instance of RuleNoId given an JSON stringStringgetTag()A tag meant for the labeling of user provided rules.StringgetValue()The filterlang value of the rule.inthashCode()voidsetTag(String tag)voidsetValue(String value)RuleNoIdtag(String tag)StringtoJson()Convert an instance of RuleNoId to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundRuleNoIdvalue(String value)
-
-
-
Field Detail
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAG
public static final String SERIALIZED_NAME_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
setValue
public void setValue(String value)
-
getTag
@Nullable public String getTag()
A tag meant for the labeling of user provided rules.- Returns:
- tag
-
setTag
public void setTag(String tag)
-
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 RuleNoId
-
fromJson
public static RuleNoId fromJson(String jsonString) throws IOException
Create an instance of RuleNoId given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RuleNoId
- Throws:
IOException- if the JSON string is invalid with respect to RuleNoId
-
toJson
public String toJson()
Convert an instance of RuleNoId to an JSON string- Returns:
- JSON string
-
-