com.microsoft.azure.sdk.iot.service.twin.DeviceCapabilities Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot-service-client Show documentation
Show all versions of iot-service-client Show documentation
The Microsoft Azure IoT Service SDK for Java
The newest version!
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package com.microsoft.azure.sdk.iot.service.twin;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class DeviceCapabilities implements Serializable
{
private static final String IOT_EDGE_NAME = "iotEdge";
@Expose
@SerializedName(IOT_EDGE_NAME)
private Boolean iotEdge = false;
/**
* Setter for iotEdge Boolean
*
* @param iotEdge - status of capabilities enabled on the device
* @throws IllegalArgumentException if the provided argument is null
*/
public void setIotEdge(Boolean iotEdge) throws IllegalArgumentException
{
if (iotEdge == null)
{
throw new IllegalArgumentException("iotEdge cannot be null");
}
this.iotEdge = iotEdge;
}
/**
* Getter for iotEdge Boolean
*
* @return the iotEdge Boolean
*/
public Boolean isIotEdge()
{
return this.iotEdge;
}
}