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

com.microsoft.azure.eventgrid.models.DeviceTwinProperties 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 com.fasterxml.jackson.annotation.JsonProperty;

/**
 * A portion of the properties that can be written only by the application
 * back-end, and read by the device.
 */
public class DeviceTwinProperties {
    /**
     * Metadata information for the properties JSON document.
     */
    @JsonProperty(value = "metadata")
    private DeviceTwinMetadata metadata;

    /**
     * Version of device twin properties.
     */
    @JsonProperty(value = "version")
    private Double version;

    /**
     * Get metadata information for the properties JSON document.
     *
     * @return the metadata value
     */
    public DeviceTwinMetadata metadata() {
        return this.metadata;
    }

    /**
     * Set metadata information for the properties JSON document.
     *
     * @param metadata the metadata value to set
     * @return the DeviceTwinProperties object itself.
     */
    public DeviceTwinProperties withMetadata(DeviceTwinMetadata metadata) {
        this.metadata = metadata;
        return this;
    }

    /**
     * Get version of device twin properties.
     *
     * @return the version value
     */
    public Double version() {
        return this.version;
    }

    /**
     * Set version of device twin properties.
     *
     * @param version the version value to set
     * @return the DeviceTwinProperties object itself.
     */
    public DeviceTwinProperties withVersion(Double version) {
        this.version = version;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy