
com.pulumi.azurenative.azurestackhci.outputs.VirtualMachinePropertiesResponseOsProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.azurestackhci.outputs;
import com.pulumi.azurenative.azurestackhci.outputs.VirtualMachinePropertiesResponseLinuxConfiguration;
import com.pulumi.azurenative.azurestackhci.outputs.VirtualMachinePropertiesResponseWindowsConfiguration;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VirtualMachinePropertiesResponseOsProfile {
/**
* @return AdminUsername - admin username
*
*/
private @Nullable String adminUsername;
/**
* @return ComputerName - name of the compute
*
*/
private @Nullable String computerName;
/**
* @return LinuxConfiguration - linux specific configuration values for the virtual machine
*
*/
private @Nullable VirtualMachinePropertiesResponseLinuxConfiguration linuxConfiguration;
/**
* @return OsType - string specifying whether the OS is Linux or Windows
*
*/
private @Nullable String osType;
/**
* @return Windows Configuration for the virtual machine
*
*/
private @Nullable VirtualMachinePropertiesResponseWindowsConfiguration windowsConfiguration;
private VirtualMachinePropertiesResponseOsProfile() {}
/**
* @return AdminUsername - admin username
*
*/
public Optional adminUsername() {
return Optional.ofNullable(this.adminUsername);
}
/**
* @return ComputerName - name of the compute
*
*/
public Optional computerName() {
return Optional.ofNullable(this.computerName);
}
/**
* @return LinuxConfiguration - linux specific configuration values for the virtual machine
*
*/
public Optional linuxConfiguration() {
return Optional.ofNullable(this.linuxConfiguration);
}
/**
* @return OsType - string specifying whether the OS is Linux or Windows
*
*/
public Optional osType() {
return Optional.ofNullable(this.osType);
}
/**
* @return Windows Configuration for the virtual machine
*
*/
public Optional windowsConfiguration() {
return Optional.ofNullable(this.windowsConfiguration);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualMachinePropertiesResponseOsProfile defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String adminUsername;
private @Nullable String computerName;
private @Nullable VirtualMachinePropertiesResponseLinuxConfiguration linuxConfiguration;
private @Nullable String osType;
private @Nullable VirtualMachinePropertiesResponseWindowsConfiguration windowsConfiguration;
public Builder() {}
public Builder(VirtualMachinePropertiesResponseOsProfile defaults) {
Objects.requireNonNull(defaults);
this.adminUsername = defaults.adminUsername;
this.computerName = defaults.computerName;
this.linuxConfiguration = defaults.linuxConfiguration;
this.osType = defaults.osType;
this.windowsConfiguration = defaults.windowsConfiguration;
}
@CustomType.Setter
public Builder adminUsername(@Nullable String adminUsername) {
this.adminUsername = adminUsername;
return this;
}
@CustomType.Setter
public Builder computerName(@Nullable String computerName) {
this.computerName = computerName;
return this;
}
@CustomType.Setter
public Builder linuxConfiguration(@Nullable VirtualMachinePropertiesResponseLinuxConfiguration linuxConfiguration) {
this.linuxConfiguration = linuxConfiguration;
return this;
}
@CustomType.Setter
public Builder osType(@Nullable String osType) {
this.osType = osType;
return this;
}
@CustomType.Setter
public Builder windowsConfiguration(@Nullable VirtualMachinePropertiesResponseWindowsConfiguration windowsConfiguration) {
this.windowsConfiguration = windowsConfiguration;
return this;
}
public VirtualMachinePropertiesResponseOsProfile build() {
final var _resultValue = new VirtualMachinePropertiesResponseOsProfile();
_resultValue.adminUsername = adminUsername;
_resultValue.computerName = computerName;
_resultValue.linuxConfiguration = linuxConfiguration;
_resultValue.osType = osType;
_resultValue.windowsConfiguration = windowsConfiguration;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy