forked from sendgrid/sendgrid-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMailSettings.java
More file actions
127 lines (110 loc) · 3.55 KB
/
MailSettings.java
File metadata and controls
127 lines (110 loc) · 3.55 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package com.sendgrid;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* An object representing a collection of different mail
* settings that you can use to specify how you would
* like this email to be handled.
*/
@JsonInclude(Include.NON_DEFAULT)
public class MailSettings {
@JsonProperty("bcc")
private BCCSettings bccSettings;
@JsonProperty("bypass_list_management")
private Setting bypassListManagement;
@JsonProperty("footer")
private FooterSettings footerSettings;
@JsonProperty("sandbox_mode")
private Setting sandBoxMode;
@JsonProperty("spam_check")
private SpamCheckSettings spamCheckSettings;
/**
* Get the BCC settings.
* @return the BCC settings.
*/
@JsonProperty("bcc")
public BCCSettings getBccSettings() {
return bccSettings;
}
/**
* Set the BCC settings.
* @param bccSettings the BCC settings.
*/
public MailSettings bccSettings(BCCSettings bccSettings) {
this.bccSettings = bccSettings;
return this;
}
/**
* A setting that allows you to bypass all unsubscribe
* groups and suppressions to ensure that the email is
* delivered to every single recipient. This should only
* be used in emergencies when it is absolutely necessary
* that every recipient receives your email.
* @return the bypass list setting.
*/
@JsonProperty("bypass_list_management")
public Setting getBypassListManagement() {
return bypassListManagement;
}
/**
* Set the bypass setting.
* @param bypassListManagement the setting.
*/
public MailSettings bypassListManagement(Setting bypassListManagement) {
this.bypassListManagement = bypassListManagement;
return this;
}
/**
* Get the the footer settings that you would like included on every email.
* @return the settings.
*/
@JsonProperty("footer")
public FooterSettings getFooterSettings() {
return footerSettings;
}
/**
* Set the the footer settings that you would like included on every email.
* @param footerSettings the settings.
*/
public MailSettings footerSettings(FooterSettings footerSettings) {
this.footerSettings = footerSettings;
return this;
}
/**
* Get sandbox mode. This allows you to send a test email to
* ensure that your request body is valid and formatted correctly.
* @return the sandbox mode setting.
*/
@JsonProperty("sandbox_mode")
public Setting getSandBoxMode() {
return sandBoxMode;
}
/**
* Set sandbox mode.
* @param sandBoxMode the sandbox mode setting.
*/
@JsonProperty("sandbox_mode")
public MailSettings sandboxMode(Setting sandBoxMode) {
this.sandBoxMode = sandBoxMode;
return this;
}
/**
* Get the spam check settings. This allows you to test the
* content of your email for spam.
* @return the spam check settings.
*/
@JsonProperty("spam_check")
public SpamCheckSettings getSpamCheckSettings() {
return spamCheckSettings;
}
/**
* Set the spam check settings. This allows you to test the
* content of your email for spam.
* @param spamCheckSettings the spam check settings.
*/
public MailSettings spamCheckSettings(SpamCheckSettings spamCheckSettings) {
this.spamCheckSettings = spamCheckSettings;
return this;
}
}