// 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;
import java.util.List;

/**
 * IoT Hub Message sink allows for pipeline messages to published into the IoT Edge Hub. Published messages can then be
 * delivered to the cloud and other modules via routes declared in the IoT Edge deployment manifest.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type")
@JsonTypeName("#Microsoft.VideoAnalyzer.IotHubMessageSink")
@Fluent
public final class IotHubMessageSink extends SinkNodeBase {
    /*
     * Name of the Iot Edge Hub output to which the messages will be published.
     */
    @JsonProperty(value = "hubOutputName", required = true)
    private String hubOutputName;

    /**
     * Creates an instance of IotHubMessageSink class.
     *
     * @param name the name value to set.
     * @param inputs the inputs value to set.
     * @param hubOutputName the hubOutputName value to set.
     */
    @JsonCreator
    public IotHubMessageSink(
            @JsonProperty(value = "name", required = true) String name,
            @JsonProperty(value = "inputs", required = true) List<NodeInput> inputs,
            @JsonProperty(value = "hubOutputName", required = true) String hubOutputName) {
        super(name, inputs);
        this.hubOutputName = hubOutputName;
    }

    /**
     * Get the hubOutputName property: Name of the Iot Edge Hub output to which the messages will be published.
     *
     * @return the hubOutputName value.
     */
    public String getHubOutputName() {
        return this.hubOutputName;
    }
}
