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

package com.azure.resourcemanager.edgeorder.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Represents common properties across product hierarchy. */
@Immutable
public class CommonProperties extends BasicInformation {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(CommonProperties.class);

    /*
     * list of filters supported for a product
     */
    @JsonProperty(value = "filterableProperties", access = JsonProperty.Access.WRITE_ONLY)
    private List<FilterableProperty> filterableProperties;

    /**
     * Get the filterableProperties property: list of filters supported for a product.
     *
     * @return the filterableProperties value.
     */
    public List<FilterableProperty> filterableProperties() {
        return this.filterableProperties;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
        if (filterableProperties() != null) {
            filterableProperties().forEach(e -> e.validate());
        }
    }
}
