Class MailClientBuilder
java.lang.Object
io.vertx.reactivex.ext.mail.MailClientBuilder
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
A builder for
MailClient.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMailClientBuilder(MailClientBuilder delegate) MailClientBuilder(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build and return the client.booleaninthashCode()static MailClientBuilderSet a shared client pool name.toString()with(MailConfig configuration) Set a configuration object.withCredentialsSupplier(Supplier<Future<UsernamePasswordCredentials>> credentialsSupplier) Set a credentials supplier for the mail client.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MailClientBuilder
-
MailClientBuilder
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
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<Future<UsernamePasswordCredentials>> credentialsSupplier) Set a credentials supplier for the mail client.By default, the credentials are fixed at creation time with
MailConfigandMailConfig.- Parameters:
credentialsSupplier-- 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
-