All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.core.annotation.ServiceClientBuilder Maven / Gradle / Ivy

There is a newer version: 1.54.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.core.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Annotation given to all service client builder classes.
 */
@Retention(RUNTIME)
@Target(TYPE)
public @interface ServiceClientBuilder {

    /**
     * An array of classes that this builder can build.
     *
     * @return An array of all classnames that this builder can create an instance of.
     */
    Class[] serviceClients();

    /**
     * The {@link ServiceClientProtocol protocol} clients created from this builder will use to interact with the
     * service.
     *
     * @return The {@link ServiceClientProtocol}.
     */
    ServiceClientProtocol protocol() default ServiceClientProtocol.HTTP;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy