Options Class
Options manages configuration parameters used by the Client . Parameters are set via a fluent interface.
Example
Options opts = new Options()
.sitekey('FC0123456789ABCD')
.timeout(500);
System.debug(opts.sitekey());
Methods
sitekey()
Signature
global String sitekey()
Return Type
String
sitekey(sitekey)
Signature
global Options sitekey(String sitekey)
Parameters
Name | Type | Description |
---|---|---|
sitekey | String |
Return Type
apiKey()
Signature
global String apiKey()
Return Type
String
apiKey(apiKey)
Signature
global Options apiKey(String apiKey)
Parameters
Name | Type | Description |
---|---|---|
apiKey | String |
Return Type
apiEndpoint()
Signature
global String apiEndpoint()
Return Type
String
apiEndpoint(apiEndpoint)
Signature
global Options apiEndpoint(String apiEndpoint)
Parameters
Name | Type | Description |
---|---|---|
apiEndpoint | String |
Return Type
strict()
Signature
global Boolean strict()
Return Type
Boolean
strict(strict)
Signature
global Options strict(Boolean strict)
Parameters
Name | Type | Description |
---|---|---|
strict | Boolean |
Return Type
timeout()
Signature
global Integer timeout()
Return Type
Integer
timeout(timeout)
Signature
global Options timeout(Integer timeout)
Parameters
Name | Type | Description |
---|---|---|
timeout | Integer |