/**
* 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 a virtual machine scale set OS profile.
*/
public class VirtualMachineScaleSetOSProfile {
/**
* The computer name prefix.
*/
@JsonProperty(value = "computerNamePrefix")
private String computerNamePrefix;
/**
* The admin user name.
*/
@JsonProperty(value = "adminUsername")
private String adminUsername;
/**
* The admin user password.
*/
@JsonProperty(value = "adminPassword")
private String adminPassword;
/**
* A base-64 encoded string of custom data.
*/
@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 computerNamePrefix value.
*
* @return the computerNamePrefix value
*/
public String computerNamePrefix() {
return this.computerNamePrefix;
}
/**
* Set the computerNamePrefix value.
*
* @param computerNamePrefix the computerNamePrefix value to set
* @return the VirtualMachineScaleSetOSProfile object itself.
*/
public VirtualMachineScaleSetOSProfile withComputerNamePrefix(String computerNamePrefix) {
this.computerNamePrefix = computerNamePrefix;
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 VirtualMachineScaleSetOSProfile object itself.
*/
public VirtualMachineScaleSetOSProfile 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 VirtualMachineScaleSetOSProfile object itself.
*/
public VirtualMachineScaleSetOSProfile 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 VirtualMachineScaleSetOSProfile object itself.
*/
public VirtualMachineScaleSetOSProfile 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 VirtualMachineScaleSetOSProfile object itself.
*/
public VirtualMachineScaleSetOSProfile 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 VirtualMachineScaleSetOSProfile object itself.
*/
public VirtualMachineScaleSetOSProfile 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 VirtualMachineScaleSetOSProfile object itself.
*/
public VirtualMachineScaleSetOSProfile withSecrets(List<VaultSecretGroup> secrets) {
this.secrets = secrets;
return this;
}
}