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

package com.azure.resourcemanager.paloaltonetworks.ngfw.models;

import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListLocalRulestackResourceInner;
import java.util.List;

/** An immutable client-side representation of FqdnListLocalRulestackResource. */
public interface FqdnListLocalRulestackResource {
    /**
     * 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: Azure Resource Manager metadata containing createdBy and modifiedBy information.
     *
     * @return the systemData value.
     */
    SystemData systemData();

    /**
     * Gets the description property: fqdn object description.
     *
     * @return the description value.
     */
    String description();

    /**
     * Gets the fqdnList property: fqdn list.
     *
     * @return the fqdnList value.
     */
    List<String> fqdnList();

    /**
     * Gets the etag property: etag info.
     *
     * @return the etag value.
     */
    String etag();

    /**
     * Gets the auditComment property: comment for this object.
     *
     * @return the auditComment value.
     */
    String auditComment();

    /**
     * Gets the provisioningState property: Provisioning state of the resource.
     *
     * @return the provisioningState value.
     */
    ProvisioningState provisioningState();

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

    /**
     * Gets the inner com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.FqdnListLocalRulestackResourceInner
     * object.
     *
     * @return the inner object.
     */
    FqdnListLocalRulestackResourceInner innerModel();

    /** The entirety of the FqdnListLocalRulestackResource definition. */
    interface Definition
        extends DefinitionStages.Blank,
            DefinitionStages.WithParentResource,
            DefinitionStages.WithFqdnList,
            DefinitionStages.WithCreate {
    }
    /** The FqdnListLocalRulestackResource definition stages. */
    interface DefinitionStages {
        /** The first stage of the FqdnListLocalRulestackResource definition. */
        interface Blank extends WithParentResource {
        }
        /** The stage of the FqdnListLocalRulestackResource definition allowing to specify parent resource. */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, localRulestackName.
             *
             * @param resourceGroupName The name of the resource group. The name is case insensitive.
             * @param localRulestackName LocalRulestack resource name.
             * @return the next definition stage.
             */
            WithFqdnList withExistingLocalRulestack(String resourceGroupName, String localRulestackName);
        }
        /** The stage of the FqdnListLocalRulestackResource definition allowing to specify fqdnList. */
        interface WithFqdnList {
            /**
             * Specifies the fqdnList property: fqdn list.
             *
             * @param fqdnList fqdn list.
             * @return the next definition stage.
             */
            WithCreate withFqdnList(List<String> fqdnList);
        }
        /**
         * The stage of the FqdnListLocalRulestackResource 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.WithDescription, DefinitionStages.WithEtag, DefinitionStages.WithAuditComment {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            FqdnListLocalRulestackResource create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            FqdnListLocalRulestackResource create(Context context);
        }
        /** The stage of the FqdnListLocalRulestackResource definition allowing to specify description. */
        interface WithDescription {
            /**
             * Specifies the description property: fqdn object description.
             *
             * @param description fqdn object description.
             * @return the next definition stage.
             */
            WithCreate withDescription(String description);
        }
        /** The stage of the FqdnListLocalRulestackResource definition allowing to specify etag. */
        interface WithEtag {
            /**
             * Specifies the etag property: etag info.
             *
             * @param etag etag info.
             * @return the next definition stage.
             */
            WithCreate withEtag(String etag);
        }
        /** The stage of the FqdnListLocalRulestackResource definition allowing to specify auditComment. */
        interface WithAuditComment {
            /**
             * Specifies the auditComment property: comment for this object.
             *
             * @param auditComment comment for this object.
             * @return the next definition stage.
             */
            WithCreate withAuditComment(String auditComment);
        }
    }
    /**
     * Begins update for the FqdnListLocalRulestackResource resource.
     *
     * @return the stage of resource update.
     */
    FqdnListLocalRulestackResource.Update update();

    /** The template for FqdnListLocalRulestackResource update. */
    interface Update
        extends UpdateStages.WithDescription,
            UpdateStages.WithFqdnList,
            UpdateStages.WithEtag,
            UpdateStages.WithAuditComment {
        /**
         * Executes the update request.
         *
         * @return the updated resource.
         */
        FqdnListLocalRulestackResource apply();

        /**
         * Executes the update request.
         *
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        FqdnListLocalRulestackResource apply(Context context);
    }
    /** The FqdnListLocalRulestackResource update stages. */
    interface UpdateStages {
        /** The stage of the FqdnListLocalRulestackResource update allowing to specify description. */
        interface WithDescription {
            /**
             * Specifies the description property: fqdn object description.
             *
             * @param description fqdn object description.
             * @return the next definition stage.
             */
            Update withDescription(String description);
        }
        /** The stage of the FqdnListLocalRulestackResource update allowing to specify fqdnList. */
        interface WithFqdnList {
            /**
             * Specifies the fqdnList property: fqdn list.
             *
             * @param fqdnList fqdn list.
             * @return the next definition stage.
             */
            Update withFqdnList(List<String> fqdnList);
        }
        /** The stage of the FqdnListLocalRulestackResource update allowing to specify etag. */
        interface WithEtag {
            /**
             * Specifies the etag property: etag info.
             *
             * @param etag etag info.
             * @return the next definition stage.
             */
            Update withEtag(String etag);
        }
        /** The stage of the FqdnListLocalRulestackResource update allowing to specify auditComment. */
        interface WithAuditComment {
            /**
             * Specifies the auditComment property: comment for this object.
             *
             * @param auditComment comment for this object.
             * @return the next definition stage.
             */
            Update withAuditComment(String auditComment);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    FqdnListLocalRulestackResource refresh();

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