Class MailClientBuilder

java.lang.Object
io.vertx.mutiny.ext.mail.MailClientBuilder
All Implemented Interfaces:
MutinyDelegate

public class MailClientBuilder extends Object implements MutinyDelegate
A builder for MailClient.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

See Also:
  • MailClientBuilder
  • Field Details

  • Constructor Details

    • MailClientBuilder

      public MailClientBuilder(io.vertx.ext.mail.MailClientBuilder delegate)
      Create a new instance of MailClientBuilder delegating to the given (non-null) instance of MailClientBuilder.
    • MailClientBuilder

      public MailClientBuilder(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.mail.MailClientBuilder getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • with

      public MailClientBuilder with(io.vertx.ext.mail.MailConfig configuration)
      Set a configuration object.
      Parameters:
      configuration - to be used for sending mails
      Returns:
      a reference to this, so the API can be used fluently
    • withCredentialsSupplier

      public MailClientBuilder withCredentialsSupplier(Supplier<io.smallrye.mutiny.Uni<io.vertx.ext.auth.authentication.UsernamePasswordCredentials>> credentialsSupplier)
      Set a credentials supplier for the mail client.

      By default, the credentials are fixed at creation time with MailConfig.setUsername(String) and MailConfig.setPassword(String).

      Returns:
      a reference to this, so the API can be used fluently
    • shared

      public MailClientBuilder shared(String poolName)
      Set a shared client pool name.

      The created client will share its connection pool with any other client created with the same pool name.

      Parameters:
      poolName - the shared pool name
      Returns:
      a reference to this, so the API can be used fluently
    • build

      public MailClient build()
      Build and return the client.
      Returns:
      the client as configured by this builder
    • newInstance

      public static MailClientBuilder newInstance(io.vertx.ext.mail.MailClientBuilder delegate)
      Creates a new instance of the MailClientBuilder.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object