com.pulumi.azurenative.elasticsan.outputs.GetVolumeResult 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.elasticsan.outputs;
import com.pulumi.azurenative.elasticsan.outputs.IscsiTargetInfoResponse;
import com.pulumi.azurenative.elasticsan.outputs.SourceCreationDataResponse;
import com.pulumi.azurenative.elasticsan.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetVolumeResult {
/**
* @return State of the operation on the resource.
*
*/
private @Nullable SourceCreationDataResponse creationData;
/**
* @return Azure resource identifier.
*
*/
private String id;
/**
* @return Azure resource name.
*
*/
private String name;
/**
* @return Volume size.
*
*/
private @Nullable Double sizeGiB;
/**
* @return Storage target information
*
*/
private IscsiTargetInfoResponse storageTarget;
/**
* @return Resource metadata required by ARM RPC
*
*/
private SystemDataResponse systemData;
/**
* @return Azure resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Azure resource type.
*
*/
private String type;
/**
* @return Unique Id of the volume in GUID format
*
*/
private String volumeId;
private GetVolumeResult() {}
/**
* @return State of the operation on the resource.
*
*/
public Optional creationData() {
return Optional.ofNullable(this.creationData);
}
/**
* @return Azure resource identifier.
*
*/
public String id() {
return this.id;
}
/**
* @return Azure resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return Volume size.
*
*/
public Optional sizeGiB() {
return Optional.ofNullable(this.sizeGiB);
}
/**
* @return Storage target information
*
*/
public IscsiTargetInfoResponse storageTarget() {
return this.storageTarget;
}
/**
* @return Resource metadata required by ARM RPC
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Azure resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Azure resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return Unique Id of the volume in GUID format
*
*/
public String volumeId() {
return this.volumeId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVolumeResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable SourceCreationDataResponse creationData;
private String id;
private String name;
private @Nullable Double sizeGiB;
private IscsiTargetInfoResponse storageTarget;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private String volumeId;
public Builder() {}
public Builder(GetVolumeResult defaults) {
Objects.requireNonNull(defaults);
this.creationData = defaults.creationData;
this.id = defaults.id;
this.name = defaults.name;
this.sizeGiB = defaults.sizeGiB;
this.storageTarget = defaults.storageTarget;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.volumeId = defaults.volumeId;
}
@CustomType.Setter
public Builder creationData(@Nullable SourceCreationDataResponse creationData) {
this.creationData = creationData;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetVolumeResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVolumeResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder sizeGiB(@Nullable Double sizeGiB) {
this.sizeGiB = sizeGiB;
return this;
}
@CustomType.Setter
public Builder storageTarget(IscsiTargetInfoResponse storageTarget) {
if (storageTarget == null) {
throw new MissingRequiredPropertyException("GetVolumeResult", "storageTarget");
}
this.storageTarget = storageTarget;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetVolumeResult", "systemData");
}
this.systemData = systemData;
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("GetVolumeResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder volumeId(String volumeId) {
if (volumeId == null) {
throw new MissingRequiredPropertyException("GetVolumeResult", "volumeId");
}
this.volumeId = volumeId;
return this;
}
public GetVolumeResult build() {
final var _resultValue = new GetVolumeResult();
_resultValue.creationData = creationData;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.sizeGiB = sizeGiB;
_resultValue.storageTarget = storageTarget;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.volumeId = volumeId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy