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

com.azure.messaging.servicebus.ServiceBusServiceVersion Maven / Gradle / Ivy

There is a newer version: 7.18.0-beta.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.messaging.servicebus;

import com.azure.core.util.ServiceVersion;

/**
 * The versions of Azure Service Bus supported by this client library.
 */
public enum ServiceBusServiceVersion implements ServiceVersion {
    V2017_04("2017-04");

    private final String version;

    /**
     * Creates a new instance with the specified version.
     * @param version The version of the service.
     */
    ServiceBusServiceVersion(String version) {
        this.version = version;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getVersion() {
        return version;
    }

    /**
     * Gets the latest service version supported by this client library
     *
     * @return the latest {@link ServiceBusServiceVersion}.
     */
    public static ServiceBusServiceVersion getLatest() {
        return V2017_04;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy