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

package com.azure.resourcemanager.customerinsights.models;

import com.azure.core.util.Context;
import com.azure.resourcemanager.customerinsights.fluent.models.ViewResourceFormatInner;
import java.time.OffsetDateTime;
import java.util.Map;

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

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

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

    /**
     * Gets the viewName property: Name of the view.
     *
     * @return the viewName value.
     */
    String viewName();

    /**
     * Gets the userId property: the user ID.
     *
     * @return the userId value.
     */
    String userId();

    /**
     * Gets the tenantId property: the hub name.
     *
     * @return the tenantId value.
     */
    String tenantId();

    /**
     * Gets the displayName property: Localized display name for the view.
     *
     * @return the displayName value.
     */
    Map<String, String> displayName();

    /**
     * Gets the definition property: View definition.
     *
     * @return the definition value.
     */
    String definition();

    /**
     * Gets the changed property: Date time when view was last modified.
     *
     * @return the changed value.
     */
    OffsetDateTime changed();

    /**
     * Gets the created property: Date time when view was created.
     *
     * @return the created value.
     */
    OffsetDateTime created();

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

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

    /** The entirety of the ViewResourceFormat definition. */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }
    /** The ViewResourceFormat definition stages. */
    interface DefinitionStages {
        /** The first stage of the ViewResourceFormat definition. */
        interface Blank extends WithParentResource {
        }
        /** The stage of the ViewResourceFormat definition allowing to specify parent resource. */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, hubName.
             *
             * @param resourceGroupName The name of the resource group.
             * @param hubName The name of the hub.
             * @return the next definition stage.
             */
            WithCreate withExistingHub(String resourceGroupName, String hubName);
        }
        /**
         * The stage of the ViewResourceFormat 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
            extends DefinitionStages.WithUserId, DefinitionStages.WithDisplayName, DefinitionStages.WithDefinition {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            ViewResourceFormat create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            ViewResourceFormat create(Context context);
        }
        /** The stage of the ViewResourceFormat definition allowing to specify userId. */
        interface WithUserId {
            /**
             * Specifies the userId property: the user ID..
             *
             * @param userId the user ID.
             * @return the next definition stage.
             */
            WithCreate withUserId(String userId);
        }
        /** The stage of the ViewResourceFormat definition allowing to specify displayName. */
        interface WithDisplayName {
            /**
             * Specifies the displayName property: Localized display name for the view..
             *
             * @param displayName Localized display name for the view.
             * @return the next definition stage.
             */
            WithCreate withDisplayName(Map<String, String> displayName);
        }
        /** The stage of the ViewResourceFormat definition allowing to specify definition. */
        interface WithDefinition {
            /**
             * Specifies the definition property: View definition..
             *
             * @param definition View definition.
             * @return the next definition stage.
             */
            WithCreate withDefinition(String definition);
        }
    }
    /**
     * Begins update for the ViewResourceFormat resource.
     *
     * @return the stage of resource update.
     */
    ViewResourceFormat.Update update();

    /** The template for ViewResourceFormat update. */
    interface Update extends UpdateStages.WithUserId, UpdateStages.WithDisplayName, UpdateStages.WithDefinition {
        /**
         * Executes the update request.
         *
         * @return the updated resource.
         */
        ViewResourceFormat apply();

        /**
         * Executes the update request.
         *
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        ViewResourceFormat apply(Context context);
    }
    /** The ViewResourceFormat update stages. */
    interface UpdateStages {
        /** The stage of the ViewResourceFormat update allowing to specify userId. */
        interface WithUserId {
            /**
             * Specifies the userId property: the user ID..
             *
             * @param userId the user ID.
             * @return the next definition stage.
             */
            Update withUserId(String userId);
        }
        /** The stage of the ViewResourceFormat update allowing to specify displayName. */
        interface WithDisplayName {
            /**
             * Specifies the displayName property: Localized display name for the view..
             *
             * @param displayName Localized display name for the view.
             * @return the next definition stage.
             */
            Update withDisplayName(Map<String, String> displayName);
        }
        /** The stage of the ViewResourceFormat update allowing to specify definition. */
        interface WithDefinition {
            /**
             * Specifies the definition property: View definition..
             *
             * @param definition View definition.
             * @return the next definition stage.
             */
            Update withDefinition(String definition);
        }
    }
}
