
com.pulumi.azurenative.azurefleet.outputs.RegularPriorityProfileResponse 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.azurefleet.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RegularPriorityProfileResponse {
/**
* @return Allocation strategy to follow when determining the VM sizes distribution for Regular VMs.
*
*/
private @Nullable String allocationStrategy;
/**
* @return Total capacity to achieve. It is currently in terms of number of VMs.
*
*/
private @Nullable Integer capacity;
/**
* @return Minimum capacity to achieve which cannot be updated. If we will not be able to "guarantee" minimum capacity, we will reject the request in the sync path itself.
*
*/
private @Nullable Integer minCapacity;
private RegularPriorityProfileResponse() {}
/**
* @return Allocation strategy to follow when determining the VM sizes distribution for Regular VMs.
*
*/
public Optional allocationStrategy() {
return Optional.ofNullable(this.allocationStrategy);
}
/**
* @return Total capacity to achieve. It is currently in terms of number of VMs.
*
*/
public Optional capacity() {
return Optional.ofNullable(this.capacity);
}
/**
* @return Minimum capacity to achieve which cannot be updated. If we will not be able to "guarantee" minimum capacity, we will reject the request in the sync path itself.
*
*/
public Optional minCapacity() {
return Optional.ofNullable(this.minCapacity);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RegularPriorityProfileResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String allocationStrategy;
private @Nullable Integer capacity;
private @Nullable Integer minCapacity;
public Builder() {}
public Builder(RegularPriorityProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.allocationStrategy = defaults.allocationStrategy;
this.capacity = defaults.capacity;
this.minCapacity = defaults.minCapacity;
}
@CustomType.Setter
public Builder allocationStrategy(@Nullable String allocationStrategy) {
this.allocationStrategy = allocationStrategy;
return this;
}
@CustomType.Setter
public Builder capacity(@Nullable Integer capacity) {
this.capacity = capacity;
return this;
}
@CustomType.Setter
public Builder minCapacity(@Nullable Integer minCapacity) {
this.minCapacity = minCapacity;
return this;
}
public RegularPriorityProfileResponse build() {
final var _resultValue = new RegularPriorityProfileResponse();
_resultValue.allocationStrategy = allocationStrategy;
_resultValue.capacity = capacity;
_resultValue.minCapacity = minCapacity;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy