com.pulumi.azurenative.hybridcompute.outputs.OSProfileResponse 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.hybridcompute.outputs;
import com.pulumi.azurenative.hybridcompute.outputs.OSProfileResponseLinuxConfiguration;
import com.pulumi.azurenative.hybridcompute.outputs.OSProfileResponseWindowsConfiguration;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class OSProfileResponse {
/**
* @return Specifies the host OS name of the hybrid machine.
*
*/
private String computerName;
/**
* @return Specifies the linux configuration for update management.
*
*/
private @Nullable OSProfileResponseLinuxConfiguration linuxConfiguration;
/**
* @return Specifies the windows configuration for update management.
*
*/
private @Nullable OSProfileResponseWindowsConfiguration windowsConfiguration;
private OSProfileResponse() {}
/**
* @return Specifies the host OS name of the hybrid machine.
*
*/
public String computerName() {
return this.computerName;
}
/**
* @return Specifies the linux configuration for update management.
*
*/
public Optional linuxConfiguration() {
return Optional.ofNullable(this.linuxConfiguration);
}
/**
* @return Specifies the windows configuration for update management.
*
*/
public Optional windowsConfiguration() {
return Optional.ofNullable(this.windowsConfiguration);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OSProfileResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String computerName;
private @Nullable OSProfileResponseLinuxConfiguration linuxConfiguration;
private @Nullable OSProfileResponseWindowsConfiguration windowsConfiguration;
public Builder() {}
public Builder(OSProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.computerName = defaults.computerName;
this.linuxConfiguration = defaults.linuxConfiguration;
this.windowsConfiguration = defaults.windowsConfiguration;
}
@CustomType.Setter
public Builder computerName(String computerName) {
if (computerName == null) {
throw new MissingRequiredPropertyException("OSProfileResponse", "computerName");
}
this.computerName = computerName;
return this;
}
@CustomType.Setter
public Builder linuxConfiguration(@Nullable OSProfileResponseLinuxConfiguration linuxConfiguration) {
this.linuxConfiguration = linuxConfiguration;
return this;
}
@CustomType.Setter
public Builder windowsConfiguration(@Nullable OSProfileResponseWindowsConfiguration windowsConfiguration) {
this.windowsConfiguration = windowsConfiguration;
return this;
}
public OSProfileResponse build() {
final var _resultValue = new OSProfileResponse();
_resultValue.computerName = computerName;
_resultValue.linuxConfiguration = linuxConfiguration;
_resultValue.windowsConfiguration = windowsConfiguration;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy