Class RelatedItemContent

    • Method Detail

      • comment

        public final CommentContent comment()

        Represents the content of a comment to be returned to agents.

        Returns:
        Represents the content of a comment to be returned to agents.
      • contact

        public final ContactContent contact()

        Represents the content of a contact to be returned to agents.

        Returns:
        Represents the content of a contact to be returned to agents.
      • file

        public final FileContent file()

        Represents the content of a File to be returned to agents.

        Returns:
        Represents the content of a File to be returned to agents.
      • 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)
      • fromComment

        public static RelatedItemContent fromComment​(CommentContent comment)
        Create an instance of this class with comment() initialized to the given value.

        Represents the content of a comment to be returned to agents.

        Parameters:
        comment - Represents the content of a comment to be returned to agents.
      • fromComment

        public static RelatedItemContent fromComment​(Consumer<CommentContent.Builder> comment)
        Create an instance of this class with comment() initialized to the given value.

        Represents the content of a comment to be returned to agents.

        Parameters:
        comment - Represents the content of a comment to be returned to agents.
      • fromContact

        public static RelatedItemContent fromContact​(ContactContent contact)
        Create an instance of this class with contact() initialized to the given value.

        Represents the content of a contact to be returned to agents.

        Parameters:
        contact - Represents the content of a contact to be returned to agents.
      • fromContact

        public static RelatedItemContent fromContact​(Consumer<ContactContent.Builder> contact)
        Create an instance of this class with contact() initialized to the given value.

        Represents the content of a contact to be returned to agents.

        Parameters:
        contact - Represents the content of a contact to be returned to agents.
      • fromFile

        public static RelatedItemContent fromFile​(FileContent file)
        Create an instance of this class with file() initialized to the given value.

        Represents the content of a File to be returned to agents.

        Parameters:
        file - Represents the content of a File to be returned to agents.
      • fromFile

        public static RelatedItemContent fromFile​(Consumer<FileContent.Builder> file)
        Create an instance of this class with file() initialized to the given value.

        Represents the content of a File to be returned to agents.

        Parameters:
        file - Represents the content of a File to be returned to agents.