Class RenameCollectionOptions


  • public class RenameCollectionOptions
    extends Object
    Options used to configure rename collection options.
    Author:
    Zengyi Wang
    • Constructor Detail

      • RenameCollectionOptions

        public RenameCollectionOptions()
      • RenameCollectionOptions

        public RenameCollectionOptions​(JsonObject json)
    • Method Detail

      • getDropTarget

        public Boolean getDropTarget()
      • setDropTarget

        public RenameCollectionOptions setDropTarget​(Boolean dropTarget)
        Sets if it should drop the target of renameCollection if exists.
        Parameters:
        dropTarget - the flag indicating to drop the target or not.
        Returns:
        RenameCollectionOptions
      • toMongoDriverObject

        public com.mongodb.client.model.RenameCollectionOptions toMongoDriverObject()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object