Configuration Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. Configuration
- com.
public class Configuration
Field Summary
Modifier and Type | Field and Description |
---|---|
protected final java.lang.String | UTC_TIME_DEFAULT |
protected
Configuration |
content
Specifies the configuration content |
protected java.lang.String |
createdTimeUtc
Datetime of configuration created time. |
protected java.lang.String |
etag
A string representing a ETAG |
protected java.lang.String |
id
Configuration name A case-sensitive string (up to 128 char long) of ASCII 7-bit alphanumeric chars + {'-', ':', '.', '+', '%', '_', '#', '*', '?', '!', '(', ')', ',', '=', '@', ';', '$', '''}. |
protected java.util.HashMap<java.lang.String,java.lang.String> |
labels
Specifies the labels map of the configuration |
protected java.lang.String |
lastUpdatedTimeUtc
Datetime of configuration last updated time. |
protected
Configuration |
metrics
Specifies the custom configuration metrics |
protected java.lang.Integer |
priority
Specifies the priority |
protected java.lang.String |
schemaVersion
Specifies the schema |
protected
Configuration |
systemMetrics
Specifies the system configuration metrics |
protected java.lang.String |
targetCondition
Specifies the target |
Constructor Summary
Constructor | Description |
---|---|
Configuration(String configurationId) |
Create a Configuration instance using the given configuration name |
Method Summary
Modifier and Type | Method and Description |
---|---|
Configuration |
getContent()
Getter for configuration content |
java.lang.String |
getCreatedTimeUtc()
Getter for configuration created time |
java.lang.String |
getEtag()
Getter for e |
java.lang.String |
getId()
Getter for configuration name |
java.util.HashMap<java.lang.String,java.lang.String> |
getLabels()
Getter for labels |
java.lang.String |
getLastUpdatedTimeUtc()
Getter for configuration last updated time string |
Configuration |
getMetrics()
Getter for the custom configuration metrics |
java.lang.Integer |
getPriority()
Getter for the configuration priority |
java.lang.String |
getSchemaVersion()
Getter for schema version |
Configuration |
getSystemMetrics()
Getter for the system configuration metrics |
java.lang.String |
getTargetCondition()
Getter for target |
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 force
Setter for force update boolean |
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 target |
Methods inherited from java.lang.Object
Field Details
UTC_TIME_DEFAULT
protected final String UTC_TIME_DEFAULT
content
protected ConfigurationContent content
Specifies the configuration content
createdTimeUtc
protected String createdTimeUtc
Datetime of configuration created time.
etag
protected String etag
A string representing a ETAG
id
protected String id
Configuration name A case-sensitive string (up to 128 char long) of ASCII 7-bit alphanumeric chars + {'-', ':', '.', '+', '%', '_', '#', '*', '?', '!', '(', ')', ',', '=', '@', ';', '$', '''}.
labels
protected HashMap
Specifies the labels map of the configuration
lastUpdatedTimeUtc
protected String lastUpdatedTimeUtc
Datetime of configuration last updated time.
metrics
protected ConfigurationMetrics metrics
Specifies the custom configuration metrics
priority
protected Integer priority
Specifies the priority
schemaVersion
protected String schemaVersion
Specifies the schemaVersion
systemMetrics
protected ConfigurationMetrics systemMetrics
Specifies the system configuration metrics
targetCondition
protected String targetCondition
Specifies the targetCondition
Constructor Details
Configuration
public Configuration(String configurationId)
Create a Configuration instance using the given configuration name
Parameters:
Method Details
getContent
public ConfigurationContent getContent()
Getter for configuration content
Returns:
getCreatedTimeUtc
public String getCreatedTimeUtc()
Getter for configuration created time
Returns:
getEtag
public String getEtag()
Getter for eTag
Returns:
getId
public String getId()
Getter for configuration name
Returns:
getLabels
public HashMap
Getter for labels
Returns:
getLastUpdatedTimeUtc
public String getLastUpdatedTimeUtc()
Getter for configuration last updated time string
Returns:
getMetrics
public ConfigurationMetrics getMetrics()
Getter for the custom configuration metrics
Returns:
getPriority
public Integer getPriority()
Getter for the configuration priority
Returns:
getSchemaVersion
public String getSchemaVersion()
Getter for schema version
Returns:
getSystemMetrics
public ConfigurationMetrics getSystemMetrics()
Getter for the system configuration metrics
Returns:
getTargetCondition
public String getTargetCondition()
Getter for targetCondition
Returns:
setContent
public void setContent(ConfigurationContent content)
Setter for the configuration content
Parameters:
setEtag
public void setEtag(String etag)
Setter for the ETAG
Parameters:
setForceUpdate
public void setForceUpdate(Boolean forceUpdate)
Deprecated
Setter for force update boolean
Parameters:
- Boolean controlling if the update should be forced or not
Throws:
setLabels
public void setLabels(HashMap
Setter for the labels of the configuration
Parameters:
setMetrics
public void setMetrics(ConfigurationMetrics metrics)
Set the configuration metrics of this object
Parameters:
setPriority
public void setPriority(Integer priority)
Setter for the configuration priority
Parameters:
setTargetCondition
public void setTargetCondition(String targetCondition)
Setter for the targetCondition
Parameters:
Applies to
Azure SDK for Java