forked from sendgrid/sendgrid-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetting.java
More file actions
34 lines (29 loc) · 834 Bytes
/
Setting.java
File metadata and controls
34 lines (29 loc) · 834 Bytes
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
package com.sendgrid;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A generic setting object.
*/
@JsonInclude(Include.NON_DEFAULT)
public class Setting {
@JsonProperty("enable")
private boolean enable;
/**
* Get whether or not this setting is enabled.
* @return true if the setting is enabled, false otherwise.
*/
@JsonProperty("enable")
public boolean getEnable() {
return enable;
}
/**
* Set whether or not this setting is enabled.
* @param enable true if the setting is enabled, false otherwise.
* @return this object.
*/
public Setting enable(boolean enable) {
this.enable = enable;
return this;
}
}