Package com.contentstack.sdk
Class Config
java.lang.Object
com.contentstack.sdk.Config
public class Config extends Object
The type Config. enables optional parameters while passing from stack
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Config.ContentstackRegion
The enum Contentstack region. -
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description Config()
-
Method Summary
Modifier and Type Method 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.
-
Field Details
-
livePreviewHash
-
livePreviewContentType
-
host
-
version
-
scheme
-
endpoint
-
enableLivePreview
protected boolean enableLivePreview -
livePreviewHost
-
region
-
managementToken
-
branch
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
getBranch
-
setBranch
-
getRegion
Gets region.- Returns:
- the region
-
setRegion
Sets region.- Parameters:
region
- the region- Returns:
- the region
-
getEndpoint
-
setEndpoint
-
getHost
Gets host.- Returns:
- the host
-
setHost
Sets host.- Parameters:
hostName
- the host name
-
getVersion
Gets version.- Returns:
- the version
-
enableLivePreview
Enable live preview config.- Parameters:
enableLivePreview
- to enable live preview- Returns:
- the config
-
setLivePreviewHost
Sets live preview host.- Parameters:
livePreviewHost
- the live preview host- Returns:
- the live preview host
-
setManagementToken
Sets management token.- Parameters:
managementToken
- the management token- Returns:
- the management token
-