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

package com.azure.resourcemanager.synapse.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Metadata Sync Config properties. */
@Fluent
public final class MetadataSyncConfigProperties {
    /*
     * Indicates whether the metadata sync is enabled or disabled
     */
    @JsonProperty(value = "enabled")
    private Boolean enabled;

    /*
     * The Sync Interval in minutes.
     */
    @JsonProperty(value = "syncIntervalInMinutes")
    private Integer syncIntervalInMinutes;

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

    /**
     * Get the enabled property: Indicates whether the metadata sync is enabled or disabled.
     *
     * @return the enabled value.
     */
    public Boolean enabled() {
        return this.enabled;
    }

    /**
     * Set the enabled property: Indicates whether the metadata sync is enabled or disabled.
     *
     * @param enabled the enabled value to set.
     * @return the MetadataSyncConfigProperties object itself.
     */
    public MetadataSyncConfigProperties withEnabled(Boolean enabled) {
        this.enabled = enabled;
        return this;
    }

    /**
     * Get the syncIntervalInMinutes property: The Sync Interval in minutes.
     *
     * @return the syncIntervalInMinutes value.
     */
    public Integer syncIntervalInMinutes() {
        return this.syncIntervalInMinutes;
    }

    /**
     * Set the syncIntervalInMinutes property: The Sync Interval in minutes.
     *
     * @param syncIntervalInMinutes the syncIntervalInMinutes value to set.
     * @return the MetadataSyncConfigProperties object itself.
     */
    public MetadataSyncConfigProperties withSyncIntervalInMinutes(Integer syncIntervalInMinutes) {
        this.syncIntervalInMinutes = syncIntervalInMinutes;
        return this;
    }

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