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

/** Base class for feature object. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "objectType")
@JsonTypeName("FeatureValidationRequest")
@Fluent
public final class FeatureValidationRequest extends FeatureValidationRequestBase {
    /*
     * backup support feature type.
     */
    @JsonProperty(value = "featureType")
    private FeatureType featureType;

    /*
     * backup support feature name.
     */
    @JsonProperty(value = "featureName")
    private String featureName;

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

    /**
     * Get the featureType property: backup support feature type.
     *
     * @return the featureType value.
     */
    public FeatureType featureType() {
        return this.featureType;
    }

    /**
     * Set the featureType property: backup support feature type.
     *
     * @param featureType the featureType value to set.
     * @return the FeatureValidationRequest object itself.
     */
    public FeatureValidationRequest withFeatureType(FeatureType featureType) {
        this.featureType = featureType;
        return this;
    }

    /**
     * Get the featureName property: backup support feature name.
     *
     * @return the featureName value.
     */
    public String featureName() {
        return this.featureName;
    }

    /**
     * Set the featureName property: backup support feature name.
     *
     * @param featureName the featureName value to set.
     * @return the FeatureValidationRequest object itself.
     */
    public FeatureValidationRequest withFeatureName(String featureName) {
        this.featureName = featureName;
        return this;
    }

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