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

package com.azure.resourcemanager.securityinsights.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.securityinsights.fluent.models.IoTCheckRequirementsProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Represents IoT requirements check request. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("IOT")
@Fluent
public final class IoTCheckRequirements extends DataConnectorsCheckRequirements {
    /*
     * IoT requirements check properties.
     */
    @JsonProperty(value = "properties")
    private IoTCheckRequirementsProperties innerProperties;

    /**
     * Get the innerProperties property: IoT requirements check properties.
     *
     * @return the innerProperties value.
     */
    private IoTCheckRequirementsProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the subscriptionId property: The subscription id to connect to, and get the data from.
     *
     * @return the subscriptionId value.
     */
    public String subscriptionId() {
        return this.innerProperties() == null ? null : this.innerProperties().subscriptionId();
    }

    /**
     * Set the subscriptionId property: The subscription id to connect to, and get the data from.
     *
     * @param subscriptionId the subscriptionId value to set.
     * @return the IoTCheckRequirements object itself.
     */
    public IoTCheckRequirements withSubscriptionId(String subscriptionId) {
        if (this.innerProperties() == null) {
            this.innerProperties = new IoTCheckRequirementsProperties();
        }
        this.innerProperties().withSubscriptionId(subscriptionId);
        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();
        }
    }
}
