/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.compute; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; /** * Describes an OS profile. */ public class OSProfile { /** * Specifies the host OS name of the virtual machine. */ @JsonProperty(value = "computerName") private String computerName; /** * Specifies the name of the administrator account. */ @JsonProperty(value = "adminUsername") private String adminUsername; /** * Specifies the password of the administrator account. */ @JsonProperty(value = "adminPassword") private String adminPassword; /** * Specifies a base-64 encoded string of custom data. The base-64 encoded * string is decoded to a binary array that is saved as a file on the * Virtual Machine. The maximum length of the binary array is 65535 bytes. */ @JsonProperty(value = "customData") private String customData; /** * The Windows configuration of the OS profile. */ @JsonProperty(value = "windowsConfiguration") private WindowsConfiguration windowsConfiguration; /** * The Linux configuration of the OS profile. */ @JsonProperty(value = "linuxConfiguration") private LinuxConfiguration linuxConfiguration; /** * The list of certificates for addition to the VM. */ @JsonProperty(value = "secrets") private List<VaultSecretGroup> secrets; /** * Get the computerName value. * * @return the computerName value */ public String computerName() { return this.computerName; } /** * Set the computerName value. * * @param computerName the computerName value to set * @return the OSProfile object itself. */ public OSProfile withComputerName(String computerName) { this.computerName = computerName; return this; } /** * Get the adminUsername value. * * @return the adminUsername value */ public String adminUsername() { return this.adminUsername; } /** * Set the adminUsername value. * * @param adminUsername the adminUsername value to set * @return the OSProfile object itself. */ public OSProfile withAdminUsername(String adminUsername) { this.adminUsername = adminUsername; return this; } /** * Get the adminPassword value. * * @return the adminPassword value */ public String adminPassword() { return this.adminPassword; } /** * Set the adminPassword value. * * @param adminPassword the adminPassword value to set * @return the OSProfile object itself. */ public OSProfile withAdminPassword(String adminPassword) { this.adminPassword = adminPassword; return this; } /** * Get the customData value. * * @return the customData value */ public String customData() { return this.customData; } /** * Set the customData value. * * @param customData the customData value to set * @return the OSProfile object itself. */ public OSProfile withCustomData(String customData) { this.customData = customData; return this; } /** * Get the windowsConfiguration value. * * @return the windowsConfiguration value */ public WindowsConfiguration windowsConfiguration() { return this.windowsConfiguration; } /** * Set the windowsConfiguration value. * * @param windowsConfiguration the windowsConfiguration value to set * @return the OSProfile object itself. */ public OSProfile withWindowsConfiguration(WindowsConfiguration windowsConfiguration) { this.windowsConfiguration = windowsConfiguration; return this; } /** * Get the linuxConfiguration value. * * @return the linuxConfiguration value */ public LinuxConfiguration linuxConfiguration() { return this.linuxConfiguration; } /** * Set the linuxConfiguration value. * * @param linuxConfiguration the linuxConfiguration value to set * @return the OSProfile object itself. */ public OSProfile withLinuxConfiguration(LinuxConfiguration linuxConfiguration) { this.linuxConfiguration = linuxConfiguration; return this; } /** * Get the secrets value. * * @return the secrets value */ public List<VaultSecretGroup> secrets() { return this.secrets; } /** * Set the secrets value. * * @param secrets the secrets value to set * @return the OSProfile object itself. */ public OSProfile withSecrets(List<VaultSecretGroup> secrets) { this.secrets = secrets; return this; } }