// 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.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Details of the resource that was assessed. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "assessedResourceType")
@JsonTypeName("SqlServerVulnerability")
@Immutable
public final class SqlServerVulnerabilityProperties extends AdditionalData {
    /*
     * The resource type the sub assessment refers to in its resource details
     */
    @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
    private String type;

    /*
     * The T-SQL query that runs on your SQL database to perform the particular check
     */
    @JsonProperty(value = "query", access = JsonProperty.Access.WRITE_ONLY)
    private String query;

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

    /**
     * Get the type property: The resource type the sub assessment refers to in its resource details.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Get the query property: The T-SQL query that runs on your SQL database to perform the particular check.
     *
     * @return the query value.
     */
    public String query() {
        return this.query;
    }

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