// 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.ConnectorResourceFormatInner;
import java.time.OffsetDateTime;
import java.util.Map;

/** An immutable client-side representation of ConnectorResourceFormat. */
public interface ConnectorResourceFormat {
    /**
     * 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 connectorId property: ID of the connector.
     *
     * @return the connectorId value.
     */
    Integer connectorId();

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

    /**
     * Gets the connectorType property: Type of connector.
     *
     * @return the connectorType value.
     */
    ConnectorTypes connectorType();

    /**
     * Gets the displayName property: Display name of the connector.
     *
     * @return the displayName value.
     */
    String displayName();

    /**
     * Gets the description property: Description of the connector.
     *
     * @return the description value.
     */
    String description();

    /**
     * Gets the connectorProperties property: The connector properties.
     *
     * @return the connectorProperties value.
     */
    Map<String, Object> connectorProperties();

    /**
     * Gets the created property: The created time.
     *
     * @return the created value.
     */
    OffsetDateTime created();

    /**
     * Gets the lastModified property: The last modified time.
     *
     * @return the lastModified value.
     */
    OffsetDateTime lastModified();

    /**
     * Gets the state property: State of connector.
     *
     * @return the state value.
     */
    ConnectorStates state();

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

    /**
     * Gets the isInternal property: If this is an internal connector.
     *
     * @return the isInternal value.
     */
    Boolean isInternal();

    /**
     * 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.ConnectorResourceFormatInner object.
     *
     * @return the inner object.
     */
    ConnectorResourceFormatInner innerModel();

    /** The entirety of the ConnectorResourceFormat definition. */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }
    /** The ConnectorResourceFormat definition stages. */
    interface DefinitionStages {
        /** The first stage of the ConnectorResourceFormat definition. */
        interface Blank extends WithParentResource {
        }
        /** The stage of the ConnectorResourceFormat 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 ConnectorResourceFormat 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.WithConnectorName,
                DefinitionStages.WithConnectorType,
                DefinitionStages.WithDisplayName,
                DefinitionStages.WithDescription,
                DefinitionStages.WithConnectorProperties,
                DefinitionStages.WithIsInternal {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            ConnectorResourceFormat create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            ConnectorResourceFormat create(Context context);
        }
        /** The stage of the ConnectorResourceFormat definition allowing to specify connectorName. */
        interface WithConnectorName {
            /**
             * Specifies the connectorName property: Name of the connector..
             *
             * @param connectorName Name of the connector.
             * @return the next definition stage.
             */
            WithCreate withConnectorName(String connectorName);
        }
        /** The stage of the ConnectorResourceFormat definition allowing to specify connectorType. */
        interface WithConnectorType {
            /**
             * Specifies the connectorType property: Type of connector..
             *
             * @param connectorType Type of connector.
             * @return the next definition stage.
             */
            WithCreate withConnectorType(ConnectorTypes connectorType);
        }
        /** The stage of the ConnectorResourceFormat definition allowing to specify displayName. */
        interface WithDisplayName {
            /**
             * Specifies the displayName property: Display name of the connector..
             *
             * @param displayName Display name of the connector.
             * @return the next definition stage.
             */
            WithCreate withDisplayName(String displayName);
        }
        /** The stage of the ConnectorResourceFormat definition allowing to specify description. */
        interface WithDescription {
            /**
             * Specifies the description property: Description of the connector..
             *
             * @param description Description of the connector.
             * @return the next definition stage.
             */
            WithCreate withDescription(String description);
        }
        /** The stage of the ConnectorResourceFormat definition allowing to specify connectorProperties. */
        interface WithConnectorProperties {
            /**
             * Specifies the connectorProperties property: The connector properties..
             *
             * @param connectorProperties The connector properties.
             * @return the next definition stage.
             */
            WithCreate withConnectorProperties(Map<String, Object> connectorProperties);
        }
        /** The stage of the ConnectorResourceFormat definition allowing to specify isInternal. */
        interface WithIsInternal {
            /**
             * Specifies the isInternal property: If this is an internal connector..
             *
             * @param isInternal If this is an internal connector.
             * @return the next definition stage.
             */
            WithCreate withIsInternal(Boolean isInternal);
        }
    }
    /**
     * Begins update for the ConnectorResourceFormat resource.
     *
     * @return the stage of resource update.
     */
    ConnectorResourceFormat.Update update();

    /** The template for ConnectorResourceFormat update. */
    interface Update
        extends UpdateStages.WithConnectorName,
            UpdateStages.WithConnectorType,
            UpdateStages.WithDisplayName,
            UpdateStages.WithDescription,
            UpdateStages.WithConnectorProperties,
            UpdateStages.WithIsInternal {
        /**
         * Executes the update request.
         *
         * @return the updated resource.
         */
        ConnectorResourceFormat apply();

        /**
         * Executes the update request.
         *
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        ConnectorResourceFormat apply(Context context);
    }
    /** The ConnectorResourceFormat update stages. */
    interface UpdateStages {
        /** The stage of the ConnectorResourceFormat update allowing to specify connectorName. */
        interface WithConnectorName {
            /**
             * Specifies the connectorName property: Name of the connector..
             *
             * @param connectorName Name of the connector.
             * @return the next definition stage.
             */
            Update withConnectorName(String connectorName);
        }
        /** The stage of the ConnectorResourceFormat update allowing to specify connectorType. */
        interface WithConnectorType {
            /**
             * Specifies the connectorType property: Type of connector..
             *
             * @param connectorType Type of connector.
             * @return the next definition stage.
             */
            Update withConnectorType(ConnectorTypes connectorType);
        }
        /** The stage of the ConnectorResourceFormat update allowing to specify displayName. */
        interface WithDisplayName {
            /**
             * Specifies the displayName property: Display name of the connector..
             *
             * @param displayName Display name of the connector.
             * @return the next definition stage.
             */
            Update withDisplayName(String displayName);
        }
        /** The stage of the ConnectorResourceFormat update allowing to specify description. */
        interface WithDescription {
            /**
             * Specifies the description property: Description of the connector..
             *
             * @param description Description of the connector.
             * @return the next definition stage.
             */
            Update withDescription(String description);
        }
        /** The stage of the ConnectorResourceFormat update allowing to specify connectorProperties. */
        interface WithConnectorProperties {
            /**
             * Specifies the connectorProperties property: The connector properties..
             *
             * @param connectorProperties The connector properties.
             * @return the next definition stage.
             */
            Update withConnectorProperties(Map<String, Object> connectorProperties);
        }
        /** The stage of the ConnectorResourceFormat update allowing to specify isInternal. */
        interface WithIsInternal {
            /**
             * Specifies the isInternal property: If this is an internal connector..
             *
             * @param isInternal If this is an internal connector.
             * @return the next definition stage.
             */
            Update withIsInternal(Boolean isInternal);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    ConnectorResourceFormat refresh();

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