Package io.vertx.mutiny.ext.mail
Class MailClientBuilder
java.lang.Object
io.vertx.mutiny.ext.mail.MailClientBuilder
- All Implemented Interfaces:
MutinyDelegate
A builder for
MailClient.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
MailClientBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMailClientBuilder(io.vertx.ext.mail.MailClientBuilder delegate) Create a new instance ofMailClientBuilderdelegating to the given (non-null) instance ofMailClientBuilder.MailClientBuilder(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build and return the client.booleanio.vertx.ext.mail.MailClientBuilderGet the delegate instance.inthashCode()static MailClientBuildernewInstance(io.vertx.ext.mail.MailClientBuilder delegate) Creates a new instance of theMailClientBuilder.Set a shared client pool name.toString()with(io.vertx.ext.mail.MailConfig configuration) Set a configuration object.withCredentialsSupplier(Supplier<io.smallrye.mutiny.Uni<io.vertx.ext.auth.authentication.UsernamePasswordCredentials>> credentialsSupplier) Set a credentials supplier for the mail client.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MailClientBuilder
public MailClientBuilder(io.vertx.ext.mail.MailClientBuilder delegate) Create a new instance ofMailClientBuilderdelegating to the given (non-null) instance ofMailClientBuilder. -
MailClientBuilder
-
-
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:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
with
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)andMailConfig.setPassword(String).- Returns:
- a reference to this, so the API can be used fluently
-
build
Build and return the client.- Returns:
- the client as configured by this builder
-
newInstance
Creates a new instance of theMailClientBuilder. -
hashCode
public int hashCode() -
equals
-
toString
-