com.pulumi.spotinst.outputs.StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup 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.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup {
private String crgName;
private String crgResourceGroupName;
private @Nullable Boolean crgShouldPrioritize;
private StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup() {}
public String crgName() {
return this.crgName;
}
public String crgResourceGroupName() {
return this.crgResourceGroupName;
}
public Optional crgShouldPrioritize() {
return Optional.ofNullable(this.crgShouldPrioritize);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String crgName;
private String crgResourceGroupName;
private @Nullable Boolean crgShouldPrioritize;
public Builder() {}
public Builder(StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup defaults) {
Objects.requireNonNull(defaults);
this.crgName = defaults.crgName;
this.crgResourceGroupName = defaults.crgResourceGroupName;
this.crgShouldPrioritize = defaults.crgShouldPrioritize;
}
@CustomType.Setter
public Builder crgName(String crgName) {
if (crgName == null) {
throw new MissingRequiredPropertyException("StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup", "crgName");
}
this.crgName = crgName;
return this;
}
@CustomType.Setter
public Builder crgResourceGroupName(String crgResourceGroupName) {
if (crgResourceGroupName == null) {
throw new MissingRequiredPropertyException("StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup", "crgResourceGroupName");
}
this.crgResourceGroupName = crgResourceGroupName;
return this;
}
@CustomType.Setter
public Builder crgShouldPrioritize(@Nullable Boolean crgShouldPrioritize) {
this.crgShouldPrioritize = crgShouldPrioritize;
return this;
}
public StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup build() {
final var _resultValue = new StatefulNodeAzureStrategyCapacityReservationCapacityReservationGroup();
_resultValue.crgName = crgName;
_resultValue.crgResourceGroupName = crgResourceGroupName;
_resultValue.crgShouldPrioritize = crgShouldPrioritize;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy