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

package azure.clientgenerator.core.methodoverride.implementation;

import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.util.serializer.JacksonAdapter;
import com.azure.core.util.serializer.SerializerAdapter;

/**
 * Initializes a new instance of the OverrideClient type.
 */
public final class OverrideClientImpl {
    /**
     * Service host.
     */
    private final String endpoint;

    /**
     * Gets Service host.
     * 
     * @return the endpoint value.
     */
    public String getEndpoint() {
        return this.endpoint;
    }

    /**
     * The HTTP pipeline to send requests through.
     */
    private final HttpPipeline httpPipeline;

    /**
     * Gets The HTTP pipeline to send requests through.
     * 
     * @return the httpPipeline value.
     */
    public HttpPipeline getHttpPipeline() {
        return this.httpPipeline;
    }

    /**
     * The serializer to serialize an object into a string.
     */
    private final SerializerAdapter serializerAdapter;

    /**
     * Gets The serializer to serialize an object into a string.
     * 
     * @return the serializerAdapter value.
     */
    public SerializerAdapter getSerializerAdapter() {
        return this.serializerAdapter;
    }

    /**
     * The ReorderParametersImpl object to access its operations.
     */
    private final ReorderParametersImpl reorderParameters;

    /**
     * Gets the ReorderParametersImpl object to access its operations.
     * 
     * @return the ReorderParametersImpl object.
     */
    public ReorderParametersImpl getReorderParameters() {
        return this.reorderParameters;
    }

    /**
     * The GroupParametersImpl object to access its operations.
     */
    private final GroupParametersImpl groupParameters;

    /**
     * Gets the GroupParametersImpl object to access its operations.
     * 
     * @return the GroupParametersImpl object.
     */
    public GroupParametersImpl getGroupParameters() {
        return this.groupParameters;
    }

    /**
     * The RequireOptionalParametersImpl object to access its operations.
     */
    private final RequireOptionalParametersImpl requireOptionalParameters;

    /**
     * Gets the RequireOptionalParametersImpl object to access its operations.
     * 
     * @return the RequireOptionalParametersImpl object.
     */
    public RequireOptionalParametersImpl getRequireOptionalParameters() {
        return this.requireOptionalParameters;
    }

    /**
     * The RemoveOptionalParametersImpl object to access its operations.
     */
    private final RemoveOptionalParametersImpl removeOptionalParameters;

    /**
     * Gets the RemoveOptionalParametersImpl object to access its operations.
     * 
     * @return the RemoveOptionalParametersImpl object.
     */
    public RemoveOptionalParametersImpl getRemoveOptionalParameters() {
        return this.removeOptionalParameters;
    }

    /**
     * Initializes an instance of OverrideClient client.
     * 
     * @param endpoint Service host.
     */
    public OverrideClientImpl(String endpoint) {
        this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(),
            JacksonAdapter.createDefaultSerializerAdapter(), endpoint);
    }

    /**
     * Initializes an instance of OverrideClient client.
     * 
     * @param httpPipeline The HTTP pipeline to send requests through.
     * @param endpoint Service host.
     */
    public OverrideClientImpl(HttpPipeline httpPipeline, String endpoint) {
        this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint);
    }

    /**
     * Initializes an instance of OverrideClient client.
     * 
     * @param httpPipeline The HTTP pipeline to send requests through.
     * @param serializerAdapter The serializer to serialize an object into a string.
     * @param endpoint Service host.
     */
    public OverrideClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint) {
        this.httpPipeline = httpPipeline;
        this.serializerAdapter = serializerAdapter;
        this.endpoint = endpoint;
        this.reorderParameters = new ReorderParametersImpl(this);
        this.groupParameters = new GroupParametersImpl(this);
        this.requireOptionalParameters = new RequireOptionalParametersImpl(this);
        this.removeOptionalParameters = new RemoveOptionalParametersImpl(this);
    }
}
