Package software.xdev.brevo.model
Class SendSmtpEmailSender
java.lang.Object
software.xdev.brevo.model.SendSmtpEmailSender
**Mandatory if `templateId` is not passed**. Pass name (_optional_) and email or id of sender from which emails will be sent. **`name` will be ignored if passed along with sender `id`**. For example, **{\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"}** **{\"id\":2}**
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEmail()Email of the sender from which the emails will be sent.getId()Id of the sender from which the emails will be sent.getName()description: Name of the sender from which the emails will be sent.inthashCode()voidvoidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_EMAIL
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
-
Constructor Details
-
SendSmtpEmailSender
public SendSmtpEmailSender()
-
-
Method Details
-
name
-
getName
description: Name of the sender from which the emails will be sent. **Maximum allowed characters are 70**. Applicable only when email is passed.- Returns:
- name
-
setName
-
email
-
getEmail
Email of the sender from which the emails will be sent. Mandatory if sender id is not passed.- Returns:
-
setEmail
-
id
-
getId
Id of the sender from which the emails will be sent. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). Mandatory if email is not passed.- Returns:
- id
-
setId
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-