// 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 persistent volume target info for restore operation. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "objectType")
@JsonTypeName("KubernetesPVRestoreCriteria")
@Fluent
public final class KubernetesPVRestoreCriteria extends ItemLevelRestoreCriteria {
    /*
     * Selected persistent volume claim name
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Selected storage class name for restore operation
     */
    @JsonProperty(value = "storageClassName")
    private String storageClassName;

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

    /**
     * Get the name property: Selected persistent volume claim name.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Selected persistent volume claim name.
     *
     * @param name the name value to set.
     * @return the KubernetesPVRestoreCriteria object itself.
     */
    public KubernetesPVRestoreCriteria withName(String name) {
        this.name = name;
        return this;
    }

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

    /**
     * Set the storageClassName property: Selected storage class name for restore operation.
     *
     * @param storageClassName the storageClassName value to set.
     * @return the KubernetesPVRestoreCriteria object itself.
     */
    public KubernetesPVRestoreCriteria withStorageClassName(String storageClassName) {
        this.storageClassName = storageClassName;
        return this;
    }

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