@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()
Information that describes where the data source is located and how the data source is configured.
|
Date |
getCreatedAt()
The Unix timestamp of when the data source was created.
|
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 |
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 that Amazon Kendra will update the data source.
|
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)
Information that describes where the data source is located and how the data source is configured.
|
void |
setCreatedAt(Date createdAt)
The Unix timestamp of when the data source was created.
|
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 |
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 that Amazon Kendra will update the data source.
|
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)
Information that describes where the data source is located and how the data source is configured.
|
DescribeDataSourceResult |
withCreatedAt(Date createdAt)
The Unix timestamp of when the data source was created.
|
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 |
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 that Amazon Kendra will update the data source.
|
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)
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.
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 DataSourceConfiguration getConfiguration()
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 DescribeDataSourceResult withConfiguration(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.
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 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 that Amazon Kendra will update the data source.
schedule
- The schedule that Amazon Kendra will update the data source.public String getSchedule()
The schedule that Amazon Kendra will update the data source.
public DescribeDataSourceResult withSchedule(String schedule)
The schedule that Amazon Kendra will update the data source.
schedule
- The schedule that Amazon Kendra will update the data source.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 String toString()
toString
in class Object
Object.toString()
public DescribeDataSourceResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.