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

package com.azure.resourcemanager.dataprotection.models;

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

/** Sync BackupInstance Request. */
@Fluent
public final class SyncBackupInstanceRequest {
    /*
     * Field indicating sync type e.g. to sync only in case of failure or in all cases
     */
    @JsonProperty(value = "syncType")
    private SyncType syncType;

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

    /**
     * Get the syncType property: Field indicating sync type e.g. to sync only in case of failure or in all cases.
     *
     * @return the syncType value.
     */
    public SyncType syncType() {
        return this.syncType;
    }

    /**
     * Set the syncType property: Field indicating sync type e.g. to sync only in case of failure or in all cases.
     *
     * @param syncType the syncType value to set.
     * @return the SyncBackupInstanceRequest object itself.
     */
    public SyncBackupInstanceRequest withSyncType(SyncType syncType) {
        this.syncType = syncType;
        return this;
    }

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