@Generated(value="software.amazon.awssdk:codegen") public final class CreateDataSourceRequest extends KendraRequest implements ToCopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateDataSourceRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateDataSourceRequest.Builder |
builder() |
DataSourceConfiguration |
configuration()
The connector configuration information that is required to access the repository.
|
String |
description()
A description for the data source.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
indexId()
The identifier of the index that should be associated with this data source.
|
String |
name()
A unique name for the data source.
|
String |
roleArn()
The Amazon Resource Name (ARN) of a role with permission to access the data source.
|
String |
schedule()
Sets the frequency that Amazon Kendra will check the documents in your repository and update the index.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateDataSourceRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
A list of key-value pairs that identify the data source.
|
CreateDataSourceRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
DataSourceType |
type()
The type of repository that contains the data source.
|
String |
typeAsString()
The type of repository that contains the data source.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String 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 indexId()
The identifier of the index that should be associated with this data source.
public DataSourceType type()
The type of repository that contains 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 String typeAsString()
The type of repository that contains 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 DataSourceConfiguration configuration()
The connector configuration information that is required to access the repository.
public String description()
A description for the data source.
public 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.
StartDataSourceSyncJob operation to update the index.public 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.
public boolean hasTags()
public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public CreateDataSourceRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>toBuilder in class KendraRequestpublic static CreateDataSourceRequest.Builder builder()
public static Class<? extends CreateDataSourceRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.