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

com.microsoft.azure.management.sql.AutomaticTuningOptions Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Sql Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.sql;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Automatic tuning properties for individual advisors.
 */
public class AutomaticTuningOptions {
    /**
     * Automatic tuning option desired state. Possible values include: 'Off',
     * 'On', 'Default'.
     */
    @JsonProperty(value = "desiredState")
    private AutomaticTuningOptionModeDesired desiredState;

    /**
     * Automatic tuning option actual state. Possible values include: 'Off',
     * 'On'.
     */
    @JsonProperty(value = "actualState", access = JsonProperty.Access.WRITE_ONLY)
    private AutomaticTuningOptionModeActual actualState;

    /**
     * Reason code if desired and actual state are different.
     */
    @JsonProperty(value = "reasonCode", access = JsonProperty.Access.WRITE_ONLY)
    private Integer reasonCode;

    /**
     * Reason description if desired and actual state are different. Possible
     * values include: 'Default', 'Disabled', 'AutoConfigured',
     * 'InheritedFromServer', 'QueryStoreOff', 'QueryStoreReadOnly',
     * 'NotSupported'.
     */
    @JsonProperty(value = "reasonDesc", access = JsonProperty.Access.WRITE_ONLY)
    private AutomaticTuningDisabledReason reasonDesc;

    /**
     * Get automatic tuning option desired state. Possible values include: 'Off', 'On', 'Default'.
     *
     * @return the desiredState value
     */
    public AutomaticTuningOptionModeDesired desiredState() {
        return this.desiredState;
    }

    /**
     * Set automatic tuning option desired state. Possible values include: 'Off', 'On', 'Default'.
     *
     * @param desiredState the desiredState value to set
     * @return the AutomaticTuningOptions object itself.
     */
    public AutomaticTuningOptions withDesiredState(AutomaticTuningOptionModeDesired desiredState) {
        this.desiredState = desiredState;
        return this;
    }

    /**
     * Get automatic tuning option actual state. Possible values include: 'Off', 'On'.
     *
     * @return the actualState value
     */
    public AutomaticTuningOptionModeActual actualState() {
        return this.actualState;
    }

    /**
     * Get reason code if desired and actual state are different.
     *
     * @return the reasonCode value
     */
    public Integer reasonCode() {
        return this.reasonCode;
    }

    /**
     * Get reason description if desired and actual state are different. Possible values include: 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported'.
     *
     * @return the reasonDesc value
     */
    public AutomaticTuningDisabledReason reasonDesc() {
        return this.reasonDesc;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy