// 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.fasterxml.jackson.annotation.JsonProperty;

/** The resource details of the health report. */
@Fluent
public final class ResourceDetailsAutoGenerated {
    /*
     * The status of the health report
     */
    @JsonProperty(value = "source")
    private Source source;

    /*
     * The azure id of the resource
     */
    @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
    private String id;

    /*
     * The id of the connector
     */
    @JsonProperty(value = "connectorId", access = JsonProperty.Access.WRITE_ONLY)
    private String connectorId;

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

    /**
     * Get the source property: The status of the health report.
     *
     * @return the source value.
     */
    public Source source() {
        return this.source;
    }

    /**
     * Set the source property: The status of the health report.
     *
     * @param source the source value to set.
     * @return the ResourceDetailsAutoGenerated object itself.
     */
    public ResourceDetailsAutoGenerated withSource(Source source) {
        this.source = source;
        return this;
    }

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

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

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