com.pulumi.azurenative.devtestlab.outputs.GetDiskResult 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.devtestlab.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetDiskResult {
/**
* @return The creation date of the disk.
*
*/
private String createdDate;
/**
* @return When backed by a blob, the name of the VHD blob without extension.
*
*/
private @Nullable String diskBlobName;
/**
* @return The size of the disk in Gibibytes.
*
*/
private @Nullable Integer diskSizeGiB;
/**
* @return The storage type for the disk (i.e. Standard, Premium).
*
*/
private @Nullable String diskType;
/**
* @return When backed by a blob, the URI of underlying blob.
*
*/
private @Nullable String diskUri;
/**
* @return The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).
*
*/
private @Nullable String hostCaching;
/**
* @return The identifier of the resource.
*
*/
private String id;
/**
* @return The resource ID of the VM to which this disk is leased.
*
*/
private @Nullable String leasedByLabVmId;
/**
* @return The location of the resource.
*
*/
private @Nullable String location;
/**
* @return When backed by managed disk, this is the ID of the compute disk resource.
*
*/
private @Nullable String managedDiskId;
/**
* @return The name of the resource.
*
*/
private String name;
/**
* @return The provisioning status of the resource.
*
*/
private String provisioningState;
/**
* @return When backed by a blob, the storage account where the blob is.
*
*/
private @Nullable String storageAccountId;
/**
* @return The tags of the resource.
*
*/
private @Nullable Map tags;
/**
* @return The type of the resource.
*
*/
private String type;
/**
* @return The unique immutable identifier of a resource (Guid).
*
*/
private String uniqueIdentifier;
private GetDiskResult() {}
/**
* @return The creation date of the disk.
*
*/
public String createdDate() {
return this.createdDate;
}
/**
* @return When backed by a blob, the name of the VHD blob without extension.
*
*/
public Optional diskBlobName() {
return Optional.ofNullable(this.diskBlobName);
}
/**
* @return The size of the disk in Gibibytes.
*
*/
public Optional diskSizeGiB() {
return Optional.ofNullable(this.diskSizeGiB);
}
/**
* @return The storage type for the disk (i.e. Standard, Premium).
*
*/
public Optional diskType() {
return Optional.ofNullable(this.diskType);
}
/**
* @return When backed by a blob, the URI of underlying blob.
*
*/
public Optional diskUri() {
return Optional.ofNullable(this.diskUri);
}
/**
* @return The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).
*
*/
public Optional hostCaching() {
return Optional.ofNullable(this.hostCaching);
}
/**
* @return The identifier of the resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The resource ID of the VM to which this disk is leased.
*
*/
public Optional leasedByLabVmId() {
return Optional.ofNullable(this.leasedByLabVmId);
}
/**
* @return The location of the resource.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return When backed by managed disk, this is the ID of the compute disk resource.
*
*/
public Optional managedDiskId() {
return Optional.ofNullable(this.managedDiskId);
}
/**
* @return The name of the resource.
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning status of the resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return When backed by a blob, the storage account where the blob is.
*
*/
public Optional storageAccountId() {
return Optional.ofNullable(this.storageAccountId);
}
/**
* @return The tags of the resource.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
/**
* @return The unique immutable identifier of a resource (Guid).
*
*/
public String uniqueIdentifier() {
return this.uniqueIdentifier;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDiskResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String createdDate;
private @Nullable String diskBlobName;
private @Nullable Integer diskSizeGiB;
private @Nullable String diskType;
private @Nullable String diskUri;
private @Nullable String hostCaching;
private String id;
private @Nullable String leasedByLabVmId;
private @Nullable String location;
private @Nullable String managedDiskId;
private String name;
private String provisioningState;
private @Nullable String storageAccountId;
private @Nullable Map tags;
private String type;
private String uniqueIdentifier;
public Builder() {}
public Builder(GetDiskResult defaults) {
Objects.requireNonNull(defaults);
this.createdDate = defaults.createdDate;
this.diskBlobName = defaults.diskBlobName;
this.diskSizeGiB = defaults.diskSizeGiB;
this.diskType = defaults.diskType;
this.diskUri = defaults.diskUri;
this.hostCaching = defaults.hostCaching;
this.id = defaults.id;
this.leasedByLabVmId = defaults.leasedByLabVmId;
this.location = defaults.location;
this.managedDiskId = defaults.managedDiskId;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.storageAccountId = defaults.storageAccountId;
this.tags = defaults.tags;
this.type = defaults.type;
this.uniqueIdentifier = defaults.uniqueIdentifier;
}
@CustomType.Setter
public Builder createdDate(String createdDate) {
if (createdDate == null) {
throw new MissingRequiredPropertyException("GetDiskResult", "createdDate");
}
this.createdDate = createdDate;
return this;
}
@CustomType.Setter
public Builder diskBlobName(@Nullable String diskBlobName) {
this.diskBlobName = diskBlobName;
return this;
}
@CustomType.Setter
public Builder diskSizeGiB(@Nullable Integer diskSizeGiB) {
this.diskSizeGiB = diskSizeGiB;
return this;
}
@CustomType.Setter
public Builder diskType(@Nullable String diskType) {
this.diskType = diskType;
return this;
}
@CustomType.Setter
public Builder diskUri(@Nullable String diskUri) {
this.diskUri = diskUri;
return this;
}
@CustomType.Setter
public Builder hostCaching(@Nullable String hostCaching) {
this.hostCaching = hostCaching;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDiskResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder leasedByLabVmId(@Nullable String leasedByLabVmId) {
this.leasedByLabVmId = leasedByLabVmId;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder managedDiskId(@Nullable String managedDiskId) {
this.managedDiskId = managedDiskId;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetDiskResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetDiskResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder storageAccountId(@Nullable String storageAccountId) {
this.storageAccountId = storageAccountId;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetDiskResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder uniqueIdentifier(String uniqueIdentifier) {
if (uniqueIdentifier == null) {
throw new MissingRequiredPropertyException("GetDiskResult", "uniqueIdentifier");
}
this.uniqueIdentifier = uniqueIdentifier;
return this;
}
public GetDiskResult build() {
final var _resultValue = new GetDiskResult();
_resultValue.createdDate = createdDate;
_resultValue.diskBlobName = diskBlobName;
_resultValue.diskSizeGiB = diskSizeGiB;
_resultValue.diskType = diskType;
_resultValue.diskUri = diskUri;
_resultValue.hostCaching = hostCaching;
_resultValue.id = id;
_resultValue.leasedByLabVmId = leasedByLabVmId;
_resultValue.location = location;
_resultValue.managedDiskId = managedDiskId;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.storageAccountId = storageAccountId;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.uniqueIdentifier = uniqueIdentifier;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy