com.pulumi.googlenative.clouddeploy.v1.outputs.CanaryDeploymentResponse 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.clouddeploy.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
@CustomType
public final class CanaryDeploymentResponse {
/**
* @return The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100.
*
*/
private List percentages;
/**
* @return Whether to run verify tests after each percentage deployment.
*
*/
private Boolean verify;
private CanaryDeploymentResponse() {}
/**
* @return The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100.
*
*/
public List percentages() {
return this.percentages;
}
/**
* @return Whether to run verify tests after each percentage deployment.
*
*/
public Boolean verify() {
return this.verify;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CanaryDeploymentResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List percentages;
private Boolean verify;
public Builder() {}
public Builder(CanaryDeploymentResponse defaults) {
Objects.requireNonNull(defaults);
this.percentages = defaults.percentages;
this.verify = defaults.verify;
}
@CustomType.Setter
public Builder percentages(List percentages) {
this.percentages = Objects.requireNonNull(percentages);
return this;
}
public Builder percentages(Integer... percentages) {
return percentages(List.of(percentages));
}
@CustomType.Setter
public Builder verify(Boolean verify) {
this.verify = Objects.requireNonNull(verify);
return this;
}
public CanaryDeploymentResponse build() {
final var o = new CanaryDeploymentResponse();
o.percentages = percentages;
o.verify = verify;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy