com.pulumi.googlenative.container.v1.outputs.StandardRolloutPolicyResponse 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.googlenative.container.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class StandardRolloutPolicyResponse {
/**
* @return Number of blue nodes to drain in a batch.
*
*/
private Integer batchNodeCount;
/**
* @return Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].
*
*/
private Double batchPercentage;
/**
* @return Soak time after each batch gets drained. Default to zero.
*
*/
private String batchSoakDuration;
private StandardRolloutPolicyResponse() {}
/**
* @return Number of blue nodes to drain in a batch.
*
*/
public Integer batchNodeCount() {
return this.batchNodeCount;
}
/**
* @return Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].
*
*/
public Double batchPercentage() {
return this.batchPercentage;
}
/**
* @return Soak time after each batch gets drained. Default to zero.
*
*/
public String batchSoakDuration() {
return this.batchSoakDuration;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StandardRolloutPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer batchNodeCount;
private Double batchPercentage;
private String batchSoakDuration;
public Builder() {}
public Builder(StandardRolloutPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.batchNodeCount = defaults.batchNodeCount;
this.batchPercentage = defaults.batchPercentage;
this.batchSoakDuration = defaults.batchSoakDuration;
}
@CustomType.Setter
public Builder batchNodeCount(Integer batchNodeCount) {
this.batchNodeCount = Objects.requireNonNull(batchNodeCount);
return this;
}
@CustomType.Setter
public Builder batchPercentage(Double batchPercentage) {
this.batchPercentage = Objects.requireNonNull(batchPercentage);
return this;
}
@CustomType.Setter
public Builder batchSoakDuration(String batchSoakDuration) {
this.batchSoakDuration = Objects.requireNonNull(batchSoakDuration);
return this;
}
public StandardRolloutPolicyResponse build() {
final var o = new StandardRolloutPolicyResponse();
o.batchNodeCount = batchNodeCount;
o.batchPercentage = batchPercentage;
o.batchSoakDuration = batchSoakDuration;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy