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

package azure.clientgenerator.core.clientinitialization.parentclient;

import azure.clientgenerator.core.clientinitialization.implementation.ParentClientImpl;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ServiceClient;

/**
 * Initializes a new instance of the asynchronous ParentClient type.
 */
@ServiceClient(builder = ParentClientBuilder.class, isAsync = true)
public final class ParentAsyncClient {
    @Generated
    private final ParentClientImpl serviceClient;

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

    /**
     * Gets an instance of ChildAsyncClient class.
     * 
     * @param blobName The blobName parameter.
     * @return an instance of ChildAsyncClient class.
     */
    public ChildAsyncClient getChildAsyncClient(String blobName) {
        return new ChildAsyncClient(serviceClient.getChildClient(blobName));
    }
}
