// 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;

/**
 * StorageSetting
 *
 * <p>Storage setting.
 */
@Fluent
public final class StorageSetting {
    /*
     * Gets or sets the type of the datastore.
     */
    @JsonProperty(value = "datastoreType")
    private StorageSettingStoreTypes datastoreType;

    /*
     * Gets or sets the type.
     */
    @JsonProperty(value = "type")
    private StorageSettingTypes type;

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

    /**
     * Get the datastoreType property: Gets or sets the type of the datastore.
     *
     * @return the datastoreType value.
     */
    public StorageSettingStoreTypes datastoreType() {
        return this.datastoreType;
    }

    /**
     * Set the datastoreType property: Gets or sets the type of the datastore.
     *
     * @param datastoreType the datastoreType value to set.
     * @return the StorageSetting object itself.
     */
    public StorageSetting withDatastoreType(StorageSettingStoreTypes datastoreType) {
        this.datastoreType = datastoreType;
        return this;
    }

    /**
     * Get the type property: Gets or sets the type.
     *
     * @return the type value.
     */
    public StorageSettingTypes type() {
        return this.type;
    }

    /**
     * Set the type property: Gets or sets the type.
     *
     * @param type the type value to set.
     * @return the StorageSetting object itself.
     */
    public StorageSetting withType(StorageSettingTypes type) {
        this.type = type;
        return this;
    }

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