// 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 type of the security control (For example, BuiltIn). */
@Fluent
public final class SecureScoreControlDefinitionSource {
    /*
     * The type of security control (for example, BuiltIn)
     */
    @JsonProperty(value = "sourceType")
    private ControlType sourceType;

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

    /**
     * Get the sourceType property: The type of security control (for example, BuiltIn).
     *
     * @return the sourceType value.
     */
    public ControlType sourceType() {
        return this.sourceType;
    }

    /**
     * Set the sourceType property: The type of security control (for example, BuiltIn).
     *
     * @param sourceType the sourceType value to set.
     * @return the SecureScoreControlDefinitionSource object itself.
     */
    public SecureScoreControlDefinitionSource withSourceType(ControlType sourceType) {
        this.sourceType = sourceType;
        return this;
    }

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