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

package com.azure.resourcemanager.synapse.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Custom setup script properties for a managed dedicated integration runtime. */
@Fluent
public final class IntegrationRuntimeCustomSetupScriptProperties {
    /*
     * The URI of the Azure blob container that contains the custom setup script.
     */
    @JsonProperty(value = "blobContainerUri")
    private String blobContainerUri;

    /*
     * The SAS token of the Azure blob container.
     */
    @JsonProperty(value = "sasToken")
    private SecureString sasToken;

    /** Creates an instance of IntegrationRuntimeCustomSetupScriptProperties class. */
    public IntegrationRuntimeCustomSetupScriptProperties() {
    }

    /**
     * Get the blobContainerUri property: The URI of the Azure blob container that contains the custom setup script.
     *
     * @return the blobContainerUri value.
     */
    public String blobContainerUri() {
        return this.blobContainerUri;
    }

    /**
     * Set the blobContainerUri property: The URI of the Azure blob container that contains the custom setup script.
     *
     * @param blobContainerUri the blobContainerUri value to set.
     * @return the IntegrationRuntimeCustomSetupScriptProperties object itself.
     */
    public IntegrationRuntimeCustomSetupScriptProperties withBlobContainerUri(String blobContainerUri) {
        this.blobContainerUri = blobContainerUri;
        return this;
    }

    /**
     * Get the sasToken property: The SAS token of the Azure blob container.
     *
     * @return the sasToken value.
     */
    public SecureString sasToken() {
        return this.sasToken;
    }

    /**
     * Set the sasToken property: The SAS token of the Azure blob container.
     *
     * @param sasToken the sasToken value to set.
     * @return the IntegrationRuntimeCustomSetupScriptProperties object itself.
     */
    public IntegrationRuntimeCustomSetupScriptProperties withSasToken(SecureString sasToken) {
        this.sasToken = sasToken;
        return this;
    }

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