Class Rule


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Rule
    extends Object
    A user-provided stream filtering rule.
    • Constructor Detail

      • Rule

        public Rule()
    • Method Detail

      • getId

        @Nullable
        public String getId()
        Unique identifier of this rule.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getTag

        @Nullable
        public String getTag()
        A tag meant for the labeling of user provided rules.
        Returns:
        tag
      • setTag

        public void setTag​(String tag)
      • getValue

        @Nonnull
        public String getValue()
        The filterlang value of the rule.
        Returns:
        value
      • setValue

        public void setValue​(String value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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 Rule
      • fromJson

        public static Rule fromJson​(String jsonString)
                             throws IOException
        Create an instance of Rule given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Rule
        Throws:
        IOException - if the JSON string is invalid with respect to Rule
      • toJson

        public String toJson()
        Convert an instance of Rule to an JSON string
        Returns:
        JSON string