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

package azure.versioning.previewversion;

import com.azure.core.util.ServiceVersion;

/**
 * Service version of PreviewVersionClient.
 */
public enum PreviewVersionServiceVersion implements ServiceVersion {
    /**
     * Enum value 2024-01-01.
     */
    V2024_01_01("2024-01-01"),

    /**
     * Enum value 2024-06-01.
     */
    V2024_06_01("2024-06-01"),

    /**
     * Enum value 2024-12-01-preview.
     */
    V2024_12_01_PREVIEW("2024-12-01-preview");

    private final String version;

    PreviewVersionServiceVersion(String version) {
        this.version = version;
    }

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

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