@Generated(value="software.amazon.awssdk:codegen") public final class DescribeDataSourceResponse extends KendraResponse implements ToCopyableBuilder<DescribeDataSourceResponse.Builder,DescribeDataSourceResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DescribeDataSourceResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DescribeDataSourceResponse.Builder |
builder() |
DataSourceConfiguration |
configuration()
Information that describes where the data source is located and how the data source is configured.
|
Instant |
createdAt()
The Unix timestamp of when the data source was created.
|
String |
description()
The description of the data source.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
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. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The identifier of the data source.
|
String |
indexId()
The identifier of the index that contains the data source.
|
String |
name()
The name that you gave the data source when it was created.
|
String |
roleArn()
The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.
|
String |
schedule()
The schedule that Amazon Kendra will update the data source.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribeDataSourceResponse.Builder> |
serializableBuilderClass() |
DataSourceStatus |
status()
The current status of the data source.
|
String |
statusAsString()
The current status of the data source.
|
DescribeDataSourceResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
DataSourceType |
type()
The type of the data source.
|
String |
typeAsString()
The type of the data source.
|
Instant |
updatedAt()
The Unix timestamp of when the data source was last updated.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The identifier of the data source.
public final String indexId()
The identifier of the index that contains the data source.
public final String name()
The name that you gave the data source when it was created.
public final DataSourceType type()
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().
DataSourceTypepublic 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().
DataSourceTypepublic final DataSourceConfiguration configuration()
Information that describes where the data source is located and how the data source is configured. The specific information in the description depends on the data source provider.
public final Instant createdAt()
The Unix timestamp of when the data source was created.
public final Instant updatedAt()
The Unix timestamp of when the data source was last updated.
public final String description()
The description of the data source.
public final 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.
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().
ACTIVE the data source is ready to
use. When the status is FAILED, the ErrorMessage field contains the reason that
the data source failed.DataSourceStatuspublic final String statusAsString()
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.
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().
ACTIVE the data source is ready to
use. When the status is FAILED, the ErrorMessage field contains the reason that
the data source failed.DataSourceStatuspublic final String schedule()
The schedule that Amazon Kendra will update the data source.
public final String roleArn()
The Amazon Resource Name (ARN) of the role that enables the data source to access its resources.
public final 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.
Status field value is FAILED, the ErrorMessage field
contains a description of the error that caused the data source to fail.public DescribeDataSourceResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DescribeDataSourceResponse.Builder,DescribeDataSourceResponse>toBuilder in class AwsResponsepublic static DescribeDataSourceResponse.Builder builder()
public static Class<? extends DescribeDataSourceResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.