
com.pulumi.azurenative.insights.outputs.RuleWebhookActionResponse 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.azurenative.insights.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RuleWebhookActionResponse {
/**
* @return specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction.
* Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction'.
*
*/
private String odataType;
/**
* @return the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
*
*/
private @Nullable Map properties;
/**
* @return the service uri to Post the notification when the alert activates or resolves.
*
*/
private @Nullable String serviceUri;
private RuleWebhookActionResponse() {}
/**
* @return specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction.
* Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction'.
*
*/
public String odataType() {
return this.odataType;
}
/**
* @return the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
*
*/
public Map properties() {
return this.properties == null ? Map.of() : this.properties;
}
/**
* @return the service uri to Post the notification when the alert activates or resolves.
*
*/
public Optional serviceUri() {
return Optional.ofNullable(this.serviceUri);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RuleWebhookActionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String odataType;
private @Nullable Map properties;
private @Nullable String serviceUri;
public Builder() {}
public Builder(RuleWebhookActionResponse defaults) {
Objects.requireNonNull(defaults);
this.odataType = defaults.odataType;
this.properties = defaults.properties;
this.serviceUri = defaults.serviceUri;
}
@CustomType.Setter
public Builder odataType(String odataType) {
if (odataType == null) {
throw new MissingRequiredPropertyException("RuleWebhookActionResponse", "odataType");
}
this.odataType = odataType;
return this;
}
@CustomType.Setter
public Builder properties(@Nullable Map properties) {
this.properties = properties;
return this;
}
@CustomType.Setter
public Builder serviceUri(@Nullable String serviceUri) {
this.serviceUri = serviceUri;
return this;
}
public RuleWebhookActionResponse build() {
final var _resultValue = new RuleWebhookActionResponse();
_resultValue.odataType = odataType;
_resultValue.properties = properties;
_resultValue.serviceUri = serviceUri;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy