Repository navigation
Expand file tree
/
Copy pathTenantOptions.java
More file actions
76 lines (65 loc) · 1.69 KB
/
Copy pathTenantOptions.java
File metadata and controls
76 lines (65 loc) · 1.69 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;
/**
* Tenant options class for tenant creation and management
*/
public class TenantOptions {
private final String tenantname;
private final String tenantorg;
private final String email;
private TenantOptions(Builder builder) {
this.tenantname = builder.tenantname;
this.tenantorg = builder.tenantorg;
this.email = builder.email;
}
/**
* Tenant name
* @return The tenant name
*/
public String getTenantname() {
return tenantname;
}
/**
* Tenant organization
* @return The tenant organization
*/
public String getTenantorg() {
return tenantorg;
}
/**
* Email address
* @return The email address
*/
public String getEmail() {
return email;
}
/**
* Builder class for TenantOptions
*/
public static class Builder {
private String tenantname;
private String tenantorg;
private String email;
public Builder tenantname(String tenantname) {
this.tenantname = tenantname;
return this;
}
public Builder tenantorg(String tenantorg) {
this.tenantorg = tenantorg;
return this;
}
public Builder email(String email) {
this.email = email;
return this;
}
public TenantOptions build() {
return new TenantOptions(this);
}
}
/**
* Creates a new builder for TenantOptions
* @return A new builder instance
*/
public static Builder builder() {
return new Builder();
}
}