
com.pulumi.azurenative.netapp.outputs.GetVolumeGroupResult 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.netapp.outputs;
import com.pulumi.azurenative.netapp.outputs.VolumeGroupMetaDataResponse;
import com.pulumi.azurenative.netapp.outputs.VolumeGroupVolumePropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetVolumeGroupResult {
/**
* @return Volume group details
*
*/
private @Nullable VolumeGroupMetaDataResponse groupMetaData;
/**
* @return Resource Id
*
*/
private String id;
/**
* @return Resource location
*
*/
private @Nullable String location;
/**
* @return Resource name
*
*/
private String name;
/**
* @return Azure lifecycle management
*
*/
private String provisioningState;
/**
* @return Resource type
*
*/
private String type;
/**
* @return List of volumes from group
*
*/
private @Nullable List volumes;
private GetVolumeGroupResult() {}
/**
* @return Volume group details
*
*/
public Optional groupMetaData() {
return Optional.ofNullable(this.groupMetaData);
}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return Resource location
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return Resource name
*
*/
public String name() {
return this.name;
}
/**
* @return Azure lifecycle management
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Resource type
*
*/
public String type() {
return this.type;
}
/**
* @return List of volumes from group
*
*/
public List volumes() {
return this.volumes == null ? List.of() : this.volumes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVolumeGroupResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable VolumeGroupMetaDataResponse groupMetaData;
private String id;
private @Nullable String location;
private String name;
private String provisioningState;
private String type;
private @Nullable List volumes;
public Builder() {}
public Builder(GetVolumeGroupResult defaults) {
Objects.requireNonNull(defaults);
this.groupMetaData = defaults.groupMetaData;
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.type = defaults.type;
this.volumes = defaults.volumes;
}
@CustomType.Setter
public Builder groupMetaData(@Nullable VolumeGroupMetaDataResponse groupMetaData) {
this.groupMetaData = groupMetaData;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetVolumeGroupResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVolumeGroupResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetVolumeGroupResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetVolumeGroupResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder volumes(@Nullable List volumes) {
this.volumes = volumes;
return this;
}
public Builder volumes(VolumeGroupVolumePropertiesResponse... volumes) {
return volumes(List.of(volumes));
}
public GetVolumeGroupResult build() {
final var _resultValue = new GetVolumeGroupResult();
_resultValue.groupMetaData = groupMetaData;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.type = type;
_resultValue.volumes = volumes;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy