Class GetInsightsResultsMetadata


  • public final class GetInsightsResultsMetadata
    extends Object
    Get Insights result metadata.
    • Constructor Detail

      • GetInsightsResultsMetadata

        public GetInsightsResultsMetadata()
    • Method Detail

      • totalCount

        public int totalCount()
        Get the totalCount property: the total items found for the insights request.
        Returns:
        the totalCount value.
      • withTotalCount

        public GetInsightsResultsMetadata withTotalCount​(int totalCount)
        Set the totalCount property: the total items found for the insights request.
        Parameters:
        totalCount - the totalCount value to set.
        Returns:
        the GetInsightsResultsMetadata object itself.
      • errors

        public List<GetInsightsError> errors()
        Get the errors property: information about the failed queries.
        Returns:
        the errors value.
      • withErrors

        public GetInsightsResultsMetadata withErrors​(List<GetInsightsError> errors)
        Set the errors property: information about the failed queries.
        Parameters:
        errors - the errors value to set.
        Returns:
        the GetInsightsResultsMetadata object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.