com.azure.resourcemanager.hybridcompute.models.OSProfile 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.fasterxml.jackson.annotation.JsonProperty;
/**
* Specifies the operating system settings for the hybrid machine.
*/
@Fluent
public final class OSProfile {
/*
* Specifies the host OS name of the hybrid machine.
*/
@JsonProperty(value = "computerName", access = JsonProperty.Access.WRITE_ONLY)
private String computerName;
/*
* Specifies the windows configuration for update management.
*/
@JsonProperty(value = "windowsConfiguration")
private OSProfileWindowsConfiguration windowsConfiguration;
/*
* Specifies the linux configuration for update management.
*/
@JsonProperty(value = "linuxConfiguration")
private OSProfileLinuxConfiguration linuxConfiguration;
/**
* Creates an instance of OSProfile class.
*/
public OSProfile() {
}
/**
* Get the computerName property: Specifies the host OS name of the hybrid machine.
*
* @return the computerName value.
*/
public String computerName() {
return this.computerName;
}
/**
* Get the windowsConfiguration property: Specifies the windows configuration for update management.
*
* @return the windowsConfiguration value.
*/
public OSProfileWindowsConfiguration windowsConfiguration() {
return this.windowsConfiguration;
}
/**
* Set the windowsConfiguration property: Specifies the windows configuration for update management.
*
* @param windowsConfiguration the windowsConfiguration value to set.
* @return the OSProfile object itself.
*/
public OSProfile withWindowsConfiguration(OSProfileWindowsConfiguration windowsConfiguration) {
this.windowsConfiguration = windowsConfiguration;
return this;
}
/**
* Get the linuxConfiguration property: Specifies the linux configuration for update management.
*
* @return the linuxConfiguration value.
*/
public OSProfileLinuxConfiguration linuxConfiguration() {
return this.linuxConfiguration;
}
/**
* Set the linuxConfiguration property: Specifies the linux configuration for update management.
*
* @param linuxConfiguration the linuxConfiguration value to set.
* @return the OSProfile object itself.
*/
public OSProfile withLinuxConfiguration(OSProfileLinuxConfiguration linuxConfiguration) {
this.linuxConfiguration = linuxConfiguration;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (windowsConfiguration() != null) {
windowsConfiguration().validate();
}
if (linuxConfiguration() != null) {
linuxConfiguration().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy