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

package com.azure.resourcemanager.datalakestore.models;

import com.azure.core.util.Context;
import com.azure.resourcemanager.datalakestore.fluent.models.TrustedIdProviderInner;

/** An immutable client-side representation of TrustedIdProvider. */
public interface TrustedIdProvider {
    /**
     * Gets the id property: Fully qualified resource Id for the resource.
     *
     * @return the id value.
     */
    String id();

    /**
     * Gets the name property: The resource name.
     *
     * @return the name value.
     */
    String name();

    /**
     * Gets the type property: The resource type.
     *
     * @return the type value.
     */
    String type();

    /**
     * Gets the idProvider property: The URL of this trusted identity provider.
     *
     * @return the idProvider value.
     */
    String idProvider();

    /**
     * Gets the name of the resource group.
     *
     * @return the name of the resource group.
     */
    String resourceGroupName();

    /**
     * Gets the inner com.azure.resourcemanager.datalakestore.fluent.models.TrustedIdProviderInner object.
     *
     * @return the inner object.
     */
    TrustedIdProviderInner innerModel();

    /** The entirety of the TrustedIdProvider definition. */
    interface Definition
        extends DefinitionStages.Blank,
            DefinitionStages.WithParentResource,
            DefinitionStages.WithIdProvider,
            DefinitionStages.WithCreate {
    }
    /** The TrustedIdProvider definition stages. */
    interface DefinitionStages {
        /** The first stage of the TrustedIdProvider definition. */
        interface Blank extends WithParentResource {
        }
        /** The stage of the TrustedIdProvider definition allowing to specify parent resource. */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, accountName.
             *
             * @param resourceGroupName The name of the Azure resource group.
             * @param accountName The name of the Data Lake Store account.
             * @return the next definition stage.
             */
            WithIdProvider withExistingAccount(String resourceGroupName, String accountName);
        }
        /** The stage of the TrustedIdProvider definition allowing to specify idProvider. */
        interface WithIdProvider {
            /**
             * Specifies the idProvider property: The URL of this trusted identity provider..
             *
             * @param idProvider The URL of this trusted identity provider.
             * @return the next definition stage.
             */
            WithCreate withIdProvider(String idProvider);
        }
        /**
         * The stage of the TrustedIdProvider definition which contains all the minimum required properties for the
         * resource to be created, but also allows for any other optional properties to be specified.
         */
        interface WithCreate {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            TrustedIdProvider create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            TrustedIdProvider create(Context context);
        }
    }
    /**
     * Begins update for the TrustedIdProvider resource.
     *
     * @return the stage of resource update.
     */
    TrustedIdProvider.Update update();

    /** The template for TrustedIdProvider update. */
    interface Update extends UpdateStages.WithIdProvider {
        /**
         * Executes the update request.
         *
         * @return the updated resource.
         */
        TrustedIdProvider apply();

        /**
         * Executes the update request.
         *
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        TrustedIdProvider apply(Context context);
    }
    /** The TrustedIdProvider update stages. */
    interface UpdateStages {
        /** The stage of the TrustedIdProvider update allowing to specify idProvider. */
        interface WithIdProvider {
            /**
             * Specifies the idProvider property: The URL of this trusted identity provider..
             *
             * @param idProvider The URL of this trusted identity provider.
             * @return the next definition stage.
             */
            Update withIdProvider(String idProvider);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    TrustedIdProvider refresh();

    /**
     * Refreshes the resource to sync with Azure.
     *
     * @param context The context to associate with this operation.
     * @return the refreshed resource.
     */
    TrustedIdProvider refresh(Context context);
}
