All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.sdk.iot.service.configurations.ConfigurationContent Maven / Gradle / Ivy

The newest version!
package com.microsoft.azure.sdk.iot.service.configurations;

import com.microsoft.azure.sdk.iot.service.configurations.serializers.ConfigurationContentParser;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

public class ConfigurationContent
{
    /**
     * The configurations to be applied to the Edge agent.
     * @see Create a deployment manifest
     */
    @Getter
    @Setter
    protected Map> modulesContent;

    /**
     * The configurations to be applied on device modules.
     */
    @Getter
    @Setter
    protected Map moduleContent;

    /**
     * The configurations to be applied on devices.
     */
    @Getter
    @Setter
    protected Map deviceContent;

    public ConfigurationContent()
    {
        this.modulesContent = new HashMap<>();
        this.deviceContent = new HashMap<>();
        this.moduleContent = new HashMap<>();
    }

    public ConfigurationContentParser toConfigurationContentParser()
    {
        ConfigurationContentParser parser = new ConfigurationContentParser();
        parser.setModulesContent(this.modulesContent);
        parser.setDeviceContent(this.deviceContent);
        parser.setModuleContent(this.moduleContent);
        return parser;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy