com.pulumi.azurenative.web.outputs.AutoHealRulesResponse 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.web.outputs;
import com.pulumi.azurenative.web.outputs.AutoHealActionsResponse;
import com.pulumi.azurenative.web.outputs.AutoHealTriggersResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AutoHealRulesResponse {
/**
* @return Actions to be executed when a rule is triggered.
*
*/
private @Nullable AutoHealActionsResponse actions;
/**
* @return Conditions that describe when to execute the auto-heal actions.
*
*/
private @Nullable AutoHealTriggersResponse triggers;
private AutoHealRulesResponse() {}
/**
* @return Actions to be executed when a rule is triggered.
*
*/
public Optional actions() {
return Optional.ofNullable(this.actions);
}
/**
* @return Conditions that describe when to execute the auto-heal actions.
*
*/
public Optional triggers() {
return Optional.ofNullable(this.triggers);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoHealRulesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AutoHealActionsResponse actions;
private @Nullable AutoHealTriggersResponse triggers;
public Builder() {}
public Builder(AutoHealRulesResponse defaults) {
Objects.requireNonNull(defaults);
this.actions = defaults.actions;
this.triggers = defaults.triggers;
}
@CustomType.Setter
public Builder actions(@Nullable AutoHealActionsResponse actions) {
this.actions = actions;
return this;
}
@CustomType.Setter
public Builder triggers(@Nullable AutoHealTriggersResponse triggers) {
this.triggers = triggers;
return this;
}
public AutoHealRulesResponse build() {
final var _resultValue = new AutoHealRulesResponse();
_resultValue.actions = actions;
_resultValue.triggers = triggers;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy