com.pulumi.azurenative.containerstorage.outputs.EphemeralDiskResponse 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.containerstorage.outputs;
import com.pulumi.azurenative.containerstorage.outputs.DiskResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EphemeralDiskResponse {
/**
* @return Only required if individual disk selection is desired. Path to disk, e.g. <nodename>:/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
*
*/
private @Nullable List disks;
/**
* @return The number of data copies. Default 3.
*
*/
private @Nullable Double replicas;
private EphemeralDiskResponse() {}
/**
* @return Only required if individual disk selection is desired. Path to disk, e.g. <nodename>:/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
*
*/
public List disks() {
return this.disks == null ? List.of() : this.disks;
}
/**
* @return The number of data copies. Default 3.
*
*/
public Optional replicas() {
return Optional.ofNullable(this.replicas);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EphemeralDiskResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List disks;
private @Nullable Double replicas;
public Builder() {}
public Builder(EphemeralDiskResponse defaults) {
Objects.requireNonNull(defaults);
this.disks = defaults.disks;
this.replicas = defaults.replicas;
}
@CustomType.Setter
public Builder disks(@Nullable List disks) {
this.disks = disks;
return this;
}
public Builder disks(DiskResponse... disks) {
return disks(List.of(disks));
}
@CustomType.Setter
public Builder replicas(@Nullable Double replicas) {
this.replicas = replicas;
return this;
}
public EphemeralDiskResponse build() {
final var _resultValue = new EphemeralDiskResponse();
_resultValue.disks = disks;
_resultValue.replicas = replicas;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy