// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.security.models.SeverityEnum;
import com.azure.resourcemanager.security.models.SupportedCloudEnum;
import com.fasterxml.jackson.annotation.JsonProperty;

/** describes the Custom Assessment Automation properties. */
@Fluent
public final class CustomAssessmentAutomationProperties {
    /*
     * GZip encoded KQL query representing the assessment automation results required.
     */
    @JsonProperty(value = "compressedQuery")
    private String compressedQuery;

    /*
     * Relevant cloud for the custom assessment automation.
     */
    @JsonProperty(value = "supportedCloud")
    private SupportedCloudEnum supportedCloud = SupportedCloudEnum.AWS;

    /*
     * The severity to relate to the assessments generated by this assessment automation.
     */
    @JsonProperty(value = "severity")
    private SeverityEnum severity = SeverityEnum.LOW;

    /*
     * The display name of the assessments generated by this assessment automation.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /*
     * The description to relate to the assessments generated by this assessment automation.
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * The remediation description to relate to the assessments generated by this assessment automation.
     */
    @JsonProperty(value = "remediationDescription")
    private String remediationDescription;

    /*
     * The assessment metadata key used when an assessment is generated for this assessment automation.
     */
    @JsonProperty(value = "assessmentKey")
    private String assessmentKey;

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

    /**
     * Get the compressedQuery property: GZip encoded KQL query representing the assessment automation results required.
     *
     * @return the compressedQuery value.
     */
    public String compressedQuery() {
        return this.compressedQuery;
    }

    /**
     * Set the compressedQuery property: GZip encoded KQL query representing the assessment automation results required.
     *
     * @param compressedQuery the compressedQuery value to set.
     * @return the CustomAssessmentAutomationProperties object itself.
     */
    public CustomAssessmentAutomationProperties withCompressedQuery(String compressedQuery) {
        this.compressedQuery = compressedQuery;
        return this;
    }

    /**
     * Get the supportedCloud property: Relevant cloud for the custom assessment automation.
     *
     * @return the supportedCloud value.
     */
    public SupportedCloudEnum supportedCloud() {
        return this.supportedCloud;
    }

    /**
     * Set the supportedCloud property: Relevant cloud for the custom assessment automation.
     *
     * @param supportedCloud the supportedCloud value to set.
     * @return the CustomAssessmentAutomationProperties object itself.
     */
    public CustomAssessmentAutomationProperties withSupportedCloud(SupportedCloudEnum supportedCloud) {
        this.supportedCloud = supportedCloud;
        return this;
    }

    /**
     * Get the severity property: The severity to relate to the assessments generated by this assessment automation.
     *
     * @return the severity value.
     */
    public SeverityEnum severity() {
        return this.severity;
    }

    /**
     * Set the severity property: The severity to relate to the assessments generated by this assessment automation.
     *
     * @param severity the severity value to set.
     * @return the CustomAssessmentAutomationProperties object itself.
     */
    public CustomAssessmentAutomationProperties withSeverity(SeverityEnum severity) {
        this.severity = severity;
        return this;
    }

    /**
     * Get the displayName property: The display name of the assessments generated by this assessment automation.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: The display name of the assessments generated by this assessment automation.
     *
     * @param displayName the displayName value to set.
     * @return the CustomAssessmentAutomationProperties object itself.
     */
    public CustomAssessmentAutomationProperties withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /**
     * Get the description property: The description to relate to the assessments generated by this assessment
     * automation.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: The description to relate to the assessments generated by this assessment
     * automation.
     *
     * @param description the description value to set.
     * @return the CustomAssessmentAutomationProperties object itself.
     */
    public CustomAssessmentAutomationProperties withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the remediationDescription property: The remediation description to relate to the assessments generated by
     * this assessment automation.
     *
     * @return the remediationDescription value.
     */
    public String remediationDescription() {
        return this.remediationDescription;
    }

    /**
     * Set the remediationDescription property: The remediation description to relate to the assessments generated by
     * this assessment automation.
     *
     * @param remediationDescription the remediationDescription value to set.
     * @return the CustomAssessmentAutomationProperties object itself.
     */
    public CustomAssessmentAutomationProperties withRemediationDescription(String remediationDescription) {
        this.remediationDescription = remediationDescription;
        return this;
    }

    /**
     * Get the assessmentKey property: The assessment metadata key used when an assessment is generated for this
     * assessment automation.
     *
     * @return the assessmentKey value.
     */
    public String assessmentKey() {
        return this.assessmentKey;
    }

    /**
     * Set the assessmentKey property: The assessment metadata key used when an assessment is generated for this
     * assessment automation.
     *
     * @param assessmentKey the assessmentKey value to set.
     * @return the CustomAssessmentAutomationProperties object itself.
     */
    public CustomAssessmentAutomationProperties withAssessmentKey(String assessmentKey) {
        this.assessmentKey = assessmentKey;
        return this;
    }

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