Package com.oracle.bmc.nosql.model
Class CreateIndexDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.nosql.model.CreateIndexDetails.Builder
-
- Enclosing class:
- CreateIndexDetails
public static class CreateIndexDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
name
public CreateIndexDetails.Builder name(String name)
Index name.- Parameters:
name
- the value to set- Returns:
- this builder
-
compartmentId
public 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.
- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
keys
public CreateIndexDetails.Builder keys(List<IndexKey> keys)
A set of keys for a secondary index.- Parameters:
keys
- the value to set- Returns:
- this builder
-
isIfNotExists
public 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.
- Parameters:
isIfNotExists
- the value to set- Returns:
- this builder
-
build
public CreateIndexDetails build()
-
copy
public CreateIndexDetails.Builder copy(CreateIndexDetails model)
-
-