// 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 protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux.
 */
@Fluent
public final class ProtectionMode {
    /*
     * The application control policy enforcement/protection mode of the machine group
     */
    @JsonProperty(value = "exe")
    private EnforcementMode exe;

    /*
     * The application control policy enforcement/protection mode of the machine group
     */
    @JsonProperty(value = "msi")
    private EnforcementMode msi;

    /*
     * The application control policy enforcement/protection mode of the machine group
     */
    @JsonProperty(value = "script")
    private EnforcementMode script;

    /*
     * The application control policy enforcement/protection mode of the machine group
     */
    @JsonProperty(value = "executable")
    private EnforcementMode executable;

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

    /**
     * Get the exe property: The application control policy enforcement/protection mode of the machine group.
     *
     * @return the exe value.
     */
    public EnforcementMode exe() {
        return this.exe;
    }

    /**
     * Set the exe property: The application control policy enforcement/protection mode of the machine group.
     *
     * @param exe the exe value to set.
     * @return the ProtectionMode object itself.
     */
    public ProtectionMode withExe(EnforcementMode exe) {
        this.exe = exe;
        return this;
    }

    /**
     * Get the msi property: The application control policy enforcement/protection mode of the machine group.
     *
     * @return the msi value.
     */
    public EnforcementMode msi() {
        return this.msi;
    }

    /**
     * Set the msi property: The application control policy enforcement/protection mode of the machine group.
     *
     * @param msi the msi value to set.
     * @return the ProtectionMode object itself.
     */
    public ProtectionMode withMsi(EnforcementMode msi) {
        this.msi = msi;
        return this;
    }

    /**
     * Get the script property: The application control policy enforcement/protection mode of the machine group.
     *
     * @return the script value.
     */
    public EnforcementMode script() {
        return this.script;
    }

    /**
     * Set the script property: The application control policy enforcement/protection mode of the machine group.
     *
     * @param script the script value to set.
     * @return the ProtectionMode object itself.
     */
    public ProtectionMode withScript(EnforcementMode script) {
        this.script = script;
        return this;
    }

    /**
     * Get the executable property: The application control policy enforcement/protection mode of the machine group.
     *
     * @return the executable value.
     */
    public EnforcementMode executable() {
        return this.executable;
    }

    /**
     * Set the executable property: The application control policy enforcement/protection mode of the machine group.
     *
     * @param executable the executable value to set.
     * @return the ProtectionMode object itself.
     */
    public ProtectionMode withExecutable(EnforcementMode executable) {
        this.executable = executable;
        return this;
    }

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