Interface MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder

All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
All Known Subinterfaces:
MongoDbEndpointBuilderFactory.MongoDbEndpointBuilder
Enclosing interface:
MongoDbEndpointBuilderFactory

public static interface MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the MongoDB component.
  • Method Details

    • advanced

    • collection

      Sets the name of the MongoDB collection to bind to this endpoint. The option is a: java.lang.String type. Group: common
      Parameters:
      collection - the value to set
      Returns:
      the dsl builder
    • collectionIndex

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder collectionIndex(String collectionIndex)
      Sets the collection index (JSON FORMAT : { field1 : order1, field2 : order2}). The option is a: java.lang.String type. Group: common
      Parameters:
      collectionIndex - the value to set
      Returns:
      the dsl builder
    • connectionUriString

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder connectionUriString(String connectionUriString)
      Set the whole Connection String/Uri for mongodb endpoint. The option is a: java.lang.String type. Group: common
      Parameters:
      connectionUriString - the value to set
      Returns:
      the dsl builder
    • createCollection

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder createCollection(boolean createCollection)
      Create the collection during initialisation if it doesn't exist. Default is true. The option is a: boolean type. Default: true Group: common
      Parameters:
      createCollection - the value to set
      Returns:
      the dsl builder
    • createCollection

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder createCollection(String createCollection)
      Create the collection during initialisation if it doesn't exist. Default is true. The option will be converted to a boolean type. Default: true Group: common
      Parameters:
      createCollection - the value to set
      Returns:
      the dsl builder
    • database

      Sets the name of the MongoDB database to target. The option is a: java.lang.String type. Group: common
      Parameters:
      database - the value to set
      Returns:
      the dsl builder
    • hosts

      Host address of mongodb server in host:port format. It's possible to also use more than one address, as a comma separated list of hosts: host1:port1,host2:port2. If this parameter is specified, the provided connectionBean is ignored. The option is a: java.lang.String type. Group: common
      Parameters:
      hosts - the value to set
      Returns:
      the dsl builder
    • mongoConnection

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder mongoConnection(com.mongodb.client.MongoClient mongoConnection)
      Sets the connection bean used as a client for connecting to a database. The option is a: com.mongodb.client.MongoClient type. Group: common
      Parameters:
      mongoConnection - the value to set
      Returns:
      the dsl builder
    • mongoConnection

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder mongoConnection(String mongoConnection)
      Sets the connection bean used as a client for connecting to a database. The option will be converted to a com.mongodb.client.MongoClient type. Group: common
      Parameters:
      mongoConnection - the value to set
      Returns:
      the dsl builder
    • operation

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder operation(org.apache.camel.component.mongodb.MongoDbOperation operation)
      Sets the operation this endpoint will execute against MongoDB. The option is a: org.apache.camel.component.mongodb.MongoDbOperation type. Group: common
      Parameters:
      operation - the value to set
      Returns:
      the dsl builder
    • operation

      Sets the operation this endpoint will execute against MongoDB. The option will be converted to a org.apache.camel.component.mongodb.MongoDbOperation type. Group: common
      Parameters:
      operation - the value to set
      Returns:
      the dsl builder
    • outputType

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder outputType(org.apache.camel.component.mongodb.MongoDbOutputType outputType)
      Convert the output of the producer to the selected type: DocumentList Document or MongoIterable. DocumentList or MongoIterable applies to findAll and aggregate. Document applies to all other operations. The option is a: org.apache.camel.component.mongodb.MongoDbOutputType type. Group: common
      Parameters:
      outputType - the value to set
      Returns:
      the dsl builder
    • outputType

      Convert the output of the producer to the selected type: DocumentList Document or MongoIterable. DocumentList or MongoIterable applies to findAll and aggregate. Document applies to all other operations. The option will be converted to a org.apache.camel.component.mongodb.MongoDbOutputType type. Group: common
      Parameters:
      outputType - the value to set
      Returns:
      the dsl builder
    • authSource

      The database name associated with the user's credentials. The option is a: java.lang.String type. Group: security
      Parameters:
      authSource - the value to set
      Returns:
      the dsl builder
    • password

      User password for mongodb connection. The option is a: java.lang.String type. Group: security
      Parameters:
      password - the value to set
      Returns:
      the dsl builder
    • tls

      Specifies that all communication with MongoDB instances should use TLS. Supersedes the ssl option. Default: false. The option is a: boolean type. Default: false Group: security
      Parameters:
      tls - the value to set
      Returns:
      the dsl builder
    • tls

      Specifies that all communication with MongoDB instances should use TLS. Supersedes the ssl option. Default: false. The option will be converted to a boolean type. Default: false Group: security
      Parameters:
      tls - the value to set
      Returns:
      the dsl builder
    • tlsAllowInvalidHostnames

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder tlsAllowInvalidHostnames(boolean tlsAllowInvalidHostnames)
      Specifies that the driver should allow invalid hostnames in the certificate for TLS connections. Supersedes sslInvalidHostNameAllowed. Has the same effect as tlsInsecure by setting tlsAllowInvalidHostnames to true. Default: false. The option is a: boolean type. Default: false Group: security
      Parameters:
      tlsAllowInvalidHostnames - the value to set
      Returns:
      the dsl builder
    • tlsAllowInvalidHostnames

      default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder tlsAllowInvalidHostnames(String tlsAllowInvalidHostnames)
      Specifies that the driver should allow invalid hostnames in the certificate for TLS connections. Supersedes sslInvalidHostNameAllowed. Has the same effect as tlsInsecure by setting tlsAllowInvalidHostnames to true. Default: false. The option will be converted to a boolean type. Default: false Group: security
      Parameters:
      tlsAllowInvalidHostnames - the value to set
      Returns:
      the dsl builder
    • username

      Username for mongodb connection. The option is a: java.lang.String type. Group: security
      Parameters:
      username - the value to set
      Returns:
      the dsl builder