Class GitHubConfiguration
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<GitHubConfiguration.Builder,
GitHubConfiguration>
Provides the configuration information to connect to GitHub as your data source.
Amazon Kendra now supports an upgraded GitHub connector.
You must now use the TemplateConfiguration
object instead of the GitHubConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won’t be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GitHubConfiguration.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.A list of regular expression patterns to exclude certain file names in your GitHub repository or repositories.A list of regular expression patterns to exclude certain file types in your GitHub repository or repositories.A list of regular expression patterns to exclude certain folder names in your GitHub repository or repositories.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub commits to Amazon Kendra index field names.Configuration information to include certain types of GitHub content.A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub issue attachments to Amazon Kendra index field names.A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub issue comments to Amazon Kendra index field names.A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub issues to Amazon Kendra index field names.A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub pull request comments to Amazon Kendra index field names.A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub pull request attachments to Amazon Kendra index field names.A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub pull requests to Amazon Kendra index field names.A list ofDataSourceToIndexFieldMapping
objects that map GitHub repository attributes or field names to Amazon Kendra index field names.final boolean
For responses, this returns true if the service returned a value for the ExclusionFileNamePatterns property.final boolean
For responses, this returns true if the service returned a value for the ExclusionFileTypePatterns property.final boolean
For responses, this returns true if the service returned a value for the ExclusionFolderNamePatterns property.final boolean
For responses, this returns true if the service returned a value for the GitHubCommitConfigurationFieldMappings property.final boolean
For responses, this returns true if the service returned a value for the GitHubIssueAttachmentConfigurationFieldMappings property.final boolean
For responses, this returns true if the service returned a value for the GitHubIssueCommentConfigurationFieldMappings property.final boolean
For responses, this returns true if the service returned a value for the GitHubIssueDocumentConfigurationFieldMappings property.final boolean
For responses, this returns true if the service returned a value for the GitHubPullRequestCommentConfigurationFieldMappings property.final boolean
For responses, this returns true if the service returned a value for the GitHubPullRequestDocumentAttachmentConfigurationFieldMappings property.final boolean
For responses, this returns true if the service returned a value for the GitHubPullRequestDocumentConfigurationFieldMappings property.final boolean
For responses, this returns true if the service returned a value for the GitHubRepositoryConfigurationFieldMappings property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the InclusionFileNamePatterns property.final boolean
For responses, this returns true if the service returned a value for the InclusionFileTypePatterns property.final boolean
For responses, this returns true if the service returned a value for the InclusionFolderNamePatterns property.final boolean
For responses, this returns true if the service returned a value for the RepositoryFilter property.A list of regular expression patterns to include certain file names in your GitHub repository or repositories.A list of regular expression patterns to include certain file types in your GitHub repository or repositories.A list of regular expression patterns to include certain folder names in your GitHub repository or repositories.final OnPremiseConfiguration
Configuration information to connect to GitHub Enterprise Server (on premises).A list of names of the specific repositories you want to index.final SaaSConfiguration
Configuration information to connect to GitHub Enterprise Cloud (SaaS).final String
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your GitHub.static Class
<? extends GitHubConfiguration.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Type
type()
The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).final String
The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).final Boolean
TRUE
to use the GitHub change log to determine which documents require updating in the index.Configuration information of an Amazon Virtual Private Cloud to connect to your GitHub.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
saaSConfiguration
Configuration information to connect to GitHub Enterprise Cloud (SaaS).
- Returns:
- Configuration information to connect to GitHub Enterprise Cloud (SaaS).
-
onPremiseConfiguration
Configuration information to connect to GitHub Enterprise Server (on premises).
- Returns:
- Configuration information to connect to GitHub Enterprise Server (on premises).
-
type
The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).
If the service returns an enum value that is not available in the current SDK version,
type
will returnType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).
- See Also:
-
typeAsString
The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).
If the service returns an enum value that is not available in the current SDK version,
type
will returnType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).
- See Also:
-
secretArn
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your GitHub. The secret must contain a JSON structure with the following keys:
-
personalToken—The access token created in GitHub. For more information on creating a token in GitHub, see Using a GitHub data source.
- Returns:
- The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to
connect to your GitHub. The secret must contain a JSON structure with the following keys:
-
personalToken—The access token created in GitHub. For more information on creating a token in GitHub, see Using a GitHub data source.
-
-
-
useChangeLog
TRUE
to use the GitHub change log to determine which documents require updating in the index. Depending on the GitHub change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in GitHub.- Returns:
TRUE
to use the GitHub change log to determine which documents require updating in the index. Depending on the GitHub change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in GitHub.
-
gitHubDocumentCrawlProperties
Configuration information to include certain types of GitHub content. You can configure to index repository files only, or also include issues and pull requests, comments, and comment attachments.
- Returns:
- Configuration information to include certain types of GitHub content. You can configure to index repository files only, or also include issues and pull requests, comments, and comment attachments.
-
hasRepositoryFilter
public final boolean hasRepositoryFilter()For responses, this returns true if the service returned a value for the RepositoryFilter property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
repositoryFilter
A list of names of the specific repositories you want to index.
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
hasRepositoryFilter()
method.- Returns:
- A list of names of the specific repositories you want to index.
-
hasInclusionFolderNamePatterns
public final boolean hasInclusionFolderNamePatterns()For responses, this returns true if the service returned a value for the InclusionFolderNamePatterns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
inclusionFolderNamePatterns
A list of regular expression patterns to include certain folder names in your GitHub repository or repositories. Folder names that match the patterns are included in the index. Folder names that don't match the patterns are excluded from the index. If a folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.
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
hasInclusionFolderNamePatterns()
method.- Returns:
- A list of regular expression patterns to include certain folder names in your GitHub repository or repositories. Folder names that match the patterns are included in the index. Folder names that don't match the patterns are excluded from the index. If a folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.
-
hasInclusionFileTypePatterns
public final boolean hasInclusionFileTypePatterns()For responses, this returns true if the service returned a value for the InclusionFileTypePatterns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
inclusionFileTypePatterns
A list of regular expression patterns to include certain file types in your GitHub repository or repositories. File types that match the patterns are included in the index. File types that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
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
hasInclusionFileTypePatterns()
method.- Returns:
- A list of regular expression patterns to include certain file types in your GitHub repository or repositories. File types that match the patterns are included in the index. File types that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
-
hasInclusionFileNamePatterns
public final boolean hasInclusionFileNamePatterns()For responses, this returns true if the service returned a value for the InclusionFileNamePatterns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
inclusionFileNamePatterns
A list of regular expression patterns to include certain file names in your GitHub repository or repositories. File names that match the patterns are included in the index. File names that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
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
hasInclusionFileNamePatterns()
method.- Returns:
- A list of regular expression patterns to include certain file names in your GitHub repository or repositories. File names that match the patterns are included in the index. File names that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
-
hasExclusionFolderNamePatterns
public final boolean hasExclusionFolderNamePatterns()For responses, this returns true if the service returned a value for the ExclusionFolderNamePatterns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
exclusionFolderNamePatterns
A list of regular expression patterns to exclude certain folder names in your GitHub repository or repositories. Folder names that match the patterns are excluded from the index. Folder names that don't match the patterns are included in the index. If a folder matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.
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
hasExclusionFolderNamePatterns()
method.- Returns:
- A list of regular expression patterns to exclude certain folder names in your GitHub repository or repositories. Folder names that match the patterns are excluded from the index. Folder names that don't match the patterns are included in the index. If a folder matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.
-
hasExclusionFileTypePatterns
public final boolean hasExclusionFileTypePatterns()For responses, this returns true if the service returned a value for the ExclusionFileTypePatterns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
exclusionFileTypePatterns
A list of regular expression patterns to exclude certain file types in your GitHub repository or repositories. File types that match the patterns are excluded from the index. File types that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
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
hasExclusionFileTypePatterns()
method.- Returns:
- A list of regular expression patterns to exclude certain file types in your GitHub repository or repositories. File types that match the patterns are excluded from the index. File types that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
-
hasExclusionFileNamePatterns
public final boolean hasExclusionFileNamePatterns()For responses, this returns true if the service returned a value for the ExclusionFileNamePatterns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
exclusionFileNamePatterns
A list of regular expression patterns to exclude certain file names in your GitHub repository or repositories. File names that match the patterns are excluded from the index. File names that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
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
hasExclusionFileNamePatterns()
method.- Returns:
- A list of regular expression patterns to exclude certain file names in your GitHub repository or repositories. File names that match the patterns are excluded from the index. File names that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
-
vpcConfiguration
Configuration information of an Amazon Virtual Private Cloud to connect to your GitHub. For more information, see Configuring a VPC.
- Returns:
- Configuration information of an Amazon Virtual Private Cloud to connect to your GitHub. For more information, see Configuring a VPC.
-
hasGitHubRepositoryConfigurationFieldMappings
public final boolean hasGitHubRepositoryConfigurationFieldMappings()For responses, this returns true if the service returned a value for the GitHubRepositoryConfigurationFieldMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
gitHubRepositoryConfigurationFieldMappings
A list of
DataSourceToIndexFieldMapping
objects that map GitHub repository attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.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
hasGitHubRepositoryConfigurationFieldMappings()
method.- Returns:
- A list of
DataSourceToIndexFieldMapping
objects that map GitHub repository attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
-
hasGitHubCommitConfigurationFieldMappings
public final boolean hasGitHubCommitConfigurationFieldMappings()For responses, this returns true if the service returned a value for the GitHubCommitConfigurationFieldMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
gitHubCommitConfigurationFieldMappings
A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub commits to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.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
hasGitHubCommitConfigurationFieldMappings()
method.- Returns:
- A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub commits to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
-
hasGitHubIssueDocumentConfigurationFieldMappings
public final boolean hasGitHubIssueDocumentConfigurationFieldMappings()For responses, this returns true if the service returned a value for the GitHubIssueDocumentConfigurationFieldMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
gitHubIssueDocumentConfigurationFieldMappings
A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub issues to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.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
hasGitHubIssueDocumentConfigurationFieldMappings()
method.- Returns:
- A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub issues to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
-
hasGitHubIssueCommentConfigurationFieldMappings
public final boolean hasGitHubIssueCommentConfigurationFieldMappings()For responses, this returns true if the service returned a value for the GitHubIssueCommentConfigurationFieldMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
gitHubIssueCommentConfigurationFieldMappings
A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub issue comments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.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
hasGitHubIssueCommentConfigurationFieldMappings()
method.- Returns:
- A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub issue comments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
-
hasGitHubIssueAttachmentConfigurationFieldMappings
public final boolean hasGitHubIssueAttachmentConfigurationFieldMappings()For responses, this returns true if the service returned a value for the GitHubIssueAttachmentConfigurationFieldMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
gitHubIssueAttachmentConfigurationFieldMappings
A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub issue attachments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.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
hasGitHubIssueAttachmentConfigurationFieldMappings()
method.- Returns:
- A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub issue attachments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
-
hasGitHubPullRequestCommentConfigurationFieldMappings
public final boolean hasGitHubPullRequestCommentConfigurationFieldMappings()For responses, this returns true if the service returned a value for the GitHubPullRequestCommentConfigurationFieldMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
gitHubPullRequestCommentConfigurationFieldMappings
public final List<DataSourceToIndexFieldMapping> gitHubPullRequestCommentConfigurationFieldMappings()A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub pull request comments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.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
hasGitHubPullRequestCommentConfigurationFieldMappings()
method.- Returns:
- A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub pull request comments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
-
hasGitHubPullRequestDocumentConfigurationFieldMappings
public final boolean hasGitHubPullRequestDocumentConfigurationFieldMappings()For responses, this returns true if the service returned a value for the GitHubPullRequestDocumentConfigurationFieldMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
gitHubPullRequestDocumentConfigurationFieldMappings
public final List<DataSourceToIndexFieldMapping> gitHubPullRequestDocumentConfigurationFieldMappings()A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub pull requests to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.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
hasGitHubPullRequestDocumentConfigurationFieldMappings()
method.- Returns:
- A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub pull requests to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
-
hasGitHubPullRequestDocumentAttachmentConfigurationFieldMappings
public final boolean hasGitHubPullRequestDocumentAttachmentConfigurationFieldMappings()For responses, this returns true if the service returned a value for the GitHubPullRequestDocumentAttachmentConfigurationFieldMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
gitHubPullRequestDocumentAttachmentConfigurationFieldMappings
public final List<DataSourceToIndexFieldMapping> gitHubPullRequestDocumentAttachmentConfigurationFieldMappings()A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub pull request attachments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.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
hasGitHubPullRequestDocumentAttachmentConfigurationFieldMappings()
method.- Returns:
- A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of GitHub pull request attachments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<GitHubConfiguration.Builder,
GitHubConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-