@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) | 
| String | getClientToken()
 A token that you provide to identify the request to create a data source. | 
| 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. | 
| List<Tag> | getTags()
 A list of key-value pairs that identify the data source. | 
| String | getType()
 The type of repository that contains the data source. | 
| int | hashCode() | 
| void | setClientToken(String clientToken)
 A token that you provide to identify the request to create a data source. | 
| 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 | setTags(Collection<Tag> tags)
 A list of key-value pairs that identify the data source. | 
| void | setType(String type)
 The type of repository that contains the data source. | 
| String | toString()Returns a string representation of this object. | 
| CreateDataSourceRequest | withClientToken(String clientToken)
 A token that you provide to identify the request to create a data source. | 
| 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 | withTags(Collection<Tag> tags)
 A list of key-value pairs that identify the data source. | 
| CreateDataSourceRequest | withTags(Tag... tags)
 A list of key-value pairs that identify the data source. | 
| 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, withSdkRequestTimeoutpublic 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.DataSourceTypepublic String getType()
The type of repository that contains the data source.
DataSourceTypepublic CreateDataSourceRequest withType(String type)
The type of repository that contains the data source.
type - The type of repository that contains the data source.DataSourceTypepublic CreateDataSourceRequest withType(DataSourceType type)
The type of repository that contains the data source.
type - The type of repository that contains the data source.DataSourceTypepublic void setConfiguration(DataSourceConfiguration configuration)
The connector configuration information that is required to access the repository.
 You can't specify the Configuration parameter when the Type parameter is set to
 CUSTOM. If you do, you receive a ValidationException exception.
 
 The Configuration parameter is required for all other data sources.
 
configuration - The connector configuration information that is required to access the repository.
        
        You can't specify the Configuration parameter when the Type parameter is set to
        CUSTOM. If you do, you receive a ValidationException exception.
        
        The Configuration parameter is required for all other data sources.
public DataSourceConfiguration getConfiguration()
The connector configuration information that is required to access the repository.
 You can't specify the Configuration parameter when the Type parameter is set to
 CUSTOM. If you do, you receive a ValidationException exception.
 
 The Configuration parameter is required for all other data sources.
 
         You can't specify the Configuration parameter when the Type parameter is set to
         CUSTOM. If you do, you receive a ValidationException exception.
         
         The Configuration parameter is required for all other data sources.
public CreateDataSourceRequest withConfiguration(DataSourceConfiguration configuration)
The connector configuration information that is required to access the repository.
 You can't specify the Configuration parameter when the Type parameter is set to
 CUSTOM. If you do, you receive a ValidationException exception.
 
 The Configuration parameter is required for all other data sources.
 
configuration - The connector configuration information that is required to access the repository.
        
        You can't specify the Configuration parameter when the Type parameter is set to
        CUSTOM. If you do, you receive a ValidationException exception.
        
        The Configuration parameter is required for all other data sources.
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.
 
 You can't specify the Schedule parameter when the Type parameter is set to
 CUSTOM. If you do, you receive a ValidationException exception.
 
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.
        
        You can't specify the Schedule parameter when the Type parameter is set to
        CUSTOM. If you do, you receive a ValidationException exception.
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.
 
 You can't specify the Schedule parameter when the Type parameter is set to
 CUSTOM. If you do, you receive a ValidationException exception.
 
StartDataSourceSyncJob operation to update the index.
         
         You can't specify the Schedule parameter when the Type parameter is set to
         CUSTOM. If you do, you receive a ValidationException exception.
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.
 
 You can't specify the Schedule parameter when the Type parameter is set to
 CUSTOM. If you do, you receive a ValidationException exception.
 
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.
        
        You can't specify the Schedule parameter when the Type parameter is set to
        CUSTOM. If you do, you receive a ValidationException exception.
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.
 You can't specify the RoleArn parameter when the Type parameter is set to
 CUSTOM. If you do, you receive a ValidationException exception.
 
 The RoleArn parameter is required for all other data sources.
 
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.
        
        You can't specify the RoleArn parameter when the Type parameter is set to
        CUSTOM. If you do, you receive a ValidationException exception.
        
        The RoleArn parameter is required for all other data sources.
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.
 You can't specify the RoleArn parameter when the Type parameter is set to
 CUSTOM. If you do, you receive a ValidationException exception.
 
 The RoleArn parameter is required for all other data sources.
 
         You can't specify the RoleArn parameter when the Type parameter is set to
         CUSTOM. If you do, you receive a ValidationException exception.
         
         The RoleArn parameter is required for all other data sources.
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.
 You can't specify the RoleArn parameter when the Type parameter is set to
 CUSTOM. If you do, you receive a ValidationException exception.
 
 The RoleArn parameter is required for all other data sources.
 
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.
        
        You can't specify the RoleArn parameter when the Type parameter is set to
        CUSTOM. If you do, you receive a ValidationException exception.
        
        The RoleArn parameter is required for all other data sources.
public List<Tag> getTags()
A list of key-value pairs that identify the data source. You can use the tags to identify and organize your resources and to control access to resources.
public void setTags(Collection<Tag> tags)
A list of key-value pairs that identify the data source. You can use the tags to identify and organize your resources and to control access to resources.
tags - A list of key-value pairs that identify the data source. You can use the tags to identify and organize
        your resources and to control access to resources.public CreateDataSourceRequest withTags(Tag... tags)
A list of key-value pairs that identify the data source. You can use the tags to identify and organize your resources and to control access to resources.
 NOTE: This method appends the values to the existing list (if any). Use
 setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
 existing values.
 
tags - A list of key-value pairs that identify the data source. You can use the tags to identify and organize
        your resources and to control access to resources.public CreateDataSourceRequest withTags(Collection<Tag> tags)
A list of key-value pairs that identify the data source. You can use the tags to identify and organize your resources and to control access to resources.
tags - A list of key-value pairs that identify the data source. You can use the tags to identify and organize
        your resources and to control access to resources.public void setClientToken(String clientToken)
 A token that you provide to identify the request to create a data source. Multiple calls to the
 CreateDataSource operation with the same client token will create only one data source.
 
clientToken - A token that you provide to identify the request to create a data source. Multiple calls to the
        CreateDataSource operation with the same client token will create only one data source.public String getClientToken()
 A token that you provide to identify the request to create a data source. Multiple calls to the
 CreateDataSource operation with the same client token will create only one data source.
 
CreateDataSource operation with the same client token will create only one data source.public CreateDataSourceRequest withClientToken(String clientToken)
 A token that you provide to identify the request to create a data source. Multiple calls to the
 CreateDataSource operation with the same client token will create only one data source.
 
clientToken - A token that you provide to identify the request to create a data source. Multiple calls to the
        CreateDataSource operation with the same client token will create only one data source.public String toString()
toString in class ObjectObject.toString()public CreateDataSourceRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()