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

package com.azure.resourcemanager.resourcehealth.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The metadata supported value detail. */
@Fluent
public final class MetadataSupportedValueDetail {
    /*
     * The id.
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * The display name.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /*
     * The list of associated resource types.
     */
    @JsonProperty(value = "resourceTypes")
    private List<String> resourceTypes;

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

    /**
     * Get the id property: The id.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: The id.
     *
     * @param id the id value to set.
     * @return the MetadataSupportedValueDetail object itself.
     */
    public MetadataSupportedValueDetail withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the displayName property: The display name.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: The display name.
     *
     * @param displayName the displayName value to set.
     * @return the MetadataSupportedValueDetail object itself.
     */
    public MetadataSupportedValueDetail withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /**
     * Get the resourceTypes property: The list of associated resource types.
     *
     * @return the resourceTypes value.
     */
    public List<String> resourceTypes() {
        return this.resourceTypes;
    }

    /**
     * Set the resourceTypes property: The list of associated resource types.
     *
     * @param resourceTypes the resourceTypes value to set.
     * @return the MetadataSupportedValueDetail object itself.
     */
    public MetadataSupportedValueDetail withResourceTypes(List<String> resourceTypes) {
        this.resourceTypes = resourceTypes;
        return this;
    }

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