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

package tsptest.clientinitialization;

import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ServiceClient;
import tsptest.clientinitialization.implementation.ClientInitializationClientImpl;

/**
 * Initializes a new instance of the synchronous ClientInitializationClient type.
 */
@ServiceClient(builder = ClientInitializationClientBuilder.class)
public final class ClientInitializationClient {
    @Generated
    private final ClientInitializationClientImpl serviceClient;

    /**
     * Initializes an instance of ClientInitializationClient class.
     * 
     * @param serviceClient the service client implementation.
     */
    @Generated
    ClientInitializationClient(ClientInitializationClientImpl serviceClient) {
        this.serviceClient = serviceClient;
    }

    /**
     * Gets an instance of SubClient class.
     * 
     * @param name The name parameter.
     * @return an instance of SubClient class.
     */
    public SubClient getSubClient(String name) {
        return new SubClient(serviceClient.getSubClient(name));
    }
}
