com.pulumi.azure.compute.outputs.ScaleSetOsProfileWindowsConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.compute.outputs;
import com.pulumi.azure.compute.outputs.ScaleSetOsProfileWindowsConfigAdditionalUnattendConfig;
import com.pulumi.azure.compute.outputs.ScaleSetOsProfileWindowsConfigWinrm;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ScaleSetOsProfileWindowsConfig {
/**
* @return An `additional_unattend_config` block as documented below.
*
*/
private @Nullable List additionalUnattendConfigs;
/**
* @return Indicates whether virtual machines in the scale set are enabled for automatic updates.
*
*/
private @Nullable Boolean enableAutomaticUpgrades;
/**
* @return Indicates whether virtual machine agent should be provisioned on the virtual machines in the scale set.
*
*/
private @Nullable Boolean provisionVmAgent;
/**
* @return A collection of `winrm` blocks as documented below.
*
*/
private @Nullable List winrms;
private ScaleSetOsProfileWindowsConfig() {}
/**
* @return An `additional_unattend_config` block as documented below.
*
*/
public List additionalUnattendConfigs() {
return this.additionalUnattendConfigs == null ? List.of() : this.additionalUnattendConfigs;
}
/**
* @return Indicates whether virtual machines in the scale set are enabled for automatic updates.
*
*/
public Optional enableAutomaticUpgrades() {
return Optional.ofNullable(this.enableAutomaticUpgrades);
}
/**
* @return Indicates whether virtual machine agent should be provisioned on the virtual machines in the scale set.
*
*/
public Optional provisionVmAgent() {
return Optional.ofNullable(this.provisionVmAgent);
}
/**
* @return A collection of `winrm` blocks as documented below.
*
*/
public List winrms() {
return this.winrms == null ? List.of() : this.winrms;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScaleSetOsProfileWindowsConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List additionalUnattendConfigs;
private @Nullable Boolean enableAutomaticUpgrades;
private @Nullable Boolean provisionVmAgent;
private @Nullable List winrms;
public Builder() {}
public Builder(ScaleSetOsProfileWindowsConfig defaults) {
Objects.requireNonNull(defaults);
this.additionalUnattendConfigs = defaults.additionalUnattendConfigs;
this.enableAutomaticUpgrades = defaults.enableAutomaticUpgrades;
this.provisionVmAgent = defaults.provisionVmAgent;
this.winrms = defaults.winrms;
}
@CustomType.Setter
public Builder additionalUnattendConfigs(@Nullable List additionalUnattendConfigs) {
this.additionalUnattendConfigs = additionalUnattendConfigs;
return this;
}
public Builder additionalUnattendConfigs(ScaleSetOsProfileWindowsConfigAdditionalUnattendConfig... additionalUnattendConfigs) {
return additionalUnattendConfigs(List.of(additionalUnattendConfigs));
}
@CustomType.Setter
public Builder enableAutomaticUpgrades(@Nullable Boolean enableAutomaticUpgrades) {
this.enableAutomaticUpgrades = enableAutomaticUpgrades;
return this;
}
@CustomType.Setter
public Builder provisionVmAgent(@Nullable Boolean provisionVmAgent) {
this.provisionVmAgent = provisionVmAgent;
return this;
}
@CustomType.Setter
public Builder winrms(@Nullable List winrms) {
this.winrms = winrms;
return this;
}
public Builder winrms(ScaleSetOsProfileWindowsConfigWinrm... winrms) {
return winrms(List.of(winrms));
}
public ScaleSetOsProfileWindowsConfig build() {
final var _resultValue = new ScaleSetOsProfileWindowsConfig();
_resultValue.additionalUnattendConfigs = additionalUnattendConfigs;
_resultValue.enableAutomaticUpgrades = enableAutomaticUpgrades;
_resultValue.provisionVmAgent = provisionVmAgent;
_resultValue.winrms = winrms;
return _resultValue;
}
}
}