Class EmailAddress

java.lang.Object
com.azure.communication.email.models.EmailAddress

public final class EmailAddress extends Object
An object representing the email address and its display name.
  • Constructor Details

    • EmailAddress

      public EmailAddress(String email)
      Constructor for EmailAddress
      Parameters:
      email - the email address.
  • Method Details

    • getEmail

      public String getEmail()
      Get the email property: Email address.
      Returns:
      the email value.
    • getDisplayName

      public String getDisplayName()
      Get the displayName property: Email display name.
      Returns:
      the displayName value.
    • setDisplayName

      public EmailAddress setDisplayName(String displayName)
      Set the displayName property: Email display name.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the EmailAddress object itself.