
com.pulumi.azurenative.compute.outputs.GalleryOSDiskImageResponse 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.compute.outputs;
import com.pulumi.azurenative.compute.outputs.GalleryDiskImageSourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GalleryOSDiskImageResponse {
/**
* @return The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
*
*/
private @Nullable String hostCaching;
/**
* @return This property indicates the size of the VHD to be created.
*
*/
private Integer sizeInGB;
/**
* @return The source for the disk image.
*
*/
private @Nullable GalleryDiskImageSourceResponse source;
private GalleryOSDiskImageResponse() {}
/**
* @return The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
*
*/
public Optional hostCaching() {
return Optional.ofNullable(this.hostCaching);
}
/**
* @return This property indicates the size of the VHD to be created.
*
*/
public Integer sizeInGB() {
return this.sizeInGB;
}
/**
* @return The source for the disk image.
*
*/
public Optional source() {
return Optional.ofNullable(this.source);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GalleryOSDiskImageResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String hostCaching;
private Integer sizeInGB;
private @Nullable GalleryDiskImageSourceResponse source;
public Builder() {}
public Builder(GalleryOSDiskImageResponse defaults) {
Objects.requireNonNull(defaults);
this.hostCaching = defaults.hostCaching;
this.sizeInGB = defaults.sizeInGB;
this.source = defaults.source;
}
@CustomType.Setter
public Builder hostCaching(@Nullable String hostCaching) {
this.hostCaching = hostCaching;
return this;
}
@CustomType.Setter
public Builder sizeInGB(Integer sizeInGB) {
if (sizeInGB == null) {
throw new MissingRequiredPropertyException("GalleryOSDiskImageResponse", "sizeInGB");
}
this.sizeInGB = sizeInGB;
return this;
}
@CustomType.Setter
public Builder source(@Nullable GalleryDiskImageSourceResponse source) {
this.source = source;
return this;
}
public GalleryOSDiskImageResponse build() {
final var _resultValue = new GalleryOSDiskImageResponse();
_resultValue.hostCaching = hostCaching;
_resultValue.sizeInGB = sizeInGB;
_resultValue.source = source;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy