func (b *BucketOptions) SetChunkSizeBytes(i int32) *BucketOptions {
	b.ChunkSizeBytes = &i
	return b
}
SetChunkSizeBytes sets the value for the ChunkSize field.
package options
import (
	"time"
	"go.mongodb.org/mongo-driver/bson"
	"go.mongodb.org/mongo-driver/bson/bsoncodec"
	"go.mongodb.org/mongo-driver/mongo/readconcern"
	"go.mongodb.org/mongo-driver/mongo/readpref"
	"go.mongodb.org/mongo-driver/mongo/writeconcern"
)
var DefaultName = "fs"
var DefaultChunkSize int32 = 255 * 1024
var DefaultRevision int32 = -1
type BucketOptions struct {
	Name *string
	ChunkSizeBytes *int32
	WriteConcern *writeconcern.WriteConcern
	ReadConcern *readconcern.ReadConcern
	ReadPreference *readpref.ReadPref
}
func GridFSBucket() *BucketOptions {
	return &BucketOptions{
		Name:           &DefaultName,
		ChunkSizeBytes: &DefaultChunkSize,
	}
}
func (b *BucketOptions) SetName(name string) *BucketOptions {
	b.Name = &name
	return b
}