forked from sendgrid/sendgrid-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContent.java
More file actions
65 lines (55 loc) · 1.5 KB
/
Content.java
File metadata and controls
65 lines (55 loc) · 1.5 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
package com.sendgrid;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* An object in which you may specify the content of your email.
*/
@JsonInclude(Include.NON_DEFAULT)
public class Content {
@JsonProperty("type")
private String type;
@JsonProperty("value")
private String value;
/**
* Construct an empty content object.
*/
public Content() {
}
/**
* Get the mime type of the content you are including
* in your email. For example, “text/plain” or “text/html”.
* @return the mime type.
*/
@JsonProperty("type")
public String getType() {
return type;
}
/**
* Set the mime type of the content you are including
* in your email. For example, “text/plain” or “text/html”.
* @param type the mime type.
*/
public Content type(String type) {
this.type = type;
return this;
}
/**
* Get the actual content of the specified mime type
* that you are including in your email.
* @return the value.
*/
@JsonProperty("value")
public String getValue() {
return value;
}
/**
* Set the actual content of the specified mime type
* that you are including in your email.
* @param value the value.
*/
public Content value(String value) {
this.value = value;
return this;
}
}