All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.hybridcompute.models.OSProfileLinuxConfiguration Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2024-07.

There is a newer version: 1.1.0-beta.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hybridcompute.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.hybridcompute.fluent.models.PatchSettings;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Specifies the linux configuration for update management.
 */
@Fluent
public final class OSProfileLinuxConfiguration {
    /*
     * Specifies the patch settings.
     */
    @JsonProperty(value = "patchSettings")
    private PatchSettings innerPatchSettings;

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

    /**
     * Get the innerPatchSettings property: Specifies the patch settings.
     * 
     * @return the innerPatchSettings value.
     */
    private PatchSettings innerPatchSettings() {
        return this.innerPatchSettings;
    }

    /**
     * Get the assessmentMode property: Specifies the assessment mode.
     * 
     * @return the assessmentMode value.
     */
    public AssessmentModeTypes assessmentMode() {
        return this.innerPatchSettings() == null ? null : this.innerPatchSettings().assessmentMode();
    }

    /**
     * Set the assessmentMode property: Specifies the assessment mode.
     * 
     * @param assessmentMode the assessmentMode value to set.
     * @return the OSProfileLinuxConfiguration object itself.
     */
    public OSProfileLinuxConfiguration withAssessmentMode(AssessmentModeTypes assessmentMode) {
        if (this.innerPatchSettings() == null) {
            this.innerPatchSettings = new PatchSettings();
        }
        this.innerPatchSettings().withAssessmentMode(assessmentMode);
        return this;
    }

    /**
     * Get the patchMode property: Specifies the patch mode.
     * 
     * @return the patchMode value.
     */
    public PatchModeTypes patchMode() {
        return this.innerPatchSettings() == null ? null : this.innerPatchSettings().patchMode();
    }

    /**
     * Set the patchMode property: Specifies the patch mode.
     * 
     * @param patchMode the patchMode value to set.
     * @return the OSProfileLinuxConfiguration object itself.
     */
    public OSProfileLinuxConfiguration withPatchMode(PatchModeTypes patchMode) {
        if (this.innerPatchSettings() == null) {
            this.innerPatchSettings = new PatchSettings();
        }
        this.innerPatchSettings().withPatchMode(patchMode);
        return this;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy