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

package com.azure.resourcemanager.streamanalytics.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.streamanalytics.models.UdfType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The binding retrieval properties associated with an Azure Machine learning web service. */
@Fluent
public final class AzureMachineLearningWebServiceFunctionBindingRetrievalProperties {
    @JsonIgnore
    private final ClientLogger logger =
        new ClientLogger(AzureMachineLearningWebServiceFunctionBindingRetrievalProperties.class);

    /*
     * The Request-Response execute endpoint of the Azure Machine Learning web
     * service. Find out more here:
     * https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
     */
    @JsonProperty(value = "executeEndpoint")
    private String executeEndpoint;

    /*
     * The function type.
     */
    @JsonProperty(value = "udfType")
    private UdfType udfType;

    /**
     * Get the executeEndpoint property: The Request-Response execute endpoint of the Azure Machine Learning web
     * service. Find out more here:
     * https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs.
     *
     * @return the executeEndpoint value.
     */
    public String executeEndpoint() {
        return this.executeEndpoint;
    }

    /**
     * Set the executeEndpoint property: The Request-Response execute endpoint of the Azure Machine Learning web
     * service. Find out more here:
     * https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs.
     *
     * @param executeEndpoint the executeEndpoint value to set.
     * @return the AzureMachineLearningWebServiceFunctionBindingRetrievalProperties object itself.
     */
    public AzureMachineLearningWebServiceFunctionBindingRetrievalProperties withExecuteEndpoint(
        String executeEndpoint) {
        this.executeEndpoint = executeEndpoint;
        return this;
    }

    /**
     * Get the udfType property: The function type.
     *
     * @return the udfType value.
     */
    public UdfType udfType() {
        return this.udfType;
    }

    /**
     * Set the udfType property: The function type.
     *
     * @param udfType the udfType value to set.
     * @return the AzureMachineLearningWebServiceFunctionBindingRetrievalProperties object itself.
     */
    public AzureMachineLearningWebServiceFunctionBindingRetrievalProperties withUdfType(UdfType udfType) {
        this.udfType = udfType;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
