Package io.milvus.param.collection
Class RenameCollectionParam.Builder
- java.lang.Object
-
- io.milvus.param.collection.RenameCollectionParam.Builder
-
- Enclosing class:
- RenameCollectionParam
public static final class RenameCollectionParam.Builder extends java.lang.ObjectBuilder forRenameCollectionParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RenameCollectionParambuild()Verifies parameters and creates a newRenameCollectionParaminstance.RenameCollectionParam.BuilderwithNewCollectionName(@NonNull java.lang.String newCollectionName)Sets the new collection name.RenameCollectionParam.BuilderwithOldCollectionName(@NonNull java.lang.String oldCollectionName)Sets the old collection name.
-
-
-
Method Detail
-
withOldCollectionName
public RenameCollectionParam.Builder withOldCollectionName(@NonNull @NonNull java.lang.String oldCollectionName)
Sets the old collection name. Old collection name cannot be empty or null.- Parameters:
oldCollectionName- old collection name- Returns:
Builder
-
withNewCollectionName
public RenameCollectionParam.Builder withNewCollectionName(@NonNull @NonNull java.lang.String newCollectionName)
Sets the new collection name. New collection name cannot be empty or null.- Parameters:
newCollectionName- new collection name- Returns:
Builder
-
build
public RenameCollectionParam build() throws ParamException
Verifies parameters and creates a newRenameCollectionParaminstance.- Returns:
RenameCollectionParam- Throws:
ParamException
-
-