All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.insights.inputs.ArmRoleReceiverArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
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;


/**
 * An arm role receiver.
 * 
 */
public final class ArmRoleReceiverArgs extends com.pulumi.resources.ResourceArgs {

    public static final ArmRoleReceiverArgs Empty = new ArmRoleReceiverArgs();

    /**
     * The name of the arm role receiver. Names must be unique across all receivers within an action group.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the arm role receiver. Names must be unique across all receivers within an action group.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The arm role id.
     * 
     */
    @Import(name="roleId", required=true)
    private Output roleId;

    /**
     * @return The arm role id.
     * 
     */
    public Output roleId() {
        return this.roleId;
    }

    /**
     * Indicates whether to use common alert schema.
     * 
     */
    @Import(name="useCommonAlertSchema")
    private @Nullable Output useCommonAlertSchema;

    /**
     * @return Indicates whether to use common alert schema.
     * 
     */
    public Optional> useCommonAlertSchema() {
        return Optional.ofNullable(this.useCommonAlertSchema);
    }

    private ArmRoleReceiverArgs() {}

    private ArmRoleReceiverArgs(ArmRoleReceiverArgs $) {
        this.name = $.name;
        this.roleId = $.roleId;
        this.useCommonAlertSchema = $.useCommonAlertSchema;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ArmRoleReceiverArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ArmRoleReceiverArgs $;

        public Builder() {
            $ = new ArmRoleReceiverArgs();
        }

        public Builder(ArmRoleReceiverArgs defaults) {
            $ = new ArmRoleReceiverArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param name The name of the arm role receiver. Names must be unique across all receivers within an action group.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the arm role receiver. Names must be unique across all receivers within an action group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param roleId The arm role id.
         * 
         * @return builder
         * 
         */
        public Builder roleId(Output roleId) {
            $.roleId = roleId;
            return this;
        }

        /**
         * @param roleId The arm role id.
         * 
         * @return builder
         * 
         */
        public Builder roleId(String roleId) {
            return roleId(Output.of(roleId));
        }

        /**
         * @param useCommonAlertSchema Indicates whether to use common alert schema.
         * 
         * @return builder
         * 
         */
        public Builder useCommonAlertSchema(@Nullable Output useCommonAlertSchema) {
            $.useCommonAlertSchema = useCommonAlertSchema;
            return this;
        }

        /**
         * @param useCommonAlertSchema Indicates whether to use common alert schema.
         * 
         * @return builder
         * 
         */
        public Builder useCommonAlertSchema(Boolean useCommonAlertSchema) {
            return useCommonAlertSchema(Output.of(useCommonAlertSchema));
        }

        public ArmRoleReceiverArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ArmRoleReceiverArgs", "name");
            }
            if ($.roleId == null) {
                throw new MissingRequiredPropertyException("ArmRoleReceiverArgs", "roleId");
            }
            $.useCommonAlertSchema = Codegen.booleanProp("useCommonAlertSchema").output().arg($.useCommonAlertSchema).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy