com.pulumi.azure.monitoring.outputs.ActionGroupArmRoleReceiver 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 ActionGroupArmRoleReceiver {
/**
* @return The name of the ARM role receiver.
*
*/
private String name;
/**
* @return The arm role id.
*
*/
private String roleId;
/**
* @return Enables or disables the common alert schema.
*
*/
private @Nullable Boolean useCommonAlertSchema;
private ActionGroupArmRoleReceiver() {}
/**
* @return The name of the ARM role receiver.
*
*/
public String name() {
return this.name;
}
/**
* @return The arm role id.
*
*/
public String roleId() {
return this.roleId;
}
/**
* @return Enables or disables the common alert schema.
*
*/
public Optional useCommonAlertSchema() {
return Optional.ofNullable(this.useCommonAlertSchema);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ActionGroupArmRoleReceiver defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private String roleId;
private @Nullable Boolean useCommonAlertSchema;
public Builder() {}
public Builder(ActionGroupArmRoleReceiver defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.roleId = defaults.roleId;
this.useCommonAlertSchema = defaults.useCommonAlertSchema;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ActionGroupArmRoleReceiver", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder roleId(String roleId) {
if (roleId == null) {
throw new MissingRequiredPropertyException("ActionGroupArmRoleReceiver", "roleId");
}
this.roleId = roleId;
return this;
}
@CustomType.Setter
public Builder useCommonAlertSchema(@Nullable Boolean useCommonAlertSchema) {
this.useCommonAlertSchema = useCommonAlertSchema;
return this;
}
public ActionGroupArmRoleReceiver build() {
final var _resultValue = new ActionGroupArmRoleReceiver();
_resultValue.name = name;
_resultValue.roleId = roleId;
_resultValue.useCommonAlertSchema = useCommonAlertSchema;
return _resultValue;
}
}
}