
com.pulumi.azurenative.insights.outputs.MetricAlertActionResponse 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.insights.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MetricAlertActionResponse {
/**
* @return the id of the action group to use.
*
*/
private @Nullable String actionGroupId;
/**
* @return This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
*
*/
private @Nullable Map webHookProperties;
private MetricAlertActionResponse() {}
/**
* @return the id of the action group to use.
*
*/
public Optional actionGroupId() {
return Optional.ofNullable(this.actionGroupId);
}
/**
* @return This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
*
*/
public Map webHookProperties() {
return this.webHookProperties == null ? Map.of() : this.webHookProperties;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MetricAlertActionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String actionGroupId;
private @Nullable Map webHookProperties;
public Builder() {}
public Builder(MetricAlertActionResponse defaults) {
Objects.requireNonNull(defaults);
this.actionGroupId = defaults.actionGroupId;
this.webHookProperties = defaults.webHookProperties;
}
@CustomType.Setter
public Builder actionGroupId(@Nullable String actionGroupId) {
this.actionGroupId = actionGroupId;
return this;
}
@CustomType.Setter
public Builder webHookProperties(@Nullable Map webHookProperties) {
this.webHookProperties = webHookProperties;
return this;
}
public MetricAlertActionResponse build() {
final var _resultValue = new MetricAlertActionResponse();
_resultValue.actionGroupId = actionGroupId;
_resultValue.webHookProperties = webHookProperties;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy