Class SalesforceConfiguration

    • Method Detail

      • serverUrl

        public final String serverUrl()

        The instance URL for the Salesforce site that you want to index.

        Returns:
        The instance URL for the Salesforce site that you want to index.
      • secretArn

        public final String secretArn()

        The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the key/value pairs required to connect to your Salesforce instance. The secret must contain a JSON structure with the following keys:

        • authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an OAUTH token.

        • consumerKey - The application public key generated when you created your Salesforce application.

        • consumerSecret - The application private key generated when you created your Salesforce application.

        • password - The password associated with the user logging in to the Salesforce instance.

        • securityToken - The token associated with the user logging in to the Salesforce instance.

        • username - The user name of the user logging in to the Salesforce instance.

        Returns:
        The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the key/value pairs required to connect to your Salesforce instance. The secret must contain a JSON structure with the following keys:

        • authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an OAUTH token.

        • consumerKey - The application public key generated when you created your Salesforce application.

        • consumerSecret - The application private key generated when you created your Salesforce application.

        • password - The password associated with the user logging in to the Salesforce instance.

        • securityToken - The token associated with the user logging in to the Salesforce instance.

        • username - The user name of the user logging in to the Salesforce instance.

      • hasStandardObjectConfigurations

        public final boolean hasStandardObjectConfigurations()
        For responses, this returns true if the service returned a value for the StandardObjectConfigurations property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • standardObjectConfigurations

        public final List<SalesforceStandardObjectConfiguration> standardObjectConfigurations()

        Configuration of the Salesforce standard objects that Amazon Kendra indexes.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasStandardObjectConfigurations() method.

        Returns:
        Configuration of the Salesforce standard objects that Amazon Kendra indexes.
      • knowledgeArticleConfiguration

        public final SalesforceKnowledgeArticleConfiguration knowledgeArticleConfiguration()

        Configuration information for the knowledge article types that Amazon Kendra indexes. Amazon Kendra indexes standard knowledge articles and the standard fields of knowledge articles, or the custom fields of custom knowledge articles, but not both.

        Returns:
        Configuration information for the knowledge article types that Amazon Kendra indexes. Amazon Kendra indexes standard knowledge articles and the standard fields of knowledge articles, or the custom fields of custom knowledge articles, but not both.
      • chatterFeedConfiguration

        public final SalesforceChatterFeedConfiguration chatterFeedConfiguration()

        Configuration information for Salesforce chatter feeds.

        Returns:
        Configuration information for Salesforce chatter feeds.
      • crawlAttachments

        public final Boolean crawlAttachments()

        Indicates whether Amazon Kendra should index attachments to Salesforce objects.

        Returns:
        Indicates whether Amazon Kendra should index attachments to Salesforce objects.
      • standardObjectAttachmentConfiguration

        public final SalesforceStandardObjectAttachmentConfiguration standardObjectAttachmentConfiguration()

        Configuration information for processing attachments to Salesforce standard objects.

        Returns:
        Configuration information for processing attachments to Salesforce standard objects.
      • hasIncludeAttachmentFilePatterns

        public final boolean hasIncludeAttachmentFilePatterns()
        For responses, this returns true if the service returned a value for the IncludeAttachmentFilePatterns property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • includeAttachmentFilePatterns

        public final List<String> includeAttachmentFilePatterns()

        A list of regular expression patterns to include certain documents in your Salesforce. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

        The pattern is applied to the name of the attached file.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasIncludeAttachmentFilePatterns() method.

        Returns:
        A list of regular expression patterns to include certain documents in your Salesforce. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

        The pattern is applied to the name of the attached file.

      • hasExcludeAttachmentFilePatterns

        public final boolean hasExcludeAttachmentFilePatterns()
        For responses, this returns true if the service returned a value for the ExcludeAttachmentFilePatterns property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • excludeAttachmentFilePatterns

        public final List<String> excludeAttachmentFilePatterns()

        A list of regular expression patterns to exclude certain documents in your Salesforce. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

        The pattern is applied to the name of the attached file.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasExcludeAttachmentFilePatterns() method.

        Returns:
        A list of regular expression patterns to exclude certain documents in your Salesforce. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

        The pattern is applied to the name of the attached file.

      • 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)