Class DataSourceSummary

    • Method Detail

      • name

        public final String name()

        The name of the data source.

        Returns:
        The name of the data source.
      • id

        public final String id()

        The identifier for the data source.

        Returns:
        The identifier for the data source.
      • typeAsString

        public final String typeAsString()

        The type of the data source.

        If the service returns an enum value that is not available in the current SDK version, type will return DataSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        The type of the data source.
        See Also:
        DataSourceType
      • createdAt

        public final Instant createdAt()

        The Unix timestamp when the data source connector was created.

        Returns:
        The Unix timestamp when the data source connector was created.
      • updatedAt

        public final Instant updatedAt()

        The Unix timestamp when the data source connector was last updated.

        Returns:
        The Unix timestamp when the data source connector was last updated.
      • status

        public final DataSourceStatus status()

        The status of the data source. When the status is ACTIVE the data source is ready to use.

        If the service returns an enum value that is not available in the current SDK version, status will return DataSourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of the data source. When the status is ACTIVE the data source is ready to use.
        See Also:
        DataSourceStatus
      • statusAsString

        public final String statusAsString()

        The status of the data source. When the status is ACTIVE the data source is ready to use.

        If the service returns an enum value that is not available in the current SDK version, status will return DataSourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of the data source. When the status is ACTIVE the data source is ready to use.
        See Also:
        DataSourceStatus
      • languageCode

        public final String languageCode()

        The code for a language. This shows a supported language for all documents in the data source. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.

        Returns:
        The code for a language. This shows a supported language for all documents in the data source. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.
      • 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)