public virtual Pageable <ApplicationGatewaySslPredefinedPolicy> GetAll(CancellationToken cancellationToken = default)
        {
            Page <ApplicationGatewaySslPredefinedPolicy> FirstPageFunc(int?pageSizeHint)
            {
                using var scope = _applicationGatewaySslPredefinedPolicyApplicationGatewaysClientDiagnostics.CreateScope("ApplicationGatewaySslPredefinedPolicyCollection.GetAll");
                scope.Start();
                try
                {
                    var response = _applicationGatewaySslPredefinedPolicyApplicationGatewaysRestClient.ListAvailableSslPredefinedPolicies(Id.SubscriptionId, cancellationToken: cancellationToken);
                    return(Page.FromValues(response.Value.Value.Select(value => new ApplicationGatewaySslPredefinedPolicy(Client, value)), response.Value.NextLink, response.GetRawResponse()));
                }
                catch (Exception e)
                {
                    scope.Failed(e);
                    throw;
                }
            }

            Page <ApplicationGatewaySslPredefinedPolicy> NextPageFunc(string nextLink, int?pageSizeHint)
            {
                using var scope = _applicationGatewaySslPredefinedPolicyApplicationGatewaysClientDiagnostics.CreateScope("ApplicationGatewaySslPredefinedPolicyCollection.GetAll");
                scope.Start();
                try
                {
                    var response = _applicationGatewaySslPredefinedPolicyApplicationGatewaysRestClient.ListAvailableSslPredefinedPoliciesNextPage(nextLink, Id.SubscriptionId, cancellationToken: cancellationToken);
                    return(Page.FromValues(response.Value.Value.Select(value => new ApplicationGatewaySslPredefinedPolicy(Client, value)), response.Value.NextLink, response.GetRawResponse()));
                }
                catch (Exception e)
                {
                    scope.Failed(e);
                    throw;
                }
            }

            return(PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc));
        }