public class Config extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Config.ContentstackRegion
The enum Contentstack region.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
branch |
protected boolean |
enableLivePreview |
protected String |
endpoint |
protected String |
host |
protected String |
livePreviewContentType |
protected String |
livePreviewHash |
protected String |
livePreviewHost |
protected String |
managementToken |
protected Config.ContentstackRegion |
region |
protected String |
scheme |
protected String |
version |
| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
Config |
enableLivePreview(boolean enableLivePreview)
Enable live preview config.
|
String |
getBranch() |
protected String |
getEndpoint() |
String |
getHost()
Gets host.
|
Config.ContentstackRegion |
getRegion()
Gets region.
|
String |
getVersion()
Gets version.
|
void |
setBranch(String branch) |
protected String |
setEndpoint(String endpoint) |
void |
setHost(String hostName)
Sets host.
|
Config |
setLivePreviewHost(String livePreviewHost)
Sets live preview host.
|
Config |
setManagementToken(String managementToken)
Sets management token.
|
Config.ContentstackRegion |
setRegion(Config.ContentstackRegion region)
Sets region.
|
protected String livePreviewHash
protected String livePreviewContentType
protected String host
protected String version
protected String scheme
protected String endpoint
protected boolean enableLivePreview
protected String livePreviewHost
protected Config.ContentstackRegion region
protected String managementToken
protected String branch
public String getBranch()
public void setBranch(String branch)
public Config.ContentstackRegion getRegion()
public Config.ContentstackRegion setRegion(Config.ContentstackRegion region)
region - the regionprotected String getEndpoint()
public String getHost()
public void setHost(String hostName)
hostName - the host namepublic String getVersion()
public Config enableLivePreview(boolean enableLivePreview)
enableLivePreview - to enable live previewpublic Config setLivePreviewHost(@NotNull String livePreviewHost)
livePreviewHost - the live preview hostCopyright © 2021 Contentstack.. All rights reserved.