forked from sendgrid/sendgrid-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBCCSettings.java
More file actions
58 lines (50 loc) · 1.4 KB
/
BCCSettings.java
File metadata and controls
58 lines (50 loc) · 1.4 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
package com.sendgrid;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* This object allows you to have a blind carbon copy
* automatically sent to the specified email address
* for every email that is sent.
*/
@JsonInclude(Include.NON_DEFAULT)
public class BCCSettings {
@JsonProperty("enable")
private boolean enable;
@JsonProperty("email")
private String email;
/**
* Determines if this setting is enabled.
* @return true if BCC is enabled, false otherwise.
*/
@JsonProperty("enable")
public boolean getEnable() {
return enable;
}
/**
* Set whether or not BCC is enabled.
* @param enable true if BCC is enabled, false otherwise.
* @return this object.
*/
public BCCSettings enable(boolean enable) {
this.enable = enable;
return this;
}
/**
* Get the email address that you would like to receive the BCC.
* @return the address.
*/
@JsonProperty("email")
public String getEmail() {
return this.email;
}
/**
* Set the email address that you would like to receive the BCC.
* @param email the address.
* @return this object.
*/
public BCCSettings email(String email) {
this.email = email;
return this;
}
}