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

com.pulumi.azurenative.securityinsights.AutomationRuleArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.securityinsights;

import com.pulumi.azurenative.securityinsights.inputs.AutomationRuleModifyPropertiesActionArgs;
import com.pulumi.azurenative.securityinsights.inputs.AutomationRuleRunPlaybookActionArgs;
import com.pulumi.azurenative.securityinsights.inputs.AutomationRuleTriggeringLogicArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AutomationRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutomationRuleArgs Empty = new AutomationRuleArgs();

    /**
     * The actions to execute when the automation rule is triggered.
     * 
     */
    @Import(name="actions", required=true)
    private Output>> actions;

    /**
     * @return The actions to execute when the automation rule is triggered.
     * 
     */
    public Output>> actions() {
        return this.actions;
    }

    /**
     * Automation rule ID
     * 
     */
    @Import(name="automationRuleId")
    private @Nullable Output automationRuleId;

    /**
     * @return Automation rule ID
     * 
     */
    public Optional> automationRuleId() {
        return Optional.ofNullable(this.automationRuleId);
    }

    /**
     * The display name of the automation rule.
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return The display name of the automation rule.
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * The order of execution of the automation rule.
     * 
     */
    @Import(name="order", required=true)
    private Output order;

    /**
     * @return The order of execution of the automation rule.
     * 
     */
    public Output order() {
        return this.order;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Describes automation rule triggering logic.
     * 
     */
    @Import(name="triggeringLogic", required=true)
    private Output triggeringLogic;

    /**
     * @return Describes automation rule triggering logic.
     * 
     */
    public Output triggeringLogic() {
        return this.triggeringLogic;
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private AutomationRuleArgs() {}

    private AutomationRuleArgs(AutomationRuleArgs $) {
        this.actions = $.actions;
        this.automationRuleId = $.automationRuleId;
        this.displayName = $.displayName;
        this.order = $.order;
        this.resourceGroupName = $.resourceGroupName;
        this.triggeringLogic = $.triggeringLogic;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private AutomationRuleArgs $;

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

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

        /**
         * @param actions The actions to execute when the automation rule is triggered.
         * 
         * @return builder
         * 
         */
        public Builder actions(Output>> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions The actions to execute when the automation rule is triggered.
         * 
         * @return builder
         * 
         */
        public Builder actions(List> actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions The actions to execute when the automation rule is triggered.
         * 
         * @return builder
         * 
         */
        public Builder actions(Either... actions) {
            return actions(List.of(actions));
        }

        /**
         * @param automationRuleId Automation rule ID
         * 
         * @return builder
         * 
         */
        public Builder automationRuleId(@Nullable Output automationRuleId) {
            $.automationRuleId = automationRuleId;
            return this;
        }

        /**
         * @param automationRuleId Automation rule ID
         * 
         * @return builder
         * 
         */
        public Builder automationRuleId(String automationRuleId) {
            return automationRuleId(Output.of(automationRuleId));
        }

        /**
         * @param displayName The display name of the automation rule.
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName The display name of the automation rule.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param order The order of execution of the automation rule.
         * 
         * @return builder
         * 
         */
        public Builder order(Output order) {
            $.order = order;
            return this;
        }

        /**
         * @param order The order of execution of the automation rule.
         * 
         * @return builder
         * 
         */
        public Builder order(Integer order) {
            return order(Output.of(order));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param triggeringLogic Describes automation rule triggering logic.
         * 
         * @return builder
         * 
         */
        public Builder triggeringLogic(Output triggeringLogic) {
            $.triggeringLogic = triggeringLogic;
            return this;
        }

        /**
         * @param triggeringLogic Describes automation rule triggering logic.
         * 
         * @return builder
         * 
         */
        public Builder triggeringLogic(AutomationRuleTriggeringLogicArgs triggeringLogic) {
            return triggeringLogic(Output.of(triggeringLogic));
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public AutomationRuleArgs build() {
            if ($.actions == null) {
                throw new MissingRequiredPropertyException("AutomationRuleArgs", "actions");
            }
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("AutomationRuleArgs", "displayName");
            }
            if ($.order == null) {
                throw new MissingRequiredPropertyException("AutomationRuleArgs", "order");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AutomationRuleArgs", "resourceGroupName");
            }
            if ($.triggeringLogic == null) {
                throw new MissingRequiredPropertyException("AutomationRuleArgs", "triggeringLogic");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("AutomationRuleArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy