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

com.pulumi.azurenative.securityinsights.inputs.AutomationRuleRunPlaybookActionArgs Maven / Gradle / Ivy

The 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.inputs;

import com.pulumi.azurenative.securityinsights.inputs.PlaybookActionPropertiesArgs;
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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes an automation rule action to run a playbook
 * 
 */
public final class AutomationRuleRunPlaybookActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutomationRuleRunPlaybookActionArgs Empty = new AutomationRuleRunPlaybookActionArgs();

    @Import(name="actionConfiguration")
    private @Nullable Output actionConfiguration;

    public Optional> actionConfiguration() {
        return Optional.ofNullable(this.actionConfiguration);
    }

    /**
     * The type of the automation rule action.
     * Expected value is 'RunPlaybook'.
     * 
     */
    @Import(name="actionType", required=true)
    private Output actionType;

    /**
     * @return The type of the automation rule action.
     * Expected value is 'RunPlaybook'.
     * 
     */
    public Output actionType() {
        return this.actionType;
    }

    @Import(name="order", required=true)
    private Output order;

    public Output order() {
        return this.order;
    }

    private AutomationRuleRunPlaybookActionArgs() {}

    private AutomationRuleRunPlaybookActionArgs(AutomationRuleRunPlaybookActionArgs $) {
        this.actionConfiguration = $.actionConfiguration;
        this.actionType = $.actionType;
        this.order = $.order;
    }

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

    public static final class Builder {
        private AutomationRuleRunPlaybookActionArgs $;

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

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

        public Builder actionConfiguration(@Nullable Output actionConfiguration) {
            $.actionConfiguration = actionConfiguration;
            return this;
        }

        public Builder actionConfiguration(PlaybookActionPropertiesArgs actionConfiguration) {
            return actionConfiguration(Output.of(actionConfiguration));
        }

        /**
         * @param actionType The type of the automation rule action.
         * Expected value is 'RunPlaybook'.
         * 
         * @return builder
         * 
         */
        public Builder actionType(Output actionType) {
            $.actionType = actionType;
            return this;
        }

        /**
         * @param actionType The type of the automation rule action.
         * Expected value is 'RunPlaybook'.
         * 
         * @return builder
         * 
         */
        public Builder actionType(String actionType) {
            return actionType(Output.of(actionType));
        }

        public Builder order(Output order) {
            $.order = order;
            return this;
        }

        public Builder order(Integer order) {
            return order(Output.of(order));
        }

        public AutomationRuleRunPlaybookActionArgs build() {
            $.actionType = Codegen.stringProp("actionType").output().arg($.actionType).require();
            if ($.order == null) {
                throw new MissingRequiredPropertyException("AutomationRuleRunPlaybookActionArgs", "order");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy