
com.pulumi.azurenative.netapp.outputs.VolumeGroupMetaDataResponse Maven / Gradle / Ivy
// *** 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.PlacementKeyValuePairsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VolumeGroupMetaDataResponse {
/**
* @return Application specific identifier
*
*/
private @Nullable String applicationIdentifier;
/**
* @return Application Type
*
*/
private @Nullable String applicationType;
/**
* @return Application specific identifier of deployment rules for the volume group
*
*/
private @Nullable String deploymentSpecId;
/**
* @return Application specific placement rules for the volume group
*
*/
private @Nullable List globalPlacementRules;
/**
* @return Group Description
*
*/
private @Nullable String groupDescription;
/**
* @return Number of volumes in volume group
*
*/
private Double volumesCount;
private VolumeGroupMetaDataResponse() {}
/**
* @return Application specific identifier
*
*/
public Optional applicationIdentifier() {
return Optional.ofNullable(this.applicationIdentifier);
}
/**
* @return Application Type
*
*/
public Optional applicationType() {
return Optional.ofNullable(this.applicationType);
}
/**
* @return Application specific identifier of deployment rules for the volume group
*
*/
public Optional deploymentSpecId() {
return Optional.ofNullable(this.deploymentSpecId);
}
/**
* @return Application specific placement rules for the volume group
*
*/
public List globalPlacementRules() {
return this.globalPlacementRules == null ? List.of() : this.globalPlacementRules;
}
/**
* @return Group Description
*
*/
public Optional groupDescription() {
return Optional.ofNullable(this.groupDescription);
}
/**
* @return Number of volumes in volume group
*
*/
public Double volumesCount() {
return this.volumesCount;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VolumeGroupMetaDataResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String applicationIdentifier;
private @Nullable String applicationType;
private @Nullable String deploymentSpecId;
private @Nullable List globalPlacementRules;
private @Nullable String groupDescription;
private Double volumesCount;
public Builder() {}
public Builder(VolumeGroupMetaDataResponse defaults) {
Objects.requireNonNull(defaults);
this.applicationIdentifier = defaults.applicationIdentifier;
this.applicationType = defaults.applicationType;
this.deploymentSpecId = defaults.deploymentSpecId;
this.globalPlacementRules = defaults.globalPlacementRules;
this.groupDescription = defaults.groupDescription;
this.volumesCount = defaults.volumesCount;
}
@CustomType.Setter
public Builder applicationIdentifier(@Nullable String applicationIdentifier) {
this.applicationIdentifier = applicationIdentifier;
return this;
}
@CustomType.Setter
public Builder applicationType(@Nullable String applicationType) {
this.applicationType = applicationType;
return this;
}
@CustomType.Setter
public Builder deploymentSpecId(@Nullable String deploymentSpecId) {
this.deploymentSpecId = deploymentSpecId;
return this;
}
@CustomType.Setter
public Builder globalPlacementRules(@Nullable List globalPlacementRules) {
this.globalPlacementRules = globalPlacementRules;
return this;
}
public Builder globalPlacementRules(PlacementKeyValuePairsResponse... globalPlacementRules) {
return globalPlacementRules(List.of(globalPlacementRules));
}
@CustomType.Setter
public Builder groupDescription(@Nullable String groupDescription) {
this.groupDescription = groupDescription;
return this;
}
@CustomType.Setter
public Builder volumesCount(Double volumesCount) {
if (volumesCount == null) {
throw new MissingRequiredPropertyException("VolumeGroupMetaDataResponse", "volumesCount");
}
this.volumesCount = volumesCount;
return this;
}
public VolumeGroupMetaDataResponse build() {
final var _resultValue = new VolumeGroupMetaDataResponse();
_resultValue.applicationIdentifier = applicationIdentifier;
_resultValue.applicationType = applicationType;
_resultValue.deploymentSpecId = deploymentSpecId;
_resultValue.globalPlacementRules = globalPlacementRules;
_resultValue.groupDescription = groupDescription;
_resultValue.volumesCount = volumesCount;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy