Repository navigation
Expand file tree
/
Copy pathASM.java
More file actions
58 lines (49 loc) · 1.32 KB
/
Copy pathASM.java
File metadata and controls
58 lines (49 loc) · 1.32 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;
import java.util.Arrays;
/**
* An object allowing you to specify how to handle unsubscribes.
*/
@JsonInclude(Include.NON_DEFAULT)
public class ASM {
@JsonProperty("group_id")
private int groupId;
@JsonProperty("groups_to_display")
private int[] groupsToDisplay;
/**
* Get the group ID.
* @return the group ID.
*/
@JsonProperty("group_id")
public int getGroupId() {
return groupId;
}
/**
* Set the group ID.
* @param groupId the group ID.
* @return this object.
*/
public ASM groupId(int groupId) {
this.groupId = groupId;
return this;
}
/**
* Get the groups to display.
* @return the groups to display.
*/
@JsonProperty("groups_to_display")
public int[] getGroupsToDisplay() {
return groupsToDisplay;
}
/**
* Set the groups to display.
* @param groupsToDisplay the groups to display.
* @return this object.
*/
public ASM groupsToDisplay(int[] groupsToDisplay) {
this.groupsToDisplay = Arrays.copyOf(groupsToDisplay, groupsToDisplay.length);
return this;
}
}