// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT.

package armbillingbenefits

import (
	"github.com/Azure/azure-sdk-for-go/sdk/azcore"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
)

// ClientFactory is a client factory used to create any client in this module.
// Don't use this type directly, use NewClientFactory instead.
type ClientFactory struct {
	internal *arm.Client
}

// NewClientFactory creates a new instance of ClientFactory with the specified values.
// The parameter values will be propagated to any client created from this factory.
//   - credential - used to authorize requests. Usually a credential from azidentity.
//   - options - pass nil to accept the default values.
func NewClientFactory(credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) {
	internal, err := arm.NewClient(moduleName, moduleVersion, credential, options)
	if err != nil {
		return nil, err
	}
	return &ClientFactory{
		internal: internal,
	}, nil
}

// NewApplicableMaccsClient creates a new instance of ApplicableMaccsClient.
func (c *ClientFactory) NewApplicableMaccsClient() *ApplicableMaccsClient {
	return &ApplicableMaccsClient{
		internal: c.internal,
	}
}

// NewConditionalCreditContributorsClient creates a new instance of ConditionalCreditContributorsClient.
func (c *ClientFactory) NewConditionalCreditContributorsClient(subscriptionID string) *ConditionalCreditContributorsClient {
	return &ConditionalCreditContributorsClient{
		subscriptionID: subscriptionID,
		internal:       c.internal,
	}
}

// NewConditionalCreditsClient creates a new instance of ConditionalCreditsClient.
func (c *ClientFactory) NewConditionalCreditsClient(subscriptionID string) *ConditionalCreditsClient {
	return &ConditionalCreditsClient{
		subscriptionID: subscriptionID,
		internal:       c.internal,
	}
}

// NewContributorsClient creates a new instance of ContributorsClient.
func (c *ClientFactory) NewContributorsClient(subscriptionID string) *ContributorsClient {
	return &ContributorsClient{
		subscriptionID: subscriptionID,
		internal:       c.internal,
	}
}

// NewCreditsClient creates a new instance of CreditsClient.
func (c *ClientFactory) NewCreditsClient(subscriptionID string) *CreditsClient {
	return &CreditsClient{
		subscriptionID: subscriptionID,
		internal:       c.internal,
	}
}

// NewDiscountClient creates a new instance of DiscountClient.
func (c *ClientFactory) NewDiscountClient(subscriptionID string) *DiscountClient {
	return &DiscountClient{
		subscriptionID: subscriptionID,
		internal:       c.internal,
	}
}

// NewDiscountsClient creates a new instance of DiscountsClient.
func (c *ClientFactory) NewDiscountsClient(subscriptionID string) *DiscountsClient {
	return &DiscountsClient{
		subscriptionID: subscriptionID,
		internal:       c.internal,
	}
}

// NewFreeServicesClient creates a new instance of FreeServicesClient.
func (c *ClientFactory) NewFreeServicesClient(subscriptionID string) *FreeServicesClient {
	return &FreeServicesClient{
		subscriptionID: subscriptionID,
		internal:       c.internal,
	}
}

// NewMaccsClient creates a new instance of MaccsClient.
func (c *ClientFactory) NewMaccsClient(subscriptionID string) *MaccsClient {
	return &MaccsClient{
		subscriptionID: subscriptionID,
		internal:       c.internal,
	}
}

// NewOperationsClient creates a new instance of OperationsClient.
func (c *ClientFactory) NewOperationsClient() *OperationsClient {
	return &OperationsClient{
		internal: c.internal,
	}
}

// NewRPClient creates a new instance of RPClient.
func (c *ClientFactory) NewRPClient() *RPClient {
	return &RPClient{
		internal: c.internal,
	}
}

// NewReservationOrderAliasClient creates a new instance of ReservationOrderAliasClient.
func (c *ClientFactory) NewReservationOrderAliasClient() *ReservationOrderAliasClient {
	return &ReservationOrderAliasClient{
		internal: c.internal,
	}
}

// NewSavingsPlanClient creates a new instance of SavingsPlanClient.
func (c *ClientFactory) NewSavingsPlanClient() *SavingsPlanClient {
	return &SavingsPlanClient{
		internal: c.internal,
	}
}

// NewSavingsPlanOrderAliasClient creates a new instance of SavingsPlanOrderAliasClient.
func (c *ClientFactory) NewSavingsPlanOrderAliasClient() *SavingsPlanOrderAliasClient {
	return &SavingsPlanOrderAliasClient{
		internal: c.internal,
	}
}

// NewSavingsPlanOrderClient creates a new instance of SavingsPlanOrderClient.
func (c *ClientFactory) NewSavingsPlanOrderClient() *SavingsPlanOrderClient {
	return &SavingsPlanOrderClient{
		internal: c.internal,
	}
}

// NewSellerResourceClient creates a new instance of SellerResourceClient.
func (c *ClientFactory) NewSellerResourceClient() *SellerResourceClient {
	return &SellerResourceClient{
		internal: c.internal,
	}
}

// NewSourcesClient creates a new instance of SourcesClient.
func (c *ClientFactory) NewSourcesClient(subscriptionID string) *SourcesClient {
	return &SourcesClient{
		subscriptionID: subscriptionID,
		internal:       c.internal,
	}
}
