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 class
RuleNoId.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_TAG
static String
SERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description RuleNoId()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static RuleNoId
fromJson(String jsonString)
Create an instance of RuleNoId given an JSON stringString
getTag()
A tag meant for the labeling of user provided rules.String
getValue()
The filterlang value of the rule.int
hashCode()
void
setTag(String tag)
void
setValue(String value)
RuleNoId
tag(String tag)
String
toJson()
Convert an instance of RuleNoId to an JSON stringString
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues foundRuleNoId
value(String value)
-
-
-
Field Detail
-
SERIALIZED_NAME_TAG
public static final String SERIALIZED_NAME_TAG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTag
@Nullable public String getTag()
A tag meant for the labeling of user provided rules.- Returns:
- tag
-
setTag
public void setTag(String tag)
-
setValue
public void setValue(String value)
-
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 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
-
-