public static class CreateIndexDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateIndexDetails |
build() |
CreateIndexDetails.Builder |
compartmentId(String compartmentId)
The OCID of the table’s compartment.
|
CreateIndexDetails.Builder |
copy(CreateIndexDetails model) |
CreateIndexDetails.Builder |
isIfNotExists(Boolean isIfNotExists)
If true, the operation completes successfully even when the index exists.
|
CreateIndexDetails.Builder |
keys(List<IndexKey> keys)
A set of keys for a secondary index.
|
CreateIndexDetails.Builder |
name(String name)
Index name.
|
public CreateIndexDetails.Builder name(String name)
Index name.
name
- the value to setpublic CreateIndexDetails.Builder compartmentId(String compartmentId)
The OCID of the table’s compartment. Required if the tableNameOrId path parameter is a table name. Optional if tableNameOrId is an OCID. If tableNameOrId is an OCID, and compartmentId is supplied, the latter must match the identified table’s compartmentId.
compartmentId
- the value to setpublic CreateIndexDetails.Builder keys(List<IndexKey> keys)
A set of keys for a secondary index.
keys
- the value to setpublic CreateIndexDetails.Builder isIfNotExists(Boolean isIfNotExists)
If true, the operation completes successfully even when the index exists. Otherwise, an attempt to create an index that already exists will return an error.
isIfNotExists
- the value to setpublic CreateIndexDetails build()
public CreateIndexDetails.Builder copy(CreateIndexDetails model)
Copyright © 2016–2024. All rights reserved.