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

com.microsoft.azure.sdk.iot.service.twin.DeviceCapabilities Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy