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

package com.azure.resourcemanager.connectedvmware.models;

import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.connectedvmware.fluent.models.HybridIdentityMetadataInner;

/** An immutable client-side representation of HybridIdentityMetadata. */
public interface HybridIdentityMetadata {
    /**
     * 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 systemData property: The system data.
     *
     * @return the systemData value.
     */
    SystemData systemData();

    /**
     * Gets the vmId property: Gets or sets the Vm Id.
     *
     * @return the vmId value.
     */
    String vmId();

    /**
     * Gets the publicKey property: Gets or sets the Public Key.
     *
     * @return the publicKey value.
     */
    String publicKey();

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

    /**
     * Gets the provisioningState property: Gets or sets the provisioning state.
     *
     * @return the provisioningState value.
     */
    String provisioningState();

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

    /** The entirety of the HybridIdentityMetadata definition. */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }
    /** The HybridIdentityMetadata definition stages. */
    interface DefinitionStages {
        /** The first stage of the HybridIdentityMetadata definition. */
        interface Blank extends WithParentResource {
        }
        /** The stage of the HybridIdentityMetadata definition allowing to specify parent resource. */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, virtualMachineName.
             *
             * @param resourceGroupName The Resource Group Name.
             * @param virtualMachineName Name of the vm.
             * @return the next definition stage.
             */
            WithCreate withExistingVirtualMachine(String resourceGroupName, String virtualMachineName);
        }
        /**
         * The stage of the HybridIdentityMetadata 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.WithVmId, DefinitionStages.WithPublicKey {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            HybridIdentityMetadata create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            HybridIdentityMetadata create(Context context);
        }
        /** The stage of the HybridIdentityMetadata definition allowing to specify vmId. */
        interface WithVmId {
            /**
             * Specifies the vmId property: Gets or sets the Vm Id..
             *
             * @param vmId Gets or sets the Vm Id.
             * @return the next definition stage.
             */
            WithCreate withVmId(String vmId);
        }
        /** The stage of the HybridIdentityMetadata definition allowing to specify publicKey. */
        interface WithPublicKey {
            /**
             * Specifies the publicKey property: Gets or sets the Public Key..
             *
             * @param publicKey Gets or sets the Public Key.
             * @return the next definition stage.
             */
            WithCreate withPublicKey(String publicKey);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    HybridIdentityMetadata refresh();

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