// 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.GuestAgentInner;
import java.util.List;

/** An immutable client-side representation of GuestAgent. */
public interface GuestAgent {
    /**
     * 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 uuid property: Gets or sets a unique identifier for this resource.
     *
     * @return the uuid value.
     */
    String uuid();

    /**
     * Gets the credentials property: Username / Password Credentials to provision guest agent.
     *
     * @return the credentials value.
     */
    GuestCredential credentials();

    /**
     * Gets the httpProxyConfig property: HTTP Proxy configuration for the VM.
     *
     * @return the httpProxyConfig value.
     */
    HttpProxyConfiguration httpProxyConfig();

    /**
     * Gets the provisioningAction property: Gets or sets the guest agent provisioning action.
     *
     * @return the provisioningAction value.
     */
    ProvisioningAction provisioningAction();

    /**
     * Gets the status property: Gets or sets the guest agent status.
     *
     * @return the status value.
     */
    String status();

    /**
     * Gets the customResourceName property: Gets the name of the corresponding resource in Kubernetes.
     *
     * @return the customResourceName value.
     */
    String customResourceName();

    /**
     * Gets the statuses property: The resource status information.
     *
     * @return the statuses value.
     */
    List<ResourceStatus> statuses();

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

    /** The entirety of the GuestAgent definition. */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }
    /** The GuestAgent definition stages. */
    interface DefinitionStages {
        /** The first stage of the GuestAgent definition. */
        interface Blank extends WithParentResource {
        }
        /** The stage of the GuestAgent 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 GuestAgent 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.WithCredentials,
                DefinitionStages.WithHttpProxyConfig,
                DefinitionStages.WithProvisioningAction {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            GuestAgent create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            GuestAgent create(Context context);
        }
        /** The stage of the GuestAgent definition allowing to specify credentials. */
        interface WithCredentials {
            /**
             * Specifies the credentials property: Username / Password Credentials to provision guest agent..
             *
             * @param credentials Username / Password Credentials to provision guest agent.
             * @return the next definition stage.
             */
            WithCreate withCredentials(GuestCredential credentials);
        }
        /** The stage of the GuestAgent definition allowing to specify httpProxyConfig. */
        interface WithHttpProxyConfig {
            /**
             * Specifies the httpProxyConfig property: HTTP Proxy configuration for the VM..
             *
             * @param httpProxyConfig HTTP Proxy configuration for the VM.
             * @return the next definition stage.
             */
            WithCreate withHttpProxyConfig(HttpProxyConfiguration httpProxyConfig);
        }
        /** The stage of the GuestAgent definition allowing to specify provisioningAction. */
        interface WithProvisioningAction {
            /**
             * Specifies the provisioningAction property: Gets or sets the guest agent provisioning action..
             *
             * @param provisioningAction Gets or sets the guest agent provisioning action.
             * @return the next definition stage.
             */
            WithCreate withProvisioningAction(ProvisioningAction provisioningAction);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    GuestAgent refresh();

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