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

com.microsoft.azure.eventgrid.models.DeviceTelemetryEventProperties Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.eventgrid.models;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Schema of the Data property of an EventGridEvent for a device telemetry
 * event (DeviceTelemetry).
 */
public class DeviceTelemetryEventProperties {
    /**
     * The content of the message from the device.
     */
    @JsonProperty(value = "body")
    private Object body;

    /**
     * Application properties are user-defined strings that can be added to the
     * message. These fields are optional.
     */
    @JsonProperty(value = "properties")
    private Map properties;

    /**
     * System properties help identify contents and source of the messages.
     */
    @JsonProperty(value = "systemProperties")
    private Map systemProperties;

    /**
     * Get the content of the message from the device.
     *
     * @return the body value
     */
    public Object body() {
        return this.body;
    }

    /**
     * Set the content of the message from the device.
     *
     * @param body the body value to set
     * @return the DeviceTelemetryEventProperties object itself.
     */
    public DeviceTelemetryEventProperties withBody(Object body) {
        this.body = body;
        return this;
    }

    /**
     * Get application properties are user-defined strings that can be added to the message. These fields are optional.
     *
     * @return the properties value
     */
    public Map properties() {
        return this.properties;
    }

    /**
     * Set application properties are user-defined strings that can be added to the message. These fields are optional.
     *
     * @param properties the properties value to set
     * @return the DeviceTelemetryEventProperties object itself.
     */
    public DeviceTelemetryEventProperties withProperties(Map properties) {
        this.properties = properties;
        return this;
    }

    /**
     * Get system properties help identify contents and source of the messages.
     *
     * @return the systemProperties value
     */
    public Map systemProperties() {
        return this.systemProperties;
    }

    /**
     * Set system properties help identify contents and source of the messages.
     *
     * @param systemProperties the systemProperties value to set
     * @return the DeviceTelemetryEventProperties object itself.
     */
    public DeviceTelemetryEventProperties withSystemProperties(Map systemProperties) {
        this.systemProperties = systemProperties;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy