forked from sendgrid/sendgrid-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmail.java
More file actions
63 lines (53 loc) · 1.18 KB
/
Email.java
File metadata and controls
63 lines (53 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.sendgrid;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* An email address represented as an address name pair.
*/
@JsonInclude(Include.NON_DEFAULT)
public class Email {
@JsonProperty("name")
private String name;
@JsonProperty("email")
private String email;
/**
* Construct an empty email.
*/
public Email() {
}
/**
* Get the name.
* @return the name.
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* Set the name.
* @param name the name.
* @return this object.
*/
public Email name(String name) {
this.name = name;
return this;
}
/**
* Get the email address.
* @return the email address.
*/
@JsonProperty("email")
public String getEmail() {
return email;
}
/**
* Set the email address.
* @param email the email address.
* @return this object.
*/
public Email email(String email) {
this.email = email;
return this;
}
}