Class ShowCollectionsParam.Builder
- java.lang.Object
-
- io.milvus.param.collection.ShowCollectionsParam.Builder
-
- Enclosing class:
- ShowCollectionsParam
public static final class ShowCollectionsParam.Builder extends java.lang.Object
Builder forShowCollectionsParam
class.
-
-
Method Summary
Modifier and Type Method Description ShowCollectionsParam.Builder
addCollectionName(@NonNull java.lang.String collectionName)
Adds a collection name.ShowCollectionsParam
build()
Verifies parameters and creates a newShowCollectionsParam
instance.ShowCollectionsParam.Builder
withCollectionNames(@NonNull java.util.List<java.lang.String> collectionNames)
Sets a list of collection names.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
withCollectionNames
public ShowCollectionsParam.Builder withCollectionNames(@NonNull @NonNull java.util.List<java.lang.String> collectionNames)
Sets a list of collection names. Collection name cannot be empty or null.- Parameters:
collectionNames
- list of collection names- Returns:
Builder
-
addCollectionName
public ShowCollectionsParam.Builder addCollectionName(@NonNull @NonNull java.lang.String collectionName)
Adds a collection name. Collection name cannot be empty or null.- Parameters:
collectionName
- collection name- Returns:
Builder
-
build
public ShowCollectionsParam build() throws ParamException
Verifies parameters and creates a newShowCollectionsParam
instance.- Returns:
ShowCollectionsParam
- Throws:
ParamException
-
-