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

package com.azure.resourcemanager.security.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.security.fluent.models.UpdateIoTSecuritySolutionProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/** The UpdateIotSecuritySolutionData model. */
@Fluent
public final class UpdateIotSecuritySolutionData extends TagsResource {
    /*
     * Security Solution data
     */
    @JsonProperty(value = "properties")
    private UpdateIoTSecuritySolutionProperties innerProperties;

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

    /**
     * Get the innerProperties property: Security Solution data.
     *
     * @return the innerProperties value.
     */
    private UpdateIoTSecuritySolutionProperties innerProperties() {
        return this.innerProperties;
    }

    /** {@inheritDoc} */
    @Override
    public UpdateIotSecuritySolutionData withTags(Map<String, String> tags) {
        super.withTags(tags);
        return this;
    }

    /**
     * Get the userDefinedResources property: Properties of the IoT Security solution's user defined resources.
     *
     * @return the userDefinedResources value.
     */
    public UserDefinedResourcesProperties userDefinedResources() {
        return this.innerProperties() == null ? null : this.innerProperties().userDefinedResources();
    }

    /**
     * Set the userDefinedResources property: Properties of the IoT Security solution's user defined resources.
     *
     * @param userDefinedResources the userDefinedResources value to set.
     * @return the UpdateIotSecuritySolutionData object itself.
     */
    public UpdateIotSecuritySolutionData withUserDefinedResources(UserDefinedResourcesProperties userDefinedResources) {
        if (this.innerProperties() == null) {
            this.innerProperties = new UpdateIoTSecuritySolutionProperties();
        }
        this.innerProperties().withUserDefinedResources(userDefinedResources);
        return this;
    }

    /**
     * Get the recommendationsConfiguration property: List of the configuration status for each recommendation type.
     *
     * @return the recommendationsConfiguration value.
     */
    public List<RecommendationConfigurationProperties> recommendationsConfiguration() {
        return this.innerProperties() == null ? null : this.innerProperties().recommendationsConfiguration();
    }

    /**
     * Set the recommendationsConfiguration property: List of the configuration status for each recommendation type.
     *
     * @param recommendationsConfiguration the recommendationsConfiguration value to set.
     * @return the UpdateIotSecuritySolutionData object itself.
     */
    public UpdateIotSecuritySolutionData withRecommendationsConfiguration(
        List<RecommendationConfigurationProperties> recommendationsConfiguration) {
        if (this.innerProperties() == null) {
            this.innerProperties = new UpdateIoTSecuritySolutionProperties();
        }
        this.innerProperties().withRecommendationsConfiguration(recommendationsConfiguration);
        return this;
    }

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