Class RecipientBuilder

java.lang.Object
org.simplejavamail.recipient.RecipientBuilder
All Implemented Interfaces:
org.simplejavamail.api.email.IRecipientBuilder

public class RecipientBuilder extends Object implements org.simplejavamail.api.email.IRecipientBuilder
See Also:
  • IRecipientBuilder
  • Constructor Details

    • RecipientBuilder

      public RecipientBuilder()
  • Method Details

    • build

      @NotNull public @NotNull org.simplejavamail.api.email.Recipient build()
      Specified by:
      build in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.build()
    • withType

      public org.simplejavamail.api.email.IRecipientBuilder withType(@NotNull @NotNull jakarta.mail.Message.RecipientType type)
      Specified by:
      withType in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withType(Message.RecipientType)
    • withName

      public org.simplejavamail.api.email.IRecipientBuilder withName(@Nullable @Nullable String name)
      Specified by:
      withName in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withName(String)
    • withAddress

      public org.simplejavamail.api.email.IRecipientBuilder withAddress(@NotNull @NotNull String address)
      Specified by:
      withAddress in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withAddress(String)
    • withAddressOnlyFrom

      public org.simplejavamail.api.email.IRecipientBuilder withAddressOnlyFrom(@NotNull @NotNull jakarta.mail.internet.InternetAddress address)
      Specified by:
      withAddressOnlyFrom in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withAddressOnlyFrom(InternetAddress)
    • withAddressOnlyFrom

      public org.simplejavamail.api.email.IRecipientBuilder withAddressOnlyFrom(@NotNull @NotNull String address)
      Specified by:
      withAddressOnlyFrom in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withAddressOnlyFrom(String)
    • withAddressAndNameOrDefault

      public org.simplejavamail.api.email.IRecipientBuilder withAddressAndNameOrDefault(@NotNull @NotNull jakarta.mail.internet.InternetAddress address, @Nullable @Nullable String defaultName)
      Specified by:
      withAddressAndNameOrDefault in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withAddressAndNameOrDefault(InternetAddress, String)
    • withAddressAndNameOrDefault

      public org.simplejavamail.api.email.IRecipientBuilder withAddressAndNameOrDefault(@NotNull @NotNull String address, @Nullable @Nullable String defaultName)
      Specified by:
      withAddressAndNameOrDefault in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withAddressAndNameOrDefault(String, String)
    • withAddressAndFixedNameOrProvided

      public org.simplejavamail.api.email.IRecipientBuilder withAddressAndFixedNameOrProvided(@NotNull @NotNull jakarta.mail.internet.InternetAddress address, @Nullable @Nullable String fixedName)
      Specified by:
      withAddressAndFixedNameOrProvided in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withAddressAndFixedNameOrProvided(InternetAddress, String)
    • withAddressAndFixedNameOrProvided

      public org.simplejavamail.api.email.IRecipientBuilder withAddressAndFixedNameOrProvided(@NotNull @NotNull String address, @Nullable @Nullable String fixedName)
      Specified by:
      withAddressAndFixedNameOrProvided in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withAddressAndFixedNameOrProvided(String, String)
    • withSmimeCertificate

      public org.simplejavamail.api.email.IRecipientBuilder withSmimeCertificate(@NotNull @NotNull X509Certificate smimeCertificate)
      Specified by:
      withSmimeCertificate in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.withSmimeCertificate(X509Certificate)
    • clearingSmimeCertificate

      public org.simplejavamail.api.email.IRecipientBuilder clearingSmimeCertificate()
      Specified by:
      clearingSmimeCertificate in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.clearingSmimeCertificate()
    • getName

      @Nullable public @Nullable String getName()
      Specified by:
      getName in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.getName()
    • getAddress

      @Nullable public @Nullable String getAddress()
      Specified by:
      getAddress in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.getAddress()
    • getType

      @Nullable public @Nullable jakarta.mail.Message.RecipientType getType()
      Specified by:
      getType in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.getType()
    • getSmimeCertificate

      @Nullable public @Nullable X509Certificate getSmimeCertificate()
      Specified by:
      getSmimeCertificate in interface org.simplejavamail.api.email.IRecipientBuilder
      See Also:
      • IRecipientBuilder.getSmimeCertificate()