com.pulumi.azurenative.scvmm.outputs.OsProfileForVMInstanceResponse 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.scvmm.outputs;
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 OsProfileForVMInstanceResponse {
/**
* @return Gets or sets computer name.
*
*/
private @Nullable String computerName;
/**
* @return Gets or sets os sku.
*
*/
private String osSku;
/**
* @return Gets or sets the type of the os.
*
*/
private String osType;
/**
* @return Gets os version.
*
*/
private String osVersion;
private OsProfileForVMInstanceResponse() {}
/**
* @return Gets or sets computer name.
*
*/
public Optional computerName() {
return Optional.ofNullable(this.computerName);
}
/**
* @return Gets or sets os sku.
*
*/
public String osSku() {
return this.osSku;
}
/**
* @return Gets or sets the type of the os.
*
*/
public String osType() {
return this.osType;
}
/**
* @return Gets os version.
*
*/
public String osVersion() {
return this.osVersion;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OsProfileForVMInstanceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String computerName;
private String osSku;
private String osType;
private String osVersion;
public Builder() {}
public Builder(OsProfileForVMInstanceResponse defaults) {
Objects.requireNonNull(defaults);
this.computerName = defaults.computerName;
this.osSku = defaults.osSku;
this.osType = defaults.osType;
this.osVersion = defaults.osVersion;
}
@CustomType.Setter
public Builder computerName(@Nullable String computerName) {
this.computerName = computerName;
return this;
}
@CustomType.Setter
public Builder osSku(String osSku) {
if (osSku == null) {
throw new MissingRequiredPropertyException("OsProfileForVMInstanceResponse", "osSku");
}
this.osSku = osSku;
return this;
}
@CustomType.Setter
public Builder osType(String osType) {
if (osType == null) {
throw new MissingRequiredPropertyException("OsProfileForVMInstanceResponse", "osType");
}
this.osType = osType;
return this;
}
@CustomType.Setter
public Builder osVersion(String osVersion) {
if (osVersion == null) {
throw new MissingRequiredPropertyException("OsProfileForVMInstanceResponse", "osVersion");
}
this.osVersion = osVersion;
return this;
}
public OsProfileForVMInstanceResponse build() {
final var _resultValue = new OsProfileForVMInstanceResponse();
_resultValue.computerName = computerName;
_resultValue.osSku = osSku;
_resultValue.osType = osType;
_resultValue.osVersion = osVersion;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy