Repository navigation
Expand file tree
/
Copy pathGroupOptions.java
More file actions
76 lines (65 loc) · 1.7 KB
/
Copy pathGroupOptions.java
File metadata and controls
76 lines (65 loc) · 1.7 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
66
67
68
69
70
71
72
73
74
75
76
package org.databunker.options;
/**
* Group options class for group creation and management
*/
public class GroupOptions {
private final String groupname;
private final String grouptype;
private final String groupdesc;
private GroupOptions(Builder builder) {
this.groupname = builder.groupname;
this.grouptype = builder.grouptype;
this.groupdesc = builder.groupdesc;
}
/**
* Group name
* @return The group name
*/
public String getGroupname() {
return groupname;
}
/**
* Group type
* @return The group type
*/
public String getGrouptype() {
return grouptype;
}
/**
* Group description
* @return The group description
*/
public String getGroupdesc() {
return groupdesc;
}
/**
* Builder class for GroupOptions
*/
public static class Builder {
private String groupname;
private String grouptype;
private String groupdesc;
public Builder groupname(String groupname) {
this.groupname = groupname;
return this;
}
public Builder grouptype(String grouptype) {
this.grouptype = grouptype;
return this;
}
public Builder groupdesc(String groupdesc) {
this.groupdesc = groupdesc;
return this;
}
public GroupOptions build() {
return new GroupOptions(this);
}
}
/**
* Creates a new builder for GroupOptions
* @return A new builder instance
*/
public static Builder builder() {
return new Builder();
}
}