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

package com.azure.resourcemanager.logic.models;

import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner;
import java.util.List;
import java.util.Map;

/** An immutable client-side representation of IntegrationServiceEnvironmentManagedApi. */
public interface IntegrationServiceEnvironmentManagedApi {
    /**
     * 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 location property: The geo-location where the resource lives.
     *
     * @return the location value.
     */
    String location();

    /**
     * Gets the tags property: Resource tags.
     *
     * @return the tags value.
     */
    Map<String, String> tags();

    /**
     * Gets the deploymentParameters property: The integration service environment managed api deployment parameters.
     *
     * @return the deploymentParameters value.
     */
    IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters();

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

    /**
     * Gets the connectionParameters property: The connection parameters.
     *
     * @return the connectionParameters value.
     */
    Map<String, Object> connectionParameters();

    /**
     * Gets the metadata property: The metadata.
     *
     * @return the metadata value.
     */
    ApiResourceMetadata metadata();

    /**
     * Gets the runtimeUrls property: The runtime urls.
     *
     * @return the runtimeUrls value.
     */
    List<String> runtimeUrls();

    /**
     * Gets the generalInformation property: The api general information.
     *
     * @return the generalInformation value.
     */
    ApiResourceGeneralInformation generalInformation();

    /**
     * Gets the capabilities property: The capabilities.
     *
     * @return the capabilities value.
     */
    List<String> capabilities();

    /**
     * Gets the backendService property: The backend service.
     *
     * @return the backendService value.
     */
    ApiResourceBackendService backendService();

    /**
     * Gets the policies property: The policies for the API.
     *
     * @return the policies value.
     */
    ApiResourcePolicies policies();

    /**
     * Gets the apiDefinitionUrl property: The API definition.
     *
     * @return the apiDefinitionUrl value.
     */
    String apiDefinitionUrl();

    /**
     * Gets the apiDefinitions property: The api definitions.
     *
     * @return the apiDefinitions value.
     */
    ApiResourceDefinitions apiDefinitions();

    /**
     * Gets the integrationServiceEnvironment property: The integration service environment reference.
     *
     * @return the integrationServiceEnvironment value.
     */
    ResourceReference integrationServiceEnvironment();

    /**
     * Gets the provisioningState property: The provisioning state.
     *
     * @return the provisioningState value.
     */
    WorkflowProvisioningState provisioningState();

    /**
     * Gets the category property: The category.
     *
     * @return the category value.
     */
    ApiTier category();

    /**
     * Gets the region of the resource.
     *
     * @return the region of the resource.
     */
    Region region();

    /**
     * Gets the name of the resource region.
     *
     * @return the name of the resource region.
     */
    String regionName();

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

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

    /** The entirety of the IntegrationServiceEnvironmentManagedApi definition. */
    interface Definition
        extends DefinitionStages.Blank,
            DefinitionStages.WithLocation,
            DefinitionStages.WithParentResource,
            DefinitionStages.WithCreate {
    }
    /** The IntegrationServiceEnvironmentManagedApi definition stages. */
    interface DefinitionStages {
        /** The first stage of the IntegrationServiceEnvironmentManagedApi definition. */
        interface Blank extends WithLocation {
        }
        /** The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify location. */
        interface WithLocation {
            /**
             * Specifies the region for the resource.
             *
             * @param location The geo-location where the resource lives.
             * @return the next definition stage.
             */
            WithParentResource withRegion(Region location);

            /**
             * Specifies the region for the resource.
             *
             * @param location The geo-location where the resource lives.
             * @return the next definition stage.
             */
            WithParentResource withRegion(String location);
        }
        /** The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify parent resource. */
        interface WithParentResource {
            /**
             * Specifies resourceGroup, integrationServiceEnvironmentName.
             *
             * @param resourceGroup The resource group name.
             * @param integrationServiceEnvironmentName The integration service environment name.
             * @return the next definition stage.
             */
            WithCreate withExistingIntegrationServiceEnvironment(
                String resourceGroup, String integrationServiceEnvironmentName);
        }
        /**
         * The stage of the IntegrationServiceEnvironmentManagedApi 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.WithTags,
                DefinitionStages.WithDeploymentParameters,
                DefinitionStages.WithIntegrationServiceEnvironment {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            IntegrationServiceEnvironmentManagedApi create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            IntegrationServiceEnvironmentManagedApi create(Context context);
        }
        /** The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify tags. */
        interface WithTags {
            /**
             * Specifies the tags property: Resource tags..
             *
             * @param tags Resource tags.
             * @return the next definition stage.
             */
            WithCreate withTags(Map<String, String> tags);
        }
        /**
         * The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify deploymentParameters.
         */
        interface WithDeploymentParameters {
            /**
             * Specifies the deploymentParameters property: The integration service environment managed api deployment
             * parameters..
             *
             * @param deploymentParameters The integration service environment managed api deployment parameters.
             * @return the next definition stage.
             */
            WithCreate withDeploymentParameters(
                IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters);
        }
        /**
         * The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify
         * integrationServiceEnvironment.
         */
        interface WithIntegrationServiceEnvironment {
            /**
             * Specifies the integrationServiceEnvironment property: The integration service environment reference..
             *
             * @param integrationServiceEnvironment The integration service environment reference.
             * @return the next definition stage.
             */
            WithCreate withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment);
        }
    }
    /**
     * Begins update for the IntegrationServiceEnvironmentManagedApi resource.
     *
     * @return the stage of resource update.
     */
    IntegrationServiceEnvironmentManagedApi.Update update();

    /** The template for IntegrationServiceEnvironmentManagedApi update. */
    interface Update
        extends UpdateStages.WithTags,
            UpdateStages.WithDeploymentParameters,
            UpdateStages.WithIntegrationServiceEnvironment {
        /**
         * Executes the update request.
         *
         * @return the updated resource.
         */
        IntegrationServiceEnvironmentManagedApi apply();

        /**
         * Executes the update request.
         *
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        IntegrationServiceEnvironmentManagedApi apply(Context context);
    }
    /** The IntegrationServiceEnvironmentManagedApi update stages. */
    interface UpdateStages {
        /** The stage of the IntegrationServiceEnvironmentManagedApi update allowing to specify tags. */
        interface WithTags {
            /**
             * Specifies the tags property: Resource tags..
             *
             * @param tags Resource tags.
             * @return the next definition stage.
             */
            Update withTags(Map<String, String> tags);
        }
        /** The stage of the IntegrationServiceEnvironmentManagedApi update allowing to specify deploymentParameters. */
        interface WithDeploymentParameters {
            /**
             * Specifies the deploymentParameters property: The integration service environment managed api deployment
             * parameters..
             *
             * @param deploymentParameters The integration service environment managed api deployment parameters.
             * @return the next definition stage.
             */
            Update withDeploymentParameters(
                IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters);
        }
        /**
         * The stage of the IntegrationServiceEnvironmentManagedApi update allowing to specify
         * integrationServiceEnvironment.
         */
        interface WithIntegrationServiceEnvironment {
            /**
             * Specifies the integrationServiceEnvironment property: The integration service environment reference..
             *
             * @param integrationServiceEnvironment The integration service environment reference.
             * @return the next definition stage.
             */
            Update withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    IntegrationServiceEnvironmentManagedApi refresh();

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