// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hdinsight.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The Linux operation systems profile. */
@Fluent
public final class OsProfile {
    /*
     * The Linux OS profile.
     */
    @JsonProperty(value = "linuxOperatingSystemProfile")
    private LinuxOperatingSystemProfile linuxOperatingSystemProfile;

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

    /**
     * Get the linuxOperatingSystemProfile property: The Linux OS profile.
     *
     * @return the linuxOperatingSystemProfile value.
     */
    public LinuxOperatingSystemProfile linuxOperatingSystemProfile() {
        return this.linuxOperatingSystemProfile;
    }

    /**
     * Set the linuxOperatingSystemProfile property: The Linux OS profile.
     *
     * @param linuxOperatingSystemProfile the linuxOperatingSystemProfile value to set.
     * @return the OsProfile object itself.
     */
    public OsProfile withLinuxOperatingSystemProfile(LinuxOperatingSystemProfile linuxOperatingSystemProfile) {
        this.linuxOperatingSystemProfile = linuxOperatingSystemProfile;
        return this;
    }

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