// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.media.videoanalyzer.edge.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * IoT Hub Message source allows for the pipeline to consume messages from the IoT Edge Hub. Messages can be routed from
 * other IoT modules via routes declared in the IoT Edge deployment manifest.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type")
@JsonTypeName("#Microsoft.VideoAnalyzer.IotHubMessageSource")
@Fluent
public final class IotHubMessageSource extends SourceNodeBase {
    /*
     * Name of the IoT Edge Hub input from which messages will be consumed.
     */
    @JsonProperty(value = "hubInputName")
    private String hubInputName;

    /**
     * Creates an instance of IotHubMessageSource class.
     *
     * @param name the name value to set.
     */
    @JsonCreator
    public IotHubMessageSource(@JsonProperty(value = "name", required = true) String name) {
        super(name);
    }

    /**
     * Get the hubInputName property: Name of the IoT Edge Hub input from which messages will be consumed.
     *
     * @return the hubInputName value.
     */
    public String getHubInputName() {
        return this.hubInputName;
    }

    /**
     * Set the hubInputName property: Name of the IoT Edge Hub input from which messages will be consumed.
     *
     * @param hubInputName the hubInputName value to set.
     * @return the IotHubMessageSource object itself.
     */
    public IotHubMessageSource setHubInputName(String hubInputName) {
        this.hubInputName = hubInputName;
        return this;
    }
}
