com.azure.messaging.eventgrid.systemevents.DeviceTwinProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-messaging-eventgrid Show documentation
Show all versions of azure-messaging-eventgrid Show documentation
This package contains Microsoft Azure EventGrid SDK.
// 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;
/** A portion of the properties that can be written only by the application back-end, and read by the device. */
@Fluent
public final class DeviceTwinProperties {
/*
* Metadata information for the properties JSON document.
*/
@JsonProperty(value = "metadata")
private DeviceTwinMetadata metadata;
/*
* Version of device twin properties.
*/
@JsonProperty(value = "version")
private Float version;
/** Creates an instance of DeviceTwinProperties class. */
public DeviceTwinProperties() {}
/**
* Get the metadata property: Metadata information for the properties JSON document.
*
* @return the metadata value.
*/
public DeviceTwinMetadata getMetadata() {
return this.metadata;
}
/**
* Set the metadata property: Metadata information for the properties JSON document.
*
* @param metadata the metadata value to set.
* @return the DeviceTwinProperties object itself.
*/
public DeviceTwinProperties setMetadata(DeviceTwinMetadata metadata) {
this.metadata = metadata;
return this;
}
/**
* Get the version property: Version of device twin properties.
*
* @return the version value.
*/
public Float getVersion() {
return this.version;
}
/**
* Set the version property: Version of device twin properties.
*
* @param version the version value to set.
* @return the DeviceTwinProperties object itself.
*/
public DeviceTwinProperties setVersion(Float version) {
this.version = version;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy