@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataSource extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about a data source.
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
DataSource |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedAt()
The time at which the data source was created.
|
String |
getDataDeletionPolicy()
The data deletion policy for the data source.
|
DataSourceConfiguration |
getDataSourceConfiguration()
The connection configuration for the data source.
|
String |
getDataSourceId()
The unique identifier of the data source.
|
String |
getDescription()
The description of the data source.
|
List<String> |
getFailureReasons()
The detailed reasons on the failure to delete a data source.
|
String |
getKnowledgeBaseId()
The unique identifier of the knowledge base to which the data source belongs.
|
String |
getName()
The name of the data source.
|
ServerSideEncryptionConfiguration |
getServerSideEncryptionConfiguration()
Contains details about the configuration of the server-side encryption.
|
String |
getStatus()
The status of the data source.
|
Date |
getUpdatedAt()
The time at which the data source was last updated.
|
VectorIngestionConfiguration |
getVectorIngestionConfiguration()
Contains details about how to ingest the documents in the data source.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedAt(Date createdAt)
The time at which the data source was created.
|
void |
setDataDeletionPolicy(String dataDeletionPolicy)
The data deletion policy for the data source.
|
void |
setDataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration)
The connection configuration for the data source.
|
void |
setDataSourceId(String dataSourceId)
The unique identifier of the data source.
|
void |
setDescription(String description)
The description of the data source.
|
void |
setFailureReasons(Collection<String> failureReasons)
The detailed reasons on the failure to delete a data source.
|
void |
setKnowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base to which the data source belongs.
|
void |
setName(String name)
The name of the data source.
|
void |
setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)
Contains details about the configuration of the server-side encryption.
|
void |
setStatus(String status)
The status of the data source.
|
void |
setUpdatedAt(Date updatedAt)
The time at which the data source was last updated.
|
void |
setVectorIngestionConfiguration(VectorIngestionConfiguration vectorIngestionConfiguration)
Contains details about how to ingest the documents in the data source.
|
String |
toString()
Returns a string representation of this object.
|
DataSource |
withCreatedAt(Date createdAt)
The time at which the data source was created.
|
DataSource |
withDataDeletionPolicy(DataDeletionPolicy dataDeletionPolicy)
The data deletion policy for the data source.
|
DataSource |
withDataDeletionPolicy(String dataDeletionPolicy)
The data deletion policy for the data source.
|
DataSource |
withDataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration)
The connection configuration for the data source.
|
DataSource |
withDataSourceId(String dataSourceId)
The unique identifier of the data source.
|
DataSource |
withDescription(String description)
The description of the data source.
|
DataSource |
withFailureReasons(Collection<String> failureReasons)
The detailed reasons on the failure to delete a data source.
|
DataSource |
withFailureReasons(String... failureReasons)
The detailed reasons on the failure to delete a data source.
|
DataSource |
withKnowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base to which the data source belongs.
|
DataSource |
withName(String name)
The name of the data source.
|
DataSource |
withServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)
Contains details about the configuration of the server-side encryption.
|
DataSource |
withStatus(DataSourceStatus status)
The status of the data source.
|
DataSource |
withStatus(String status)
The status of the data source.
|
DataSource |
withUpdatedAt(Date updatedAt)
The time at which the data source was last updated.
|
DataSource |
withVectorIngestionConfiguration(VectorIngestionConfiguration vectorIngestionConfiguration)
Contains details about how to ingest the documents in the data source.
|
public void setCreatedAt(Date createdAt)
The time at which the data source was created.
createdAt
- The time at which the data source was created.public Date getCreatedAt()
The time at which the data source was created.
public DataSource withCreatedAt(Date createdAt)
The time at which the data source was created.
createdAt
- The time at which the data source was created.public void setDataDeletionPolicy(String dataDeletionPolicy)
The data deletion policy for the data source.
dataDeletionPolicy
- The data deletion policy for the data source.DataDeletionPolicy
public String getDataDeletionPolicy()
The data deletion policy for the data source.
DataDeletionPolicy
public DataSource withDataDeletionPolicy(String dataDeletionPolicy)
The data deletion policy for the data source.
dataDeletionPolicy
- The data deletion policy for the data source.DataDeletionPolicy
public DataSource withDataDeletionPolicy(DataDeletionPolicy dataDeletionPolicy)
The data deletion policy for the data source.
dataDeletionPolicy
- The data deletion policy for the data source.DataDeletionPolicy
public void setDataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration)
The connection configuration for the data source.
dataSourceConfiguration
- The connection configuration for the data source.public DataSourceConfiguration getDataSourceConfiguration()
The connection configuration for the data source.
public DataSource withDataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration)
The connection configuration for the data source.
dataSourceConfiguration
- The connection configuration for the data source.public void setDataSourceId(String dataSourceId)
The unique identifier of the data source.
dataSourceId
- The unique identifier of the data source.public String getDataSourceId()
The unique identifier of the data source.
public DataSource withDataSourceId(String dataSourceId)
The unique identifier of the data source.
dataSourceId
- The unique identifier of the data source.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 DataSource withDescription(String description)
The description of the data source.
description
- The description of the data source.public List<String> getFailureReasons()
The detailed reasons on the failure to delete a data source.
public void setFailureReasons(Collection<String> failureReasons)
The detailed reasons on the failure to delete a data source.
failureReasons
- The detailed reasons on the failure to delete a data source.public DataSource withFailureReasons(String... failureReasons)
The detailed reasons on the failure to delete a data source.
NOTE: This method appends the values to the existing list (if any). Use
setFailureReasons(java.util.Collection)
or withFailureReasons(java.util.Collection)
if you want
to override the existing values.
failureReasons
- The detailed reasons on the failure to delete a data source.public DataSource withFailureReasons(Collection<String> failureReasons)
The detailed reasons on the failure to delete a data source.
failureReasons
- The detailed reasons on the failure to delete a data source.public void setKnowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base to which the data source belongs.
knowledgeBaseId
- The unique identifier of the knowledge base to which the data source belongs.public String getKnowledgeBaseId()
The unique identifier of the knowledge base to which the data source belongs.
public DataSource withKnowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base to which the data source belongs.
knowledgeBaseId
- The unique identifier of the knowledge base to which the data source belongs.public void setName(String name)
The name of the data source.
name
- The name of the data source.public String getName()
The name of the data source.
public DataSource withName(String name)
The name of the data source.
name
- The name of the data source.public void setServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)
Contains details about the configuration of the server-side encryption.
serverSideEncryptionConfiguration
- Contains details about the configuration of the server-side encryption.public ServerSideEncryptionConfiguration getServerSideEncryptionConfiguration()
Contains details about the configuration of the server-side encryption.
public DataSource withServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)
Contains details about the configuration of the server-side encryption.
serverSideEncryptionConfiguration
- Contains details about the configuration of the server-side encryption.public void setStatus(String status)
The status of the data source. The following statuses are possible:
Available – The data source has been created and is ready for ingestion into the knowledge base.
Deleting – The data source is being deleted.
status
- The status of the data source. The following statuses are possible:
Available – The data source has been created and is ready for ingestion into the knowledge base.
Deleting – The data source is being deleted.
DataSourceStatus
public String getStatus()
The status of the data source. The following statuses are possible:
Available – The data source has been created and is ready for ingestion into the knowledge base.
Deleting – The data source is being deleted.
Available – The data source has been created and is ready for ingestion into the knowledge base.
Deleting – The data source is being deleted.
DataSourceStatus
public DataSource withStatus(String status)
The status of the data source. The following statuses are possible:
Available – The data source has been created and is ready for ingestion into the knowledge base.
Deleting – The data source is being deleted.
status
- The status of the data source. The following statuses are possible:
Available – The data source has been created and is ready for ingestion into the knowledge base.
Deleting – The data source is being deleted.
DataSourceStatus
public DataSource withStatus(DataSourceStatus status)
The status of the data source. The following statuses are possible:
Available – The data source has been created and is ready for ingestion into the knowledge base.
Deleting – The data source is being deleted.
status
- The status of the data source. The following statuses are possible:
Available – The data source has been created and is ready for ingestion into the knowledge base.
Deleting – The data source is being deleted.
DataSourceStatus
public void setUpdatedAt(Date updatedAt)
The time at which the data source was last updated.
updatedAt
- The time at which the data source was last updated.public Date getUpdatedAt()
The time at which the data source was last updated.
public DataSource withUpdatedAt(Date updatedAt)
The time at which the data source was last updated.
updatedAt
- The time at which the data source was last updated.public void setVectorIngestionConfiguration(VectorIngestionConfiguration vectorIngestionConfiguration)
Contains details about how to ingest the documents in the data source.
vectorIngestionConfiguration
- Contains details about how to ingest the documents in the data source.public VectorIngestionConfiguration getVectorIngestionConfiguration()
Contains details about how to ingest the documents in the data source.
public DataSource withVectorIngestionConfiguration(VectorIngestionConfiguration vectorIngestionConfiguration)
Contains details about how to ingest the documents in the data source.
vectorIngestionConfiguration
- Contains details about how to ingest the documents in the data source.public String toString()
toString
in class Object
Object.toString()
public DataSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.