com.azure.resourcemanager.hybridcompute.models.OSProfileLinuxConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-hybridcompute Show documentation
Show all versions of azure-resourcemanager-hybridcompute Show documentation
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.
// 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