@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).
|
boolean |
hasUserTokenConfigurations()
Returns true if the UserTokenConfigurations 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.
|
UserContextPolicy |
userContextPolicy()
The user context policy.
|
String |
userContextPolicyAsString()
The user context policy.
|
List<UserTokenConfiguration> |
userTokenConfigurations()
The user token configuration.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name for the new index.
public final 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 final 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 final 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 final 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 final String description()
A description for the index.
public final 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 final boolean hasTags()
public final 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 final boolean hasUserTokenConfigurations()
public final List<UserTokenConfiguration> userTokenConfigurations()
The user token configuration.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasUserTokenConfigurations() to see if a value was sent in this field.
public final UserContextPolicy userContextPolicy()
The user context policy.
All indexed content is searchable and displayable for all users. If there is an access control list, it is ignored. You can filter on user and group attributes.
Enables SSO and token-based user access control. All documents with no access control and all documents accessible to the user will be searchable and displayable.
If the service returns an enum value that is not available in the current SDK version, userContextPolicy
will return UserContextPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from userContextPolicyAsString().
All indexed content is searchable and displayable for all users. If there is an access control list, it is ignored. You can filter on user and group attributes.
Enables SSO and token-based user access control. All documents with no access control and all documents accessible to the user will be searchable and displayable.
UserContextPolicypublic final String userContextPolicyAsString()
The user context policy.
All indexed content is searchable and displayable for all users. If there is an access control list, it is ignored. You can filter on user and group attributes.
Enables SSO and token-based user access control. All documents with no access control and all documents accessible to the user will be searchable and displayable.
If the service returns an enum value that is not available in the current SDK version, userContextPolicy
will return UserContextPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from userContextPolicyAsString().
All indexed content is searchable and displayable for all users. If there is an access control list, it is ignored. You can filter on user and group attributes.
Enables SSO and token-based user access control. All documents with no access control and all documents accessible to the user will be searchable and displayable.
UserContextPolicypublic 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 final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.