forked from zoho/zohocrm-java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSDKConfig.java
89 lines (74 loc) · 1.9 KB
/
SDKConfig.java
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
77
78
79
80
81
82
83
84
85
86
87
88
89
package com.zoho.crm.api;
/**
* The class to configure the SDK.
*/
public class SDKConfig
{
/**
* The Builder class to build SDKConfig
*/
public static class Builder
{
private boolean autoRefreshFields = false;
private boolean pickListValidation = true;
public Builder()
{
}
/**
* This is a setter method to set autoRefreshFields.
* @param autoRefreshFields A boolean
* @return An instance of Builder
*/
public Builder setAutoRefreshFields(boolean autoRefreshFields)
{
this.autoRefreshFields = autoRefreshFields;
return this;
}
/**
* This is a setter method to set pickListValidation.
* @param pickListValidation A boolean
* @return An instance of Builder
*/
public Builder setPickListValidation(boolean pickListValidation)
{
this.pickListValidation = pickListValidation;
return this;
}
/**
* The method to build the SDKConfig instance
* @return An instance of SDKConfig
*/
public SDKConfig build()
{
return new SDKConfig(autoRefreshFields, pickListValidation);
}
}
private boolean autoRefreshFields;
private boolean pickListValidation;
/**
* Creates an instance of SDKConfig with the given parameters
* @param autoRefreshFields A boolean representing autoRefreshFields
* @param pickListValidation A boolean representing pickListValidation
*/
private SDKConfig(boolean autoRefreshFields, boolean pickListValidation)
{
this.autoRefreshFields = autoRefreshFields;
this.pickListValidation = pickListValidation;
}
/**
* This is a getter method to get autoRefreshFields.
* @return A boolean representing autoRefreshFields
*/
public boolean getAutoRefreshFields()
{
return autoRefreshFields;
}
/**
* This is a getter method to get pickListValidation.
* @return A boolean representing pickListValidation
*/
public boolean getPickListValidation()
{
return pickListValidation;
}
}