
com.pulumi.azurenative.compute.outputs.PriorityMixPolicyResponse 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.compute.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PriorityMixPolicyResponse {
/**
* @return The base number of regular priority VMs that will be created in this scale set as it scales out.
*
*/
private @Nullable Integer baseRegularPriorityCount;
/**
* @return The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority.
*
*/
private @Nullable Integer regularPriorityPercentageAboveBase;
private PriorityMixPolicyResponse() {}
/**
* @return The base number of regular priority VMs that will be created in this scale set as it scales out.
*
*/
public Optional baseRegularPriorityCount() {
return Optional.ofNullable(this.baseRegularPriorityCount);
}
/**
* @return The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority.
*
*/
public Optional regularPriorityPercentageAboveBase() {
return Optional.ofNullable(this.regularPriorityPercentageAboveBase);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PriorityMixPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer baseRegularPriorityCount;
private @Nullable Integer regularPriorityPercentageAboveBase;
public Builder() {}
public Builder(PriorityMixPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.baseRegularPriorityCount = defaults.baseRegularPriorityCount;
this.regularPriorityPercentageAboveBase = defaults.regularPriorityPercentageAboveBase;
}
@CustomType.Setter
public Builder baseRegularPriorityCount(@Nullable Integer baseRegularPriorityCount) {
this.baseRegularPriorityCount = baseRegularPriorityCount;
return this;
}
@CustomType.Setter
public Builder regularPriorityPercentageAboveBase(@Nullable Integer regularPriorityPercentageAboveBase) {
this.regularPriorityPercentageAboveBase = regularPriorityPercentageAboveBase;
return this;
}
public PriorityMixPolicyResponse build() {
final var _resultValue = new PriorityMixPolicyResponse();
_resultValue.baseRegularPriorityCount = baseRegularPriorityCount;
_resultValue.regularPriorityPercentageAboveBase = regularPriorityPercentageAboveBase;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy