public class CreateCollectionOptions extends Object
Constructor and Description |
---|
CreateCollectionOptions() |
CreateCollectionOptions(CreateCollectionOptions createCollectionOptions) |
CreateCollectionOptions(JsonObject json) |
public CreateCollectionOptions()
public CreateCollectionOptions(CreateCollectionOptions createCollectionOptions)
public CreateCollectionOptions(JsonObject json)
public JsonObject toJson()
public Long getMaxDocuments()
public CreateCollectionOptions setMaxDocuments(Long maxDocuments)
maxDocuments
- public com.mongodb.client.model.CreateCollectionOptions toMongoDriverObject()
public CreateCollectionOptions setCapped(Boolean capped)
capped
- public Boolean getCapped()
public TimeSeriesOptions getTimeSeriesOptions()
public CreateCollectionOptions setTimeSeriesOptions(TimeSeriesOptions timeSeriesOptions)
public Long getSizeInBytes()
public CreateCollectionOptions setSizeInBytes(Long sizeInBytes)
sizeInBytes
- @Nullable public JsonObject getStorageEngineOptions()
public CreateCollectionOptions setStorageEngineOptions(@Nullable JsonObject storageEngineOptions)
storageEngineOptions
- public JsonObject getIndexOptionDefaults()
public CreateCollectionOptions setIndexOptionDefaults(JsonObject indexOptionDefaults)
indexOptionDefaults
- public ValidationOptions getValidationOptions()
public CreateCollectionOptions setValidationOptions(ValidationOptions validationOptions)
@Nullable public CollationOptions getCollation()
public CreateCollectionOptions setCollation(@Nullable CollationOptions collation)
collation
- Copyright © 2023 Eclipse. All rights reserved.