Class PutWatchRequest

    • Constructor Detail

      • PutWatchRequest

        public PutWatchRequest()
      • PutWatchRequest

        public PutWatchRequest​(StreamInput in)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns:
        The name that will be the ID of the indexed document
      • setId

        public void setId​(java.lang.String id)
        Set the watch name
      • getSource

        public BytesReference getSource()
        Returns:
        The source of the watch
      • isActive

        public boolean isActive()
        Returns:
        The initial active state of the watch (defaults to true, e.g. "active")
      • setActive

        public void setActive​(boolean active)
        Sets the initial active state of the watch
      • xContentType

        public XContentType xContentType()
        Get the content type for the source
      • getVersion

        public long getVersion()
      • setVersion

        public void setVersion​(long version)
      • isValidId

        public static boolean isValidId​(java.lang.String id)