Interface ForwardingRulesClient


  • public interface ForwardingRulesClient
    An instance of this class provides access to all the operations defined in ForwardingRulesClient.
    • Method Detail

      • createOrUpdate

        ForwardingRuleInner createOrUpdate​(String resourceGroupName,
                                           String dnsForwardingRulesetName,
                                           String forwardingRuleName,
                                           ForwardingRuleInner parameters)
        Creates or updates a forwarding rule in a DNS forwarding ruleset.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        forwardingRuleName - The name of the forwarding rule.
        parameters - Parameters supplied to the CreateOrUpdate operation.
        Returns:
        describes a forwarding rule within a DNS forwarding ruleset.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<ForwardingRuleInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                          String dnsForwardingRulesetName,
                                                                                          String forwardingRuleName,
                                                                                          ForwardingRuleInner parameters,
                                                                                          String ifMatch,
                                                                                          String ifNoneMatch,
                                                                                          com.azure.core.util.Context context)
        Creates or updates a forwarding rule in a DNS forwarding ruleset.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        forwardingRuleName - The name of the forwarding rule.
        parameters - Parameters supplied to the CreateOrUpdate operation.
        ifMatch - ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
        ifNoneMatch - Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.
        context - The context to associate with this operation.
        Returns:
        describes a forwarding rule within a DNS forwarding ruleset along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        ForwardingRuleInner update​(String resourceGroupName,
                                   String dnsForwardingRulesetName,
                                   String forwardingRuleName,
                                   ForwardingRulePatch parameters)
        Updates a forwarding rule in a DNS forwarding ruleset.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        forwardingRuleName - The name of the forwarding rule.
        parameters - Parameters supplied to the Update operation.
        Returns:
        describes a forwarding rule within a DNS forwarding ruleset.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • updateWithResponse

        com.azure.core.http.rest.Response<ForwardingRuleInner> updateWithResponse​(String resourceGroupName,
                                                                                  String dnsForwardingRulesetName,
                                                                                  String forwardingRuleName,
                                                                                  ForwardingRulePatch parameters,
                                                                                  String ifMatch,
                                                                                  com.azure.core.util.Context context)
        Updates a forwarding rule in a DNS forwarding ruleset.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        forwardingRuleName - The name of the forwarding rule.
        parameters - Parameters supplied to the Update operation.
        ifMatch - ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
        context - The context to associate with this operation.
        Returns:
        describes a forwarding rule within a DNS forwarding ruleset along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String dnsForwardingRulesetName,
                    String forwardingRuleName)
        Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        forwardingRuleName - The name of the forwarding rule.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteWithResponse

        com.azure.core.http.rest.Response<Void> deleteWithResponse​(String resourceGroupName,
                                                                   String dnsForwardingRulesetName,
                                                                   String forwardingRuleName,
                                                                   String ifMatch,
                                                                   com.azure.core.util.Context context)
        Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        forwardingRuleName - The name of the forwarding rule.
        ifMatch - ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
        context - The context to associate with this operation.
        Returns:
        the Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • get

        ForwardingRuleInner get​(String resourceGroupName,
                                String dnsForwardingRulesetName,
                                String forwardingRuleName)
        Gets properties of a forwarding rule in a DNS forwarding ruleset.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        forwardingRuleName - The name of the forwarding rule.
        Returns:
        properties of a forwarding rule in a DNS forwarding ruleset.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponse

        com.azure.core.http.rest.Response<ForwardingRuleInner> getWithResponse​(String resourceGroupName,
                                                                               String dnsForwardingRulesetName,
                                                                               String forwardingRuleName,
                                                                               com.azure.core.util.Context context)
        Gets properties of a forwarding rule in a DNS forwarding ruleset.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        forwardingRuleName - The name of the forwarding rule.
        context - The context to associate with this operation.
        Returns:
        properties of a forwarding rule in a DNS forwarding ruleset along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<ForwardingRuleInner> list​(String resourceGroupName,
                                                                         String dnsForwardingRulesetName)
        Lists forwarding rules in a DNS forwarding ruleset.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        Returns:
        the response to an enumeration operation on forwarding rules within a DNS forwarding ruleset as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<ForwardingRuleInner> list​(String resourceGroupName,
                                                                         String dnsForwardingRulesetName,
                                                                         Integer top,
                                                                         com.azure.core.util.Context context)
        Lists forwarding rules in a DNS forwarding ruleset.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        dnsForwardingRulesetName - The name of the DNS forwarding ruleset.
        top - The maximum number of results to return. If not specified, returns up to 100 results.
        context - The context to associate with this operation.
        Returns:
        the response to an enumeration operation on forwarding rules within a DNS forwarding ruleset as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.