@Generated(value="software.amazon.awssdk:codegen") public final class CreateIndexRequest extends KendraRequest implements ToCopyableBuilder<CreateIndexRequest.Builder,CreateIndexRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateIndexRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateIndexRequest.Builder |
builder() |
String |
clientToken()
A token that you provide to identify the request to create an index.
|
String |
description()
A description for the index.
|
IndexEdition |
edition()
The Amazon Kendra edition to use for the index.
|
String |
editionAsString()
The Amazon Kendra edition to use for the index.
|
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 |
name()
The name for the new index.
|
String |
roleArn()
An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon
CloudWatch logs and metrics.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateIndexRequest.Builder> |
serializableBuilderClass() |
ServerSideEncryptionConfiguration |
serverSideEncryptionConfiguration()
The identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra.
|
List<Tag> |
tags()
A list of key-value pairs that identify the index.
|
CreateIndexRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
The name for the new index.
public IndexEdition edition()
The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for
development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases.
Once you set the edition for an index, it can't be changed.
The Edition parameter is optional. If you don't supply a value, the default is
ENTERPRISE_EDITION.
If the service returns an enum value that is not available in the current SDK version, edition will
return IndexEdition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
editionAsString().
DEVELOPER_EDITION for indexes
intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your
production databases. Once you set the edition for an index, it can't be changed.
The Edition parameter is optional. If you don't supply a value, the default is
ENTERPRISE_EDITION.
IndexEditionpublic String editionAsString()
The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for
development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases.
Once you set the edition for an index, it can't be changed.
The Edition parameter is optional. If you don't supply a value, the default is
ENTERPRISE_EDITION.
If the service returns an enum value that is not available in the current SDK version, edition will
return IndexEdition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
editionAsString().
DEVELOPER_EDITION for indexes
intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your
production databases. Once you set the edition for an index, it can't be changed.
The Edition parameter is optional. If you don't supply a value, the default is
ENTERPRISE_EDITION.
IndexEditionpublic String roleArn()
An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon
CloudWatch logs and metrics. This is also the role used when you use the BatchPutDocument operation
to index documents from an Amazon S3 bucket.
BatchPutDocument operation to index documents from an Amazon S3 bucket.public ServerSideEncryptionConfiguration serverSideEncryptionConfiguration()
The identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs.
public String description()
A description for the index.
public String clientToken()
A token that you provide to identify the request to create an index. Multiple calls to the
CreateIndex operation with the same client token will create only one index.
CreateIndex operation with the same client token will create only one index.public boolean hasTags()
public List<Tag> tags()
A list of key-value pairs that identify the index. 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 CreateIndexRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateIndexRequest.Builder,CreateIndexRequest>toBuilder in class KendraRequestpublic static CreateIndexRequest.Builder builder()
public static Class<? extends CreateIndexRequest.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.