@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDataSourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateDataSourceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDataSourceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
DataSourceConfiguration |
getConfiguration()
The connector configuration information that is required to access the repository.
|
String |
getDescription()
A description for the data source.
|
String |
getIndexId()
The identifier of the index that should be associated with this data source.
|
String |
getName()
A unique name for the data source.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of a role with permission to access the data source.
|
String |
getSchedule()
Sets the frequency that Amazon Kendra will check the documents in your repository and update the index.
|
String |
getType()
The type of repository that contains the data source.
|
int |
hashCode() |
void |
setConfiguration(DataSourceConfiguration configuration)
The connector configuration information that is required to access the repository.
|
void |
setDescription(String description)
A description for the data source.
|
void |
setIndexId(String indexId)
The identifier of the index that should be associated with this data source.
|
void |
setName(String name)
A unique name for the data source.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role with permission to access the data source.
|
void |
setSchedule(String schedule)
Sets the frequency that Amazon Kendra will check the documents in your repository and update the index.
|
void |
setType(String type)
The type of repository that contains the data source.
|
String |
toString()
Returns a string representation of this object.
|
CreateDataSourceRequest |
withConfiguration(DataSourceConfiguration configuration)
The connector configuration information that is required to access the repository.
|
CreateDataSourceRequest |
withDescription(String description)
A description for the data source.
|
CreateDataSourceRequest |
withIndexId(String indexId)
The identifier of the index that should be associated with this data source.
|
CreateDataSourceRequest |
withName(String name)
A unique name for the data source.
|
CreateDataSourceRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role with permission to access the data source.
|
CreateDataSourceRequest |
withSchedule(String schedule)
Sets the frequency that Amazon Kendra will check the documents in your repository and update the index.
|
CreateDataSourceRequest |
withType(DataSourceType type)
The type of repository that contains the data source.
|
CreateDataSourceRequest |
withType(String type)
The type of repository that contains the data source.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
A unique name for the data source. A data source name can't be changed without deleting and recreating the data source.
name
- A unique name for the data source. A data source name can't be changed without deleting and recreating the
data source.public String getName()
A unique name for the data source. A data source name can't be changed without deleting and recreating the data source.
public CreateDataSourceRequest withName(String name)
A unique name for the data source. A data source name can't be changed without deleting and recreating the data source.
name
- A unique name for the data source. A data source name can't be changed without deleting and recreating the
data source.public void setIndexId(String indexId)
The identifier of the index that should be associated with this data source.
indexId
- The identifier of the index that should be associated with this data source.public String getIndexId()
The identifier of the index that should be associated with this data source.
public CreateDataSourceRequest withIndexId(String indexId)
The identifier of the index that should be associated with this data source.
indexId
- The identifier of the index that should be associated with this data source.public void setType(String type)
The type of repository that contains the data source.
type
- The type of repository that contains the data source.DataSourceType
public String getType()
The type of repository that contains the data source.
DataSourceType
public CreateDataSourceRequest withType(String type)
The type of repository that contains the data source.
type
- The type of repository that contains the data source.DataSourceType
public CreateDataSourceRequest withType(DataSourceType type)
The type of repository that contains the data source.
type
- The type of repository that contains the data source.DataSourceType
public void setConfiguration(DataSourceConfiguration configuration)
The connector configuration information that is required to access the repository.
configuration
- The connector configuration information that is required to access the repository.public DataSourceConfiguration getConfiguration()
The connector configuration information that is required to access the repository.
public CreateDataSourceRequest withConfiguration(DataSourceConfiguration configuration)
The connector configuration information that is required to access the repository.
configuration
- The connector configuration information that is required to access the repository.public void setDescription(String description)
A description for the data source.
description
- A description for the data source.public String getDescription()
A description for the data source.
public CreateDataSourceRequest withDescription(String description)
A description for the data source.
description
- A description for the data source.public void setSchedule(String schedule)
Sets the frequency that Amazon Kendra will check the documents in your repository and update the index. If you
don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
operation to update the index.
schedule
- Sets the frequency that Amazon Kendra will check the documents in your repository and update the index. If
you don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
operation to update the index.public String getSchedule()
Sets the frequency that Amazon Kendra will check the documents in your repository and update the index. If you
don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
operation to update the index.
StartDataSourceSyncJob
operation to update the index.public CreateDataSourceRequest withSchedule(String schedule)
Sets the frequency that Amazon Kendra will check the documents in your repository and update the index. If you
don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
operation to update the index.
schedule
- Sets the frequency that Amazon Kendra will check the documents in your repository and update the index. If
you don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
operation to update the index.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role with permission to access the data source. For more information, see IAM Roles for Amazon Kendra.
roleArn
- The Amazon Resource Name (ARN) of a role with permission to access the data source. For more information,
see IAM Roles for Amazon Kendra.public String getRoleArn()
The Amazon Resource Name (ARN) of a role with permission to access the data source. For more information, see IAM Roles for Amazon Kendra.
public CreateDataSourceRequest withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role with permission to access the data source. For more information, see IAM Roles for Amazon Kendra.
roleArn
- The Amazon Resource Name (ARN) of a role with permission to access the data source. For more information,
see IAM Roles for Amazon Kendra.public String toString()
toString
in class Object
Object.toString()
public CreateDataSourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.