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

/**
 * Single topology parameter declaration. Declared parameters can and must be referenced throughout the topology and can
 * optionally have default values to be used when they are not defined in the pipeline instances.
 */
@Fluent
public final class ParameterDeclaration {
    /*
     * Name of the parameter.
     */
    @JsonProperty(value = "name", required = true)
    private String name;

    /*
     * Type of the parameter.
     */
    @JsonProperty(value = "type", required = true)
    private ParameterType type;

    /*
     * Description of the parameter.
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * The default value for the parameter to be used if the live pipeline does
     * not specify a value.
     */
    @JsonProperty(value = "default")
    private String defaultProperty;

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

    /**
     * Get the name property: Name of the parameter.
     *
     * @return the name value.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Get the type property: Type of the parameter.
     *
     * @return the type value.
     */
    public ParameterType getType() {
        return this.type;
    }

    /**
     * Get the description property: Description of the parameter.
     *
     * @return the description value.
     */
    public String getDescription() {
        return this.description;
    }

    /**
     * Set the description property: Description of the parameter.
     *
     * @param description the description value to set.
     * @return the ParameterDeclaration object itself.
     */
    public ParameterDeclaration setDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the defaultProperty property: The default value for the parameter to be used if the live pipeline does not
     * specify a value.
     *
     * @return the defaultProperty value.
     */
    public String getDefaultProperty() {
        return this.defaultProperty;
    }

    /**
     * Set the defaultProperty property: The default value for the parameter to be used if the live pipeline does not
     * specify a value.
     *
     * @param defaultProperty the defaultProperty value to set.
     * @return the ParameterDeclaration object itself.
     */
    public ParameterDeclaration setDefaultProperty(String defaultProperty) {
        this.defaultProperty = defaultProperty;
        return this;
    }
}
