com.pulumi.spotinst.outputs.ElastigroupAzureV3VmSizes 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.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ElastigroupAzureV3VmSizes {
private List odSizes;
private @Nullable List preferredSpotSizes;
private List spotSizes;
private ElastigroupAzureV3VmSizes() {}
public List odSizes() {
return this.odSizes;
}
public List preferredSpotSizes() {
return this.preferredSpotSizes == null ? List.of() : this.preferredSpotSizes;
}
public List spotSizes() {
return this.spotSizes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ElastigroupAzureV3VmSizes defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List odSizes;
private @Nullable List preferredSpotSizes;
private List spotSizes;
public Builder() {}
public Builder(ElastigroupAzureV3VmSizes defaults) {
Objects.requireNonNull(defaults);
this.odSizes = defaults.odSizes;
this.preferredSpotSizes = defaults.preferredSpotSizes;
this.spotSizes = defaults.spotSizes;
}
@CustomType.Setter
public Builder odSizes(List odSizes) {
if (odSizes == null) {
throw new MissingRequiredPropertyException("ElastigroupAzureV3VmSizes", "odSizes");
}
this.odSizes = odSizes;
return this;
}
public Builder odSizes(String... odSizes) {
return odSizes(List.of(odSizes));
}
@CustomType.Setter
public Builder preferredSpotSizes(@Nullable List preferredSpotSizes) {
this.preferredSpotSizes = preferredSpotSizes;
return this;
}
public Builder preferredSpotSizes(String... preferredSpotSizes) {
return preferredSpotSizes(List.of(preferredSpotSizes));
}
@CustomType.Setter
public Builder spotSizes(List spotSizes) {
if (spotSizes == null) {
throw new MissingRequiredPropertyException("ElastigroupAzureV3VmSizes", "spotSizes");
}
this.spotSizes = spotSizes;
return this;
}
public Builder spotSizes(String... spotSizes) {
return spotSizes(List.of(spotSizes));
}
public ElastigroupAzureV3VmSizes build() {
final var _resultValue = new ElastigroupAzureV3VmSizes();
_resultValue.odSizes = odSizes;
_resultValue.preferredSpotSizes = preferredSpotSizes;
_resultValue.spotSizes = spotSizes;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy