1 // Copyright (C) MongoDB, Inc. 2023-present. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 // not use this file except in compliance with the License. You may obtain 5 // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 7 package options 8 9 // SearchIndexesOptions represents options that can be used to configure a SearchIndexView. 10 type SearchIndexesOptions struct { 11 Name *string 12 } 13 14 // SearchIndexes creates a new SearchIndexesOptions instance. 15 func SearchIndexes() *SearchIndexesOptions { 16 return &SearchIndexesOptions{} 17 } 18 19 // SetName sets the value for the Name field. 20 func (sio *SearchIndexesOptions) SetName(name string) *SearchIndexesOptions { 21 sio.Name = &name 22 return sio 23 } 24 25 // CreateSearchIndexesOptions represents options that can be used to configure a SearchIndexView.CreateOne or 26 // SearchIndexView.CreateMany operation. 27 type CreateSearchIndexesOptions struct { 28 } 29 30 // ListSearchIndexesOptions represents options that can be used to configure a SearchIndexView.List operation. 31 type ListSearchIndexesOptions struct { 32 AggregateOpts *AggregateOptions 33 } 34 35 // DropSearchIndexOptions represents options that can be used to configure a SearchIndexView.DropOne operation. 36 type DropSearchIndexOptions struct { 37 } 38 39 // UpdateSearchIndexOptions represents options that can be used to configure a SearchIndexView.UpdateOne operation. 40 type UpdateSearchIndexOptions struct { 41 } 42