-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSwitchersCheck.java
More file actions
56 lines (43 loc) · 1.09 KB
/
SwitchersCheck.java
File metadata and controls
56 lines (43 loc) · 1.09 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
package com.github.switcherapi.client.remote.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.switcherapi.client.remote.ClientWS;
import java.util.Arrays;
import java.util.Set;
/**
* Request/Response model to use with {@link ClientWS#checkSwitchers(Set, String)}
*
* @author Roger Floriano (petruki)
* @since 2021-03-09
*/
public class SwitchersCheck {
/**
* Request field
*/
private String[] switchers;
/**
* Response field
*/
@JsonProperty("not_found")
private String[] notFound;
public SwitchersCheck() {}
public SwitchersCheck(final Set<String> switchers) {
this.switchers = switchers.toArray(new String[0]);
}
public String[] getSwitchers() {
return switchers;
}
public void setSwitchers(String[] switchers) {
this.switchers = switchers;
}
public String[] getNotFound() {
return notFound;
}
public void setNotFound(String[] notFound) {
this.notFound = notFound;
}
@Override
public String toString() {
return "SwitchersCheck [switchers=" + Arrays.toString(switchers) +
", notFound=" + Arrays.toString(notFound) + "]";
}
}