
com.pulumi.azurenative.devtestlab.outputs.CustomImagePropertiesCustomResponse Maven / Gradle / Ivy
// *** 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.devtestlab.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CustomImagePropertiesCustomResponse {
/**
* @return The image name.
*
*/
private @Nullable String imageName;
/**
* @return The OS type of the custom image (i.e. Windows, Linux)
*
*/
private String osType;
/**
* @return Indicates whether sysprep has been run on the VHD.
*
*/
private @Nullable Boolean sysPrep;
private CustomImagePropertiesCustomResponse() {}
/**
* @return The image name.
*
*/
public Optional imageName() {
return Optional.ofNullable(this.imageName);
}
/**
* @return The OS type of the custom image (i.e. Windows, Linux)
*
*/
public String osType() {
return this.osType;
}
/**
* @return Indicates whether sysprep has been run on the VHD.
*
*/
public Optional sysPrep() {
return Optional.ofNullable(this.sysPrep);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CustomImagePropertiesCustomResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String imageName;
private String osType;
private @Nullable Boolean sysPrep;
public Builder() {}
public Builder(CustomImagePropertiesCustomResponse defaults) {
Objects.requireNonNull(defaults);
this.imageName = defaults.imageName;
this.osType = defaults.osType;
this.sysPrep = defaults.sysPrep;
}
@CustomType.Setter
public Builder imageName(@Nullable String imageName) {
this.imageName = imageName;
return this;
}
@CustomType.Setter
public Builder osType(String osType) {
if (osType == null) {
throw new MissingRequiredPropertyException("CustomImagePropertiesCustomResponse", "osType");
}
this.osType = osType;
return this;
}
@CustomType.Setter
public Builder sysPrep(@Nullable Boolean sysPrep) {
this.sysPrep = sysPrep;
return this;
}
public CustomImagePropertiesCustomResponse build() {
final var _resultValue = new CustomImagePropertiesCustomResponse();
_resultValue.imageName = imageName;
_resultValue.osType = osType;
_resultValue.sysPrep = sysPrep;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy