@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeDataSourceResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeDataSourceResult() |
Modifier and Type | Method and Description |
---|---|
DescribeDataSourceResult |
clone() |
boolean |
equals(Object obj) |
DataSourceConfiguration |
getConfiguration()
Describes how the data source is configured.
|
Date |
getCreatedAt()
The Unix timestamp of when the data source was created.
|
CustomDocumentEnrichmentConfiguration |
getCustomDocumentEnrichmentConfiguration()
Configuration information for altering document metadata and content during the document ingestion process when
you describe a data source.
|
String |
getDescription()
The description of the data source.
|
String |
getErrorMessage()
When the
Status field value is FAILED , the ErrorMessage field contains a
description of the error that caused the data source to fail. |
String |
getId()
The identifier of the data source.
|
String |
getIndexId()
The identifier of the index that contains the data source.
|
String |
getLanguageCode()
The code for a language.
|
String |
getName()
The name that you gave the data source when it was created.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.
|
String |
getSchedule()
The schedule for Amazon Kendra to update the index.
|
String |
getStatus()
The current status of the data source.
|
String |
getType()
The type of the data source.
|
Date |
getUpdatedAt()
The Unix timestamp of when the data source was last updated.
|
int |
hashCode() |
void |
setConfiguration(DataSourceConfiguration configuration)
Describes how the data source is configured.
|
void |
setCreatedAt(Date createdAt)
The Unix timestamp of when the data source was created.
|
void |
setCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process when
you describe a data source.
|
void |
setDescription(String description)
The description of the data source.
|
void |
setErrorMessage(String errorMessage)
When the
Status field value is FAILED , the ErrorMessage field contains a
description of the error that caused the data source to fail. |
void |
setId(String id)
The identifier of the data source.
|
void |
setIndexId(String indexId)
The identifier of the index that contains the data source.
|
void |
setLanguageCode(String languageCode)
The code for a language.
|
void |
setName(String name)
The name that you gave the data source when it was created.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.
|
void |
setSchedule(String schedule)
The schedule for Amazon Kendra to update the index.
|
void |
setStatus(String status)
The current status of the data source.
|
void |
setType(String type)
The type of the data source.
|
void |
setUpdatedAt(Date updatedAt)
The Unix timestamp of when the data source was last updated.
|
String |
toString()
Returns a string representation of this object.
|
DescribeDataSourceResult |
withConfiguration(DataSourceConfiguration configuration)
Describes how the data source is configured.
|
DescribeDataSourceResult |
withCreatedAt(Date createdAt)
The Unix timestamp of when the data source was created.
|
DescribeDataSourceResult |
withCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process when
you describe a data source.
|
DescribeDataSourceResult |
withDescription(String description)
The description of the data source.
|
DescribeDataSourceResult |
withErrorMessage(String errorMessage)
When the
Status field value is FAILED , the ErrorMessage field contains a
description of the error that caused the data source to fail. |
DescribeDataSourceResult |
withId(String id)
The identifier of the data source.
|
DescribeDataSourceResult |
withIndexId(String indexId)
The identifier of the index that contains the data source.
|
DescribeDataSourceResult |
withLanguageCode(String languageCode)
The code for a language.
|
DescribeDataSourceResult |
withName(String name)
The name that you gave the data source when it was created.
|
DescribeDataSourceResult |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.
|
DescribeDataSourceResult |
withSchedule(String schedule)
The schedule for Amazon Kendra to update the index.
|
DescribeDataSourceResult |
withStatus(DataSourceStatus status)
The current status of the data source.
|
DescribeDataSourceResult |
withStatus(String status)
The current status of the data source.
|
DescribeDataSourceResult |
withType(DataSourceType type)
The type of the data source.
|
DescribeDataSourceResult |
withType(String type)
The type of the data source.
|
DescribeDataSourceResult |
withUpdatedAt(Date updatedAt)
The Unix timestamp of when the data source was last updated.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setId(String id)
The identifier of the data source.
id
- The identifier of the data source.public String getId()
The identifier of the data source.
public DescribeDataSourceResult withId(String id)
The identifier of the data source.
id
- The identifier of the data source.public void setIndexId(String indexId)
The identifier of the index that contains the data source.
indexId
- The identifier of the index that contains the data source.public String getIndexId()
The identifier of the index that contains the data source.
public DescribeDataSourceResult withIndexId(String indexId)
The identifier of the index that contains the data source.
indexId
- The identifier of the index that contains the data source.public void setName(String name)
The name that you gave the data source when it was created.
name
- The name that you gave the data source when it was created.public String getName()
The name that you gave the data source when it was created.
public DescribeDataSourceResult withName(String name)
The name that you gave the data source when it was created.
name
- The name that you gave the data source when it was created.public void setType(String type)
The type of the data source.
type
- The type of the data source.DataSourceType
public String getType()
The type of the data source.
DataSourceType
public DescribeDataSourceResult withType(String type)
The type of the data source.
type
- The type of the data source.DataSourceType
public DescribeDataSourceResult withType(DataSourceType type)
The type of the data source.
type
- The type of the data source.DataSourceType
public void setConfiguration(DataSourceConfiguration configuration)
Describes how the data source is configured. The specific information in the description depends on the data source provider.
configuration
- Describes how the data source is configured. The specific information in the description depends on the
data source provider.public DataSourceConfiguration getConfiguration()
Describes how the data source is configured. The specific information in the description depends on the data source provider.
public DescribeDataSourceResult withConfiguration(DataSourceConfiguration configuration)
Describes how the data source is configured. The specific information in the description depends on the data source provider.
configuration
- Describes how the data source is configured. The specific information in the description depends on the
data source provider.public void setCreatedAt(Date createdAt)
The Unix timestamp of when the data source was created.
createdAt
- The Unix timestamp of when the data source was created.public Date getCreatedAt()
The Unix timestamp of when the data source was created.
public DescribeDataSourceResult withCreatedAt(Date createdAt)
The Unix timestamp of when the data source was created.
createdAt
- The Unix timestamp of when the data source was created.public void setUpdatedAt(Date updatedAt)
The Unix timestamp of when the data source was last updated.
updatedAt
- The Unix timestamp of when the data source was last updated.public Date getUpdatedAt()
The Unix timestamp of when the data source was last updated.
public DescribeDataSourceResult withUpdatedAt(Date updatedAt)
The Unix timestamp of when the data source was last updated.
updatedAt
- The Unix timestamp of when the data source was last updated.public void setDescription(String description)
The description of the data source.
description
- The description of the data source.public String getDescription()
The description of the data source.
public DescribeDataSourceResult withDescription(String description)
The description of the data source.
description
- The description of the data source.public void setStatus(String status)
The current status of the data source. When the status is ACTIVE
the data source is ready to use.
When the status is FAILED
, the ErrorMessage
field contains the reason that the data
source failed.
status
- The current status of the data source. When the status is ACTIVE
the data source is ready to
use. When the status is FAILED
, the ErrorMessage
field contains the reason that
the data source failed.DataSourceStatus
public String getStatus()
The current status of the data source. When the status is ACTIVE
the data source is ready to use.
When the status is FAILED
, the ErrorMessage
field contains the reason that the data
source failed.
ACTIVE
the data source is ready to
use. When the status is FAILED
, the ErrorMessage
field contains the reason that
the data source failed.DataSourceStatus
public DescribeDataSourceResult withStatus(String status)
The current status of the data source. When the status is ACTIVE
the data source is ready to use.
When the status is FAILED
, the ErrorMessage
field contains the reason that the data
source failed.
status
- The current status of the data source. When the status is ACTIVE
the data source is ready to
use. When the status is FAILED
, the ErrorMessage
field contains the reason that
the data source failed.DataSourceStatus
public DescribeDataSourceResult withStatus(DataSourceStatus status)
The current status of the data source. When the status is ACTIVE
the data source is ready to use.
When the status is FAILED
, the ErrorMessage
field contains the reason that the data
source failed.
status
- The current status of the data source. When the status is ACTIVE
the data source is ready to
use. When the status is FAILED
, the ErrorMessage
field contains the reason that
the data source failed.DataSourceStatus
public void setSchedule(String schedule)
The schedule for Amazon Kendra to update the index.
schedule
- The schedule for Amazon Kendra to update the index.public String getSchedule()
The schedule for Amazon Kendra to update the index.
public DescribeDataSourceResult withSchedule(String schedule)
The schedule for Amazon Kendra to update the index.
schedule
- The schedule for Amazon Kendra to update the index.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.
roleArn
- The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.public String getRoleArn()
The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.
public DescribeDataSourceResult withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.
roleArn
- The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.public void setErrorMessage(String errorMessage)
When the Status
field value is FAILED
, the ErrorMessage
field contains a
description of the error that caused the data source to fail.
errorMessage
- When the Status
field value is FAILED
, the ErrorMessage
field
contains a description of the error that caused the data source to fail.public String getErrorMessage()
When the Status
field value is FAILED
, the ErrorMessage
field contains a
description of the error that caused the data source to fail.
Status
field value is FAILED
, the ErrorMessage
field
contains a description of the error that caused the data source to fail.public DescribeDataSourceResult withErrorMessage(String errorMessage)
When the Status
field value is FAILED
, the ErrorMessage
field contains a
description of the error that caused the data source to fail.
errorMessage
- When the Status
field value is FAILED
, the ErrorMessage
field
contains a description of the error that caused the data source to fail.public void setLanguageCode(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.
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.public String getLanguageCode()
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.
public DescribeDataSourceResult withLanguageCode(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.
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.public void setCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process when you describe a data source.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
customDocumentEnrichmentConfiguration
- Configuration information for altering document metadata and content during the document ingestion process
when you describe a data source.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
public CustomDocumentEnrichmentConfiguration getCustomDocumentEnrichmentConfiguration()
Configuration information for altering document metadata and content during the document ingestion process when you describe a data source.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
public DescribeDataSourceResult withCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process when you describe a data source.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
customDocumentEnrichmentConfiguration
- Configuration information for altering document metadata and content during the document ingestion process
when you describe a data source.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
public String toString()
toString
in class Object
Object.toString()
public DescribeDataSourceResult clone()