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

package com.azure.resourcemanager.avs.models;

import com.azure.core.util.Context;
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkDnsZoneInner;
import java.util.List;

/** An immutable client-side representation of WorkloadNetworkDnsZone. */
public interface WorkloadNetworkDnsZone {
    /**
     * 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 displayName property: Display name of the DNS Zone.
     *
     * @return the displayName value.
     */
    String displayName();

    /**
     * Gets the domain property: Domain names of the DNS Zone.
     *
     * @return the domain value.
     */
    List<String> domain();

    /**
     * Gets the dnsServerIps property: DNS Server IP array of the DNS Zone.
     *
     * @return the dnsServerIps value.
     */
    List<String> dnsServerIps();

    /**
     * Gets the sourceIp property: Source IP of the DNS Zone.
     *
     * @return the sourceIp value.
     */
    String sourceIp();

    /**
     * Gets the dnsServices property: Number of DNS Services using the DNS zone.
     *
     * @return the dnsServices value.
     */
    Long dnsServices();

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

    /**
     * Gets the revision property: NSX revision number.
     *
     * @return the revision value.
     */
    Long revision();

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

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

    /** The entirety of the WorkloadNetworkDnsZone definition. */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }
    /** The WorkloadNetworkDnsZone definition stages. */
    interface DefinitionStages {
        /** The first stage of the WorkloadNetworkDnsZone definition. */
        interface Blank extends WithParentResource {
        }
        /** The stage of the WorkloadNetworkDnsZone definition allowing to specify parent resource. */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, privateCloudName.
             *
             * @param resourceGroupName The name of the resource group. The name is case insensitive.
             * @param privateCloudName Name of the private cloud.
             * @return the next definition stage.
             */
            WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName);
        }
        /**
         * The stage of the WorkloadNetworkDnsZone 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.WithDisplayName,
                DefinitionStages.WithDomain,
                DefinitionStages.WithDnsServerIps,
                DefinitionStages.WithSourceIp,
                DefinitionStages.WithDnsServices,
                DefinitionStages.WithRevision {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            WorkloadNetworkDnsZone create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            WorkloadNetworkDnsZone create(Context context);
        }
        /** The stage of the WorkloadNetworkDnsZone definition allowing to specify displayName. */
        interface WithDisplayName {
            /**
             * Specifies the displayName property: Display name of the DNS Zone..
             *
             * @param displayName Display name of the DNS Zone.
             * @return the next definition stage.
             */
            WithCreate withDisplayName(String displayName);
        }
        /** The stage of the WorkloadNetworkDnsZone definition allowing to specify domain. */
        interface WithDomain {
            /**
             * Specifies the domain property: Domain names of the DNS Zone..
             *
             * @param domain Domain names of the DNS Zone.
             * @return the next definition stage.
             */
            WithCreate withDomain(List<String> domain);
        }
        /** The stage of the WorkloadNetworkDnsZone definition allowing to specify dnsServerIps. */
        interface WithDnsServerIps {
            /**
             * Specifies the dnsServerIps property: DNS Server IP array of the DNS Zone..
             *
             * @param dnsServerIps DNS Server IP array of the DNS Zone.
             * @return the next definition stage.
             */
            WithCreate withDnsServerIps(List<String> dnsServerIps);
        }
        /** The stage of the WorkloadNetworkDnsZone definition allowing to specify sourceIp. */
        interface WithSourceIp {
            /**
             * Specifies the sourceIp property: Source IP of the DNS Zone..
             *
             * @param sourceIp Source IP of the DNS Zone.
             * @return the next definition stage.
             */
            WithCreate withSourceIp(String sourceIp);
        }
        /** The stage of the WorkloadNetworkDnsZone definition allowing to specify dnsServices. */
        interface WithDnsServices {
            /**
             * Specifies the dnsServices property: Number of DNS Services using the DNS zone..
             *
             * @param dnsServices Number of DNS Services using the DNS zone.
             * @return the next definition stage.
             */
            WithCreate withDnsServices(Long dnsServices);
        }
        /** The stage of the WorkloadNetworkDnsZone definition allowing to specify revision. */
        interface WithRevision {
            /**
             * Specifies the revision property: NSX revision number..
             *
             * @param revision NSX revision number.
             * @return the next definition stage.
             */
            WithCreate withRevision(Long revision);
        }
    }
    /**
     * Begins update for the WorkloadNetworkDnsZone resource.
     *
     * @return the stage of resource update.
     */
    WorkloadNetworkDnsZone.Update update();

    /** The template for WorkloadNetworkDnsZone update. */
    interface Update
        extends UpdateStages.WithDisplayName,
            UpdateStages.WithDomain,
            UpdateStages.WithDnsServerIps,
            UpdateStages.WithSourceIp,
            UpdateStages.WithDnsServices,
            UpdateStages.WithRevision {
        /**
         * Executes the update request.
         *
         * @return the updated resource.
         */
        WorkloadNetworkDnsZone apply();

        /**
         * Executes the update request.
         *
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        WorkloadNetworkDnsZone apply(Context context);
    }
    /** The WorkloadNetworkDnsZone update stages. */
    interface UpdateStages {
        /** The stage of the WorkloadNetworkDnsZone update allowing to specify displayName. */
        interface WithDisplayName {
            /**
             * Specifies the displayName property: Display name of the DNS Zone..
             *
             * @param displayName Display name of the DNS Zone.
             * @return the next definition stage.
             */
            Update withDisplayName(String displayName);
        }
        /** The stage of the WorkloadNetworkDnsZone update allowing to specify domain. */
        interface WithDomain {
            /**
             * Specifies the domain property: Domain names of the DNS Zone..
             *
             * @param domain Domain names of the DNS Zone.
             * @return the next definition stage.
             */
            Update withDomain(List<String> domain);
        }
        /** The stage of the WorkloadNetworkDnsZone update allowing to specify dnsServerIps. */
        interface WithDnsServerIps {
            /**
             * Specifies the dnsServerIps property: DNS Server IP array of the DNS Zone..
             *
             * @param dnsServerIps DNS Server IP array of the DNS Zone.
             * @return the next definition stage.
             */
            Update withDnsServerIps(List<String> dnsServerIps);
        }
        /** The stage of the WorkloadNetworkDnsZone update allowing to specify sourceIp. */
        interface WithSourceIp {
            /**
             * Specifies the sourceIp property: Source IP of the DNS Zone..
             *
             * @param sourceIp Source IP of the DNS Zone.
             * @return the next definition stage.
             */
            Update withSourceIp(String sourceIp);
        }
        /** The stage of the WorkloadNetworkDnsZone update allowing to specify dnsServices. */
        interface WithDnsServices {
            /**
             * Specifies the dnsServices property: Number of DNS Services using the DNS zone..
             *
             * @param dnsServices Number of DNS Services using the DNS zone.
             * @return the next definition stage.
             */
            Update withDnsServices(Long dnsServices);
        }
        /** The stage of the WorkloadNetworkDnsZone update allowing to specify revision. */
        interface WithRevision {
            /**
             * Specifies the revision property: NSX revision number..
             *
             * @param revision NSX revision number.
             * @return the next definition stage.
             */
            Update withRevision(Long revision);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    WorkloadNetworkDnsZone refresh();

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