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

package com.azure.resourcemanager.postgresqlflexibleserver.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Server version capabilities. */
@Immutable
public final class ServerVersionCapability extends CapabilityBase {
    /*
     * Server version
     */
    @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
    private String name;

    /*
     * Supported servers versions to upgrade
     */
    @JsonProperty(value = "supportedVersionsToUpgrade", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> supportedVersionsToUpgrade;

    /** Creates an instance of ServerVersionCapability class. */
    public ServerVersionCapability() {
    }

    /**
     * Get the name property: Server version.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Get the supportedVersionsToUpgrade property: Supported servers versions to upgrade.
     *
     * @return the supportedVersionsToUpgrade value.
     */
    public List<String> supportedVersionsToUpgrade() {
        return this.supportedVersionsToUpgrade;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
