
com.pulumi.azurenative.awsconnector.outputs.DeploymentAlarmsResponse 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.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DeploymentAlarmsResponse {
/**
* @return One or more CloudWatch alarm names. Use a ',' to separate the alarms.
*
*/
private @Nullable List alarmNames;
/**
* @return Determines whether to use the CloudWatch alarm option in the service deployment process.
*
*/
private @Nullable Boolean enable;
/**
* @return Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
*
*/
private @Nullable Boolean rollback;
private DeploymentAlarmsResponse() {}
/**
* @return One or more CloudWatch alarm names. Use a ',' to separate the alarms.
*
*/
public List alarmNames() {
return this.alarmNames == null ? List.of() : this.alarmNames;
}
/**
* @return Determines whether to use the CloudWatch alarm option in the service deployment process.
*
*/
public Optional enable() {
return Optional.ofNullable(this.enable);
}
/**
* @return Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
*
*/
public Optional rollback() {
return Optional.ofNullable(this.rollback);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DeploymentAlarmsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List alarmNames;
private @Nullable Boolean enable;
private @Nullable Boolean rollback;
public Builder() {}
public Builder(DeploymentAlarmsResponse defaults) {
Objects.requireNonNull(defaults);
this.alarmNames = defaults.alarmNames;
this.enable = defaults.enable;
this.rollback = defaults.rollback;
}
@CustomType.Setter
public Builder alarmNames(@Nullable List alarmNames) {
this.alarmNames = alarmNames;
return this;
}
public Builder alarmNames(String... alarmNames) {
return alarmNames(List.of(alarmNames));
}
@CustomType.Setter
public Builder enable(@Nullable Boolean enable) {
this.enable = enable;
return this;
}
@CustomType.Setter
public Builder rollback(@Nullable Boolean rollback) {
this.rollback = rollback;
return this;
}
public DeploymentAlarmsResponse build() {
final var _resultValue = new DeploymentAlarmsResponse();
_resultValue.alarmNames = alarmNames;
_resultValue.enable = enable;
_resultValue.rollback = rollback;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy