public class Configuration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationContent |
content
Specifies the configuration content
|
protected String |
createdTimeUtc
Datetime of configuration created time.
|
protected String |
etag
A string representing a ETAG
|
protected String |
id
Configuration name
A case-sensitive string (up to 128 char long)
of ASCII 7-bit alphanumeric chars
+ {'-', ':', '.', '+', '%', '_', '#', '*', '?', '!', '(', ')', ',', '=', '@', ';', '$', '''}.
|
protected HashMap<String,String> |
labels
Specifies the labels map of the configuration
|
protected String |
lastUpdatedTimeUtc
Datetime of configuration last updated time.
|
protected ConfigurationMetrics |
metrics
Specifies the custom configuration metrics
|
protected Integer |
priority
Specifies the priority
|
protected String |
schemaVersion
Specifies the schemaVersion
|
protected ConfigurationMetrics |
systemMetrics
Specifies the system configuration metrics
|
protected String |
targetCondition
Specifies the targetCondition
|
protected String |
UTC_TIME_DEFAULT |
| Constructor and Description |
|---|
Configuration(String configurationId)
Create a Configuration instance using the given configuration name
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurationContent |
getContent()
Getter for configuration content
|
String |
getCreatedTimeUtc()
Getter for configuration created time
|
String |
getEtag()
Getter for eTag
|
String |
getId()
Getter for configuration name
|
HashMap<String,String> |
getLabels()
Getter for labels
|
String |
getLastUpdatedTimeUtc()
Getter for configuration last updated time string
|
ConfigurationMetrics |
getMetrics()
Getter for the custom configuration metrics
|
Integer |
getPriority()
Getter for the configuration priority
|
String |
getSchemaVersion()
Getter for schema version
|
ConfigurationMetrics |
getSystemMetrics()
Getter for the system configuration metrics
|
String |
getTargetCondition()
Getter for targetCondition
|
void |
setContent(ConfigurationContent content)
Setter for the configuration content
|
void |
setEtag(String etag)
Setter for the ETAG
|
void |
setForceUpdate(Boolean forceUpdate)
Deprecated.
This method currently only validates forceUpdate parameter
|
void |
setLabels(HashMap<String,String> labels)
Setter for the labels of the configuration
|
void |
setMetrics(ConfigurationMetrics metrics)
Set the configuration metrics of this object
|
void |
setPriority(Integer priority)
Setter for the configuration priority
|
void |
setTargetCondition(String targetCondition)
Setter for the targetCondition
|
protected final String UTC_TIME_DEFAULT
protected String id
protected String schemaVersion
protected ConfigurationContent content
protected String targetCondition
protected String createdTimeUtc
protected String lastUpdatedTimeUtc
protected Integer priority
protected ConfigurationMetrics systemMetrics
protected ConfigurationMetrics metrics
protected String etag
public Configuration(String configurationId)
configurationId - Name of the configuration (used as configuration id)IllegalArgumentException - This exception is thrown if deviceId or moduleId is null or empty.public String getId()
public String getSchemaVersion()
public void setLabels(HashMap<String,String> labels)
labels - labels to be setpublic void setMetrics(ConfigurationMetrics metrics)
metrics - the metrics to setpublic void setContent(ConfigurationContent content)
content - configuration content to be setpublic ConfigurationContent getContent()
public void setTargetCondition(String targetCondition)
targetCondition - targetCondition to be setpublic String getTargetCondition()
public String getCreatedTimeUtc()
public String getLastUpdatedTimeUtc()
public void setPriority(Integer priority)
priority - to be setpublic Integer getPriority()
public ConfigurationMetrics getSystemMetrics()
public ConfigurationMetrics getMetrics()
public void setEtag(String etag)
etag - to be setpublic String getEtag()
@Deprecated public void setForceUpdate(Boolean forceUpdate) throws IllegalArgumentException
forceUpdate - - Boolean controlling if the update should be forced or notIllegalArgumentException - if the provided argument is nullCopyright © 2022. All rights reserved.