// 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;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Item Level kubernetes storage class target info for restore operation. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "objectType")
@JsonTypeName("KubernetesStorageClassRestoreCriteria")
@Fluent
public final class KubernetesStorageClassRestoreCriteria extends ItemLevelRestoreCriteria {
    /*
     * Selected storage class name
     */
    @JsonProperty(value = "selectedStorageClassName")
    private String selectedStorageClassName;

    /*
     * Provisioner of the storage class
     */
    @JsonProperty(value = "provisioner")
    private String provisioner;

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

    /**
     * Get the selectedStorageClassName property: Selected storage class name.
     *
     * @return the selectedStorageClassName value.
     */
    public String selectedStorageClassName() {
        return this.selectedStorageClassName;
    }

    /**
     * Set the selectedStorageClassName property: Selected storage class name.
     *
     * @param selectedStorageClassName the selectedStorageClassName value to set.
     * @return the KubernetesStorageClassRestoreCriteria object itself.
     */
    public KubernetesStorageClassRestoreCriteria withSelectedStorageClassName(String selectedStorageClassName) {
        this.selectedStorageClassName = selectedStorageClassName;
        return this;
    }

    /**
     * Get the provisioner property: Provisioner of the storage class.
     *
     * @return the provisioner value.
     */
    public String provisioner() {
        return this.provisioner;
    }

    /**
     * Set the provisioner property: Provisioner of the storage class.
     *
     * @param provisioner the provisioner value to set.
     * @return the KubernetesStorageClassRestoreCriteria object itself.
     */
    public KubernetesStorageClassRestoreCriteria withProvisioner(String provisioner) {
        this.provisioner = provisioner;
        return this;
    }

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