
com.pulumi.azurenative.compute.outputs.ImageDiskReferenceResponse 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.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ImageDiskReferenceResponse {
/**
* @return A relative uri containing a community Azure Compute Gallery image reference.
*
*/
private @Nullable String communityGalleryImageId;
/**
* @return A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
*
*/
private @Nullable String id;
/**
* @return If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
*
*/
private @Nullable Integer lun;
/**
* @return A relative uri containing a direct shared Azure Compute Gallery image reference.
*
*/
private @Nullable String sharedGalleryImageId;
private ImageDiskReferenceResponse() {}
/**
* @return A relative uri containing a community Azure Compute Gallery image reference.
*
*/
public Optional communityGalleryImageId() {
return Optional.ofNullable(this.communityGalleryImageId);
}
/**
* @return A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
*
*/
public Optional lun() {
return Optional.ofNullable(this.lun);
}
/**
* @return A relative uri containing a direct shared Azure Compute Gallery image reference.
*
*/
public Optional sharedGalleryImageId() {
return Optional.ofNullable(this.sharedGalleryImageId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImageDiskReferenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String communityGalleryImageId;
private @Nullable String id;
private @Nullable Integer lun;
private @Nullable String sharedGalleryImageId;
public Builder() {}
public Builder(ImageDiskReferenceResponse defaults) {
Objects.requireNonNull(defaults);
this.communityGalleryImageId = defaults.communityGalleryImageId;
this.id = defaults.id;
this.lun = defaults.lun;
this.sharedGalleryImageId = defaults.sharedGalleryImageId;
}
@CustomType.Setter
public Builder communityGalleryImageId(@Nullable String communityGalleryImageId) {
this.communityGalleryImageId = communityGalleryImageId;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder lun(@Nullable Integer lun) {
this.lun = lun;
return this;
}
@CustomType.Setter
public Builder sharedGalleryImageId(@Nullable String sharedGalleryImageId) {
this.sharedGalleryImageId = sharedGalleryImageId;
return this;
}
public ImageDiskReferenceResponse build() {
final var _resultValue = new ImageDiskReferenceResponse();
_resultValue.communityGalleryImageId = communityGalleryImageId;
_resultValue.id = id;
_resultValue.lun = lun;
_resultValue.sharedGalleryImageId = sharedGalleryImageId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy