@@ -93,6 +93,7 @@ serverless and regional availability, see [Understanding indexes](https://docs.p
9393``` java
9494import io.pinecone.clients.Pinecone ;
9595import org.openapitools.client.model.IndexModel ;
96+ import org.openapitools.control.client.model.DeletionProtection ;
9697
9798...
9899
@@ -114,6 +115,8 @@ The following is a minimal example of creating a pod-based index. For all the po
114115``` java
115116import io.pinecone.clients.Pinecone ;
116117import org.openapitools.client.model.IndexModel ;
118+ import org.openapitools.control.client.model.DeletionProtection ;
119+
117120...
118121
119122Pinecone pinecone = new Pinecone .Builder (" PINECONE_API_KEY" ). build();
@@ -134,6 +137,7 @@ configuration options, see `main/java/io/pinecone/clients/Pinecone.java`.
134137``` java
135138import io.pinecone.clients.Pinecone ;
136139import org.openapitools.client.model.IndexModel ;
140+ import org.openapitools.control.client.model.DeletionProtection ;
137141...
138142
139143Pinecone pinecone = new Pinecone .Builder (" PINECONE_API_KEY" ). build();
@@ -206,7 +210,7 @@ pinecone.configurePodsIndex(indexName, podType, newNumberOfReplicas);
206210
207211## Enable deletion protection for pod index
208212
209- The following example enables deletion protection of a pod-based index.
213+ The following example enables deletion protection for a pod-based index.
210214
211215``` java
212216import io.pinecone.clients.Pinecone ;
@@ -219,7 +223,7 @@ pinecone.configurePodsIndex(indexName, DeletionProtection.ENABLED);
219223
220224## Enable deletion protection for serverless index
221225
222- The following example enables deletion protection of a serverless index.
226+ The following example enables deletion protection for a serverless index.
223227
224228``` java
225229import io.pinecone.clients.Pinecone ;
0 commit comments