Class RuleConfiguration

    • Method Detail

      • contentBlockerRule

        public final ContentBlockerRule contentBlockerRule()

        A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.

        Returns:
        A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.
      • contentRetrievalRule

        public final ContentRetrievalRule contentRetrievalRule()
        Returns the value of the ContentRetrievalRule property for this object.
        Returns:
        The value of the ContentRetrievalRule property for this object.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromContentBlockerRule

        public static RuleConfiguration fromContentBlockerRule​(ContentBlockerRule contentBlockerRule)
        Create an instance of this class with contentBlockerRule() initialized to the given value.

        A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.

        Parameters:
        contentBlockerRule - A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.
      • fromContentBlockerRule

        public static RuleConfiguration fromContentBlockerRule​(Consumer<ContentBlockerRule.Builder> contentBlockerRule)
        Create an instance of this class with contentBlockerRule() initialized to the given value.

        A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.

        Parameters:
        contentBlockerRule - A rule for configuring how Amazon Q Business responds when it encounters a a blocked topic.
      • fromContentRetrievalRule

        public static RuleConfiguration fromContentRetrievalRule​(ContentRetrievalRule contentRetrievalRule)
        Create an instance of this class with contentRetrievalRule() initialized to the given value. Sets the value of the ContentRetrievalRule property for this object.
        Parameters:
        contentRetrievalRule - The new value for the ContentRetrievalRule property for this object.
      • fromContentRetrievalRule

        public static RuleConfiguration fromContentRetrievalRule​(Consumer<ContentRetrievalRule.Builder> contentRetrievalRule)
        Create an instance of this class with contentRetrievalRule() initialized to the given value. Sets the value of the ContentRetrievalRule property for this object.
        Parameters:
        contentRetrievalRule - The new value for the ContentRetrievalRule property for this object.