com.pulumi.spotinst.outputs.StatefulNodeAzureOsDisk Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotinst Show documentation
Show all versions of spotinst Show documentation
A Pulumi package for creating and managing spotinst cloud resources.
The newest version!
// *** 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.spotinst.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StatefulNodeAzureOsDisk {
private @Nullable String caching;
private @Nullable Integer sizeGb;
private String type;
private StatefulNodeAzureOsDisk() {}
public Optional caching() {
return Optional.ofNullable(this.caching);
}
public Optional sizeGb() {
return Optional.ofNullable(this.sizeGb);
}
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StatefulNodeAzureOsDisk defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String caching;
private @Nullable Integer sizeGb;
private String type;
public Builder() {}
public Builder(StatefulNodeAzureOsDisk defaults) {
Objects.requireNonNull(defaults);
this.caching = defaults.caching;
this.sizeGb = defaults.sizeGb;
this.type = defaults.type;
}
@CustomType.Setter
public Builder caching(@Nullable String caching) {
this.caching = caching;
return this;
}
@CustomType.Setter
public Builder sizeGb(@Nullable Integer sizeGb) {
this.sizeGb = sizeGb;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("StatefulNodeAzureOsDisk", "type");
}
this.type = type;
return this;
}
public StatefulNodeAzureOsDisk build() {
final var _resultValue = new StatefulNodeAzureOsDisk();
_resultValue.caching = caching;
_resultValue.sizeGb = sizeGb;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy