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

package azure.resourcemanager.methodsubscriptionid.models;

import azure.resourcemanager.methodsubscriptionid.fluent.models.SubscriptionResource2Inner;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;

/**
 * An immutable client-side representation of SubscriptionResource2.
 */
public interface SubscriptionResource2 {
    /**
     * 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 properties property: The resource-specific properties for this resource.
     * 
     * @return the properties value.
     */
    SubscriptionResource2Properties properties();

    /**
     * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     * @return the systemData value.
     */
    SystemData systemData();

    /**
     * Gets the inner azure.resourcemanager.methodsubscriptionid.fluent.models.SubscriptionResource2Inner object.
     * 
     * @return the inner object.
     */
    SubscriptionResource2Inner innerModel();

    /**
     * The entirety of the SubscriptionResource2 definition.
     */
    interface Definition extends DefinitionStages.Blank, DefinitionStages.WithCreate {
    }

    /**
     * The SubscriptionResource2 definition stages.
     */
    interface DefinitionStages {
        /**
         * The first stage of the SubscriptionResource2 definition.
         */
        interface Blank extends WithCreate {
        }

        /**
         * The stage of the SubscriptionResource2 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.WithProperties {
            /**
             * Executes the create request.
             * 
             * @return the created resource.
             */
            SubscriptionResource2 create();

            /**
             * Executes the create request.
             * 
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            SubscriptionResource2 create(Context context);
        }

        /**
         * The stage of the SubscriptionResource2 definition allowing to specify properties.
         */
        interface WithProperties {
            /**
             * Specifies the properties property: The resource-specific properties for this resource..
             * 
             * @param properties The resource-specific properties for this resource.
             * @return the next definition stage.
             */
            WithCreate withProperties(SubscriptionResource2Properties properties);
        }
    }

    /**
     * Begins update for the SubscriptionResource2 resource.
     * 
     * @return the stage of resource update.
     */
    SubscriptionResource2.Update update();

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

        /**
         * Executes the update request.
         * 
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        SubscriptionResource2 apply(Context context);
    }

    /**
     * The SubscriptionResource2 update stages.
     */
    interface UpdateStages {
        /**
         * The stage of the SubscriptionResource2 update allowing to specify properties.
         */
        interface WithProperties {
            /**
             * Specifies the properties property: The resource-specific properties for this resource..
             * 
             * @param properties The resource-specific properties for this resource.
             * @return the next definition stage.
             */
            Update withProperties(SubscriptionResource2Properties properties);
        }
    }

    /**
     * Refreshes the resource to sync with Azure.
     * 
     * @return the refreshed resource.
     */
    SubscriptionResource2 refresh();

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