Package com.twitter.clientlib.model
Class FilteredStreamingTweetMatchingRules
- java.lang.Object
-
- com.twitter.clientlib.model.FilteredStreamingTweetMatchingRules
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class FilteredStreamingTweetMatchingRules extends Object
FilteredStreamingTweetMatchingRules
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFilteredStreamingTweetMatchingRules.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_TAG
-
Constructor Summary
Constructors Constructor Description FilteredStreamingTweetMatchingRules()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static FilteredStreamingTweetMatchingRulesfromJson(String jsonString)Create an instance of FilteredStreamingTweetMatchingRules given an JSON stringStringgetId()Unique identifier of this rule.StringgetTag()The user-supplied tag assigned to the rule which matchedinthashCode()FilteredStreamingTweetMatchingRulesid(String id)voidsetId(String id)voidsetTag(String tag)FilteredStreamingTweetMatchingRulestag(String tag)StringtoJson()Convert an instance of FilteredStreamingTweetMatchingRules 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_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAG
public static final String SERIALIZED_NAME_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public FilteredStreamingTweetMatchingRules id(String id)
-
setId
public void setId(String id)
-
tag
public FilteredStreamingTweetMatchingRules tag(String tag)
-
getTag
@Nullable public String getTag()
The user-supplied tag assigned to the rule which matched- 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 FilteredStreamingTweetMatchingRules
-
fromJson
public static FilteredStreamingTweetMatchingRules fromJson(String jsonString) throws IOException
Create an instance of FilteredStreamingTweetMatchingRules given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FilteredStreamingTweetMatchingRules
- Throws:
IOException- if the JSON string is invalid with respect to FilteredStreamingTweetMatchingRules
-
toJson
public String toJson()
Convert an instance of FilteredStreamingTweetMatchingRules to an JSON string- Returns:
- JSON string
-
-