
com.pulumi.azurenative.containerservice.outputs.AgentPoolUpgradeSettingsResponse 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.containerservice.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AgentPoolUpgradeSettingsResponse {
/**
* @return This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is 1. For more information, including best practices, see: https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade
*
*/
private @Nullable String maxSurge;
private AgentPoolUpgradeSettingsResponse() {}
/**
* @return This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is 1. For more information, including best practices, see: https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade
*
*/
public Optional maxSurge() {
return Optional.ofNullable(this.maxSurge);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AgentPoolUpgradeSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String maxSurge;
public Builder() {}
public Builder(AgentPoolUpgradeSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.maxSurge = defaults.maxSurge;
}
@CustomType.Setter
public Builder maxSurge(@Nullable String maxSurge) {
this.maxSurge = maxSurge;
return this;
}
public AgentPoolUpgradeSettingsResponse build() {
final var _resultValue = new AgentPoolUpgradeSettingsResponse();
_resultValue.maxSurge = maxSurge;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy