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

com.azure.messaging.eventgrid.systemevents.DeviceTelemetryEventProperties Maven / Gradle / Ivy

There is a newer version: 4.27.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.messaging.eventgrid.systemevents;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry). */
@Fluent
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;

    /** Creates an instance of DeviceTelemetryEventProperties class. */
    public DeviceTelemetryEventProperties() {}

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

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

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

    /**
     * Set the properties property: 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 setProperties(Map properties) {
        this.properties = properties;
        return this;
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy