
com.pulumi.azurenative.avs.outputs.GetDatastoreResult 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.avs.outputs;
import com.pulumi.azurenative.avs.outputs.DiskPoolVolumeResponse;
import com.pulumi.azurenative.avs.outputs.NetAppVolumeResponse;
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 GetDatastoreResult {
/**
* @return An iSCSI volume
*
*/
private @Nullable DiskPoolVolumeResponse diskPoolVolume;
/**
* @return Resource ID.
*
*/
private String id;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return An Azure NetApp Files volume
*
*/
private @Nullable NetAppVolumeResponse netAppVolume;
/**
* @return The state of the datastore provisioning
*
*/
private String provisioningState;
/**
* @return The operational status of the datastore
*
*/
private String status;
/**
* @return Resource type.
*
*/
private String type;
private GetDatastoreResult() {}
/**
* @return An iSCSI volume
*
*/
public Optional diskPoolVolume() {
return Optional.ofNullable(this.diskPoolVolume);
}
/**
* @return Resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return An Azure NetApp Files volume
*
*/
public Optional netAppVolume() {
return Optional.ofNullable(this.netAppVolume);
}
/**
* @return The state of the datastore provisioning
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The operational status of the datastore
*
*/
public String status() {
return this.status;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDatastoreResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable DiskPoolVolumeResponse diskPoolVolume;
private String id;
private String name;
private @Nullable NetAppVolumeResponse netAppVolume;
private String provisioningState;
private String status;
private String type;
public Builder() {}
public Builder(GetDatastoreResult defaults) {
Objects.requireNonNull(defaults);
this.diskPoolVolume = defaults.diskPoolVolume;
this.id = defaults.id;
this.name = defaults.name;
this.netAppVolume = defaults.netAppVolume;
this.provisioningState = defaults.provisioningState;
this.status = defaults.status;
this.type = defaults.type;
}
@CustomType.Setter
public Builder diskPoolVolume(@Nullable DiskPoolVolumeResponse diskPoolVolume) {
this.diskPoolVolume = diskPoolVolume;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDatastoreResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetDatastoreResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder netAppVolume(@Nullable NetAppVolumeResponse netAppVolume) {
this.netAppVolume = netAppVolume;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetDatastoreResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetDatastoreResult", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetDatastoreResult", "type");
}
this.type = type;
return this;
}
public GetDatastoreResult build() {
final var _resultValue = new GetDatastoreResult();
_resultValue.diskPoolVolume = diskPoolVolume;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.netAppVolume = netAppVolume;
_resultValue.provisioningState = provisioningState;
_resultValue.status = status;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy