
com.pulumi.azurenative.awsconnector.outputs.CanarySettingResponse 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.awsconnector.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CanarySettingResponse {
/**
* @return The ID of the canary deployment.
*
*/
private @Nullable String deploymentId;
/**
* @return The percent (0-100) of traffic diverted to a canary deployment.
*
*/
private @Nullable Integer percentTraffic;
/**
* @return Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
*
*/
private @Nullable Map stageVariableOverrides;
/**
* @return A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
*
*/
private @Nullable Boolean useStageCache;
private CanarySettingResponse() {}
/**
* @return The ID of the canary deployment.
*
*/
public Optional deploymentId() {
return Optional.ofNullable(this.deploymentId);
}
/**
* @return The percent (0-100) of traffic diverted to a canary deployment.
*
*/
public Optional percentTraffic() {
return Optional.ofNullable(this.percentTraffic);
}
/**
* @return Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
*
*/
public Map stageVariableOverrides() {
return this.stageVariableOverrides == null ? Map.of() : this.stageVariableOverrides;
}
/**
* @return A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
*
*/
public Optional useStageCache() {
return Optional.ofNullable(this.useStageCache);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CanarySettingResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String deploymentId;
private @Nullable Integer percentTraffic;
private @Nullable Map stageVariableOverrides;
private @Nullable Boolean useStageCache;
public Builder() {}
public Builder(CanarySettingResponse defaults) {
Objects.requireNonNull(defaults);
this.deploymentId = defaults.deploymentId;
this.percentTraffic = defaults.percentTraffic;
this.stageVariableOverrides = defaults.stageVariableOverrides;
this.useStageCache = defaults.useStageCache;
}
@CustomType.Setter
public Builder deploymentId(@Nullable String deploymentId) {
this.deploymentId = deploymentId;
return this;
}
@CustomType.Setter
public Builder percentTraffic(@Nullable Integer percentTraffic) {
this.percentTraffic = percentTraffic;
return this;
}
@CustomType.Setter
public Builder stageVariableOverrides(@Nullable Map stageVariableOverrides) {
this.stageVariableOverrides = stageVariableOverrides;
return this;
}
@CustomType.Setter
public Builder useStageCache(@Nullable Boolean useStageCache) {
this.useStageCache = useStageCache;
return this;
}
public CanarySettingResponse build() {
final var _resultValue = new CanarySettingResponse();
_resultValue.deploymentId = deploymentId;
_resultValue.percentTraffic = percentTraffic;
_resultValue.stageVariableOverrides = stageVariableOverrides;
_resultValue.useStageCache = useStageCache;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy