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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.securityinsights.models.CodelessUiConnectorConfigProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Represents Codeless UI data connector. */
@Fluent
public final class CodelessParameters {
    /*
     * Config to describe the instructions blade
     */
    @JsonProperty(value = "connectorUiConfig")
    private CodelessUiConnectorConfigProperties connectorUiConfig;

    /**
     * Get the connectorUiConfig property: Config to describe the instructions blade.
     *
     * @return the connectorUiConfig value.
     */
    public CodelessUiConnectorConfigProperties connectorUiConfig() {
        return this.connectorUiConfig;
    }

    /**
     * Set the connectorUiConfig property: Config to describe the instructions blade.
     *
     * @param connectorUiConfig the connectorUiConfig value to set.
     * @return the CodelessParameters object itself.
     */
    public CodelessParameters withConnectorUiConfig(CodelessUiConnectorConfigProperties connectorUiConfig) {
        this.connectorUiConfig = connectorUiConfig;
        return this;
    }

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