![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.monitoring.outputs.ActionGroupAutomationRunbookReceiver 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.azure.monitoring.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ActionGroupAutomationRunbookReceiver {
/**
* @return The automation account ID which holds this runbook and authenticates to Azure resources.
*
*/
private String automationAccountId;
/**
* @return Indicates whether this instance is global runbook.
*
*/
private Boolean isGlobalRunbook;
/**
* @return The name of the automation runbook receiver.
*
*/
private String name;
/**
* @return The name for this runbook.
*
*/
private String runbookName;
/**
* @return The URI where webhooks should be sent.
*
*/
private String serviceUri;
/**
* @return Enables or disables the common alert schema.
*
*/
private @Nullable Boolean useCommonAlertSchema;
/**
* @return The resource id for webhook linked to this runbook.
*
*/
private String webhookResourceId;
private ActionGroupAutomationRunbookReceiver() {}
/**
* @return The automation account ID which holds this runbook and authenticates to Azure resources.
*
*/
public String automationAccountId() {
return this.automationAccountId;
}
/**
* @return Indicates whether this instance is global runbook.
*
*/
public Boolean isGlobalRunbook() {
return this.isGlobalRunbook;
}
/**
* @return The name of the automation runbook receiver.
*
*/
public String name() {
return this.name;
}
/**
* @return The name for this runbook.
*
*/
public String runbookName() {
return this.runbookName;
}
/**
* @return The URI where webhooks should be sent.
*
*/
public String serviceUri() {
return this.serviceUri;
}
/**
* @return Enables or disables the common alert schema.
*
*/
public Optional useCommonAlertSchema() {
return Optional.ofNullable(this.useCommonAlertSchema);
}
/**
* @return The resource id for webhook linked to this runbook.
*
*/
public String webhookResourceId() {
return this.webhookResourceId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ActionGroupAutomationRunbookReceiver defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String automationAccountId;
private Boolean isGlobalRunbook;
private String name;
private String runbookName;
private String serviceUri;
private @Nullable Boolean useCommonAlertSchema;
private String webhookResourceId;
public Builder() {}
public Builder(ActionGroupAutomationRunbookReceiver defaults) {
Objects.requireNonNull(defaults);
this.automationAccountId = defaults.automationAccountId;
this.isGlobalRunbook = defaults.isGlobalRunbook;
this.name = defaults.name;
this.runbookName = defaults.runbookName;
this.serviceUri = defaults.serviceUri;
this.useCommonAlertSchema = defaults.useCommonAlertSchema;
this.webhookResourceId = defaults.webhookResourceId;
}
@CustomType.Setter
public Builder automationAccountId(String automationAccountId) {
if (automationAccountId == null) {
throw new MissingRequiredPropertyException("ActionGroupAutomationRunbookReceiver", "automationAccountId");
}
this.automationAccountId = automationAccountId;
return this;
}
@CustomType.Setter
public Builder isGlobalRunbook(Boolean isGlobalRunbook) {
if (isGlobalRunbook == null) {
throw new MissingRequiredPropertyException("ActionGroupAutomationRunbookReceiver", "isGlobalRunbook");
}
this.isGlobalRunbook = isGlobalRunbook;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ActionGroupAutomationRunbookReceiver", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder runbookName(String runbookName) {
if (runbookName == null) {
throw new MissingRequiredPropertyException("ActionGroupAutomationRunbookReceiver", "runbookName");
}
this.runbookName = runbookName;
return this;
}
@CustomType.Setter
public Builder serviceUri(String serviceUri) {
if (serviceUri == null) {
throw new MissingRequiredPropertyException("ActionGroupAutomationRunbookReceiver", "serviceUri");
}
this.serviceUri = serviceUri;
return this;
}
@CustomType.Setter
public Builder useCommonAlertSchema(@Nullable Boolean useCommonAlertSchema) {
this.useCommonAlertSchema = useCommonAlertSchema;
return this;
}
@CustomType.Setter
public Builder webhookResourceId(String webhookResourceId) {
if (webhookResourceId == null) {
throw new MissingRequiredPropertyException("ActionGroupAutomationRunbookReceiver", "webhookResourceId");
}
this.webhookResourceId = webhookResourceId;
return this;
}
public ActionGroupAutomationRunbookReceiver build() {
final var _resultValue = new ActionGroupAutomationRunbookReceiver();
_resultValue.automationAccountId = automationAccountId;
_resultValue.isGlobalRunbook = isGlobalRunbook;
_resultValue.name = name;
_resultValue.runbookName = runbookName;
_resultValue.serviceUri = serviceUri;
_resultValue.useCommonAlertSchema = useCommonAlertSchema;
_resultValue.webhookResourceId = webhookResourceId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy