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 address)
      Creates an instance of EmailAddress class.
      Parameters:
      address - the address value to set.
  • Method Details

    • getAddress

      public String getAddress()
      Get the address property: Email address.
      Returns:
      the address 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.