Class ImmutableMongoDbConfig.Builder

  • Enclosing class:
    ImmutableMongoDbConfig

    @NotThreadSafe
    public static final class ImmutableMongoDbConfig.Builder
    extends Object
    Builds instances of type ImmutableMongoDbConfig. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableMongoDbConfig.Builder from​(MongoCommand.MongoDbConfig instance)
        Fill a builder with attribute values from the provided MongoDbConfig instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • db

        @CanIgnoreReturnValue
        public final ImmutableMongoDbConfig.Builder db​(String db)
        Initializes the value for the db attribute.
        Parameters:
        db - The value for db
        Returns:
        this builder for use in a chained invocation
      • refs

        @CanIgnoreReturnValue
        public final ImmutableMongoDbConfig.Builder refs​(String refs)
        Initializes the value for the refs attribute.
        Parameters:
        refs - The value for refs
        Returns:
        this builder for use in a chained invocation
      • tags

        @CanIgnoreReturnValue
        public final ImmutableMongoDbConfig.Builder tags​(String tags)
        Initializes the value for the tags attribute.
        Parameters:
        tags - The value for tags
        Returns:
        this builder for use in a chained invocation
      • objects

        @CanIgnoreReturnValue
        public final ImmutableMongoDbConfig.Builder objects​(String objects)
        Initializes the value for the objects attribute.
        Parameters:
        objects - The value for objects
        Returns:
        this builder for use in a chained invocation