// 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 armhardwaresecuritymodules

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 {
	subscriptionID string
	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.
//   - subscriptionID - The ID of the target subscription. The value must be an UUID.
//   - credential - used to authorize requests. Usually a credential from azidentity.
//   - options - pass nil to accept the default values.
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) {
	internal, err := arm.NewClient(moduleName, moduleVersion, credential, options)
	if err != nil {
		return nil, err
	}
	return &ClientFactory{
		subscriptionID: subscriptionID,
		internal:       internal,
	}, nil
}

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

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

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

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

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

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

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

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

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

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

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