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

com.pulumi.azurenative.securityinsights.inputs.AutomationRuleModifyPropertiesActionArgs 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.azurenative.securityinsights.inputs;

import com.pulumi.azurenative.securityinsights.inputs.IncidentPropertiesActionArgs;
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 modify an object's properties
 * 
 */
public final class AutomationRuleModifyPropertiesActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutomationRuleModifyPropertiesActionArgs Empty = new AutomationRuleModifyPropertiesActionArgs();

    @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 'ModifyProperties'.
     * 
     */
    @Import(name="actionType", required=true)
    private Output actionType;

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

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

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

    private AutomationRuleModifyPropertiesActionArgs() {}

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

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

    public static final class Builder {
        private AutomationRuleModifyPropertiesActionArgs $;

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

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

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

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

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

        /**
         * @param actionType The type of the automation rule action.
         * Expected value is 'ModifyProperties'.
         * 
         * @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 AutomationRuleModifyPropertiesActionArgs build() {
            $.actionType = Codegen.stringProp("actionType").output().arg($.actionType).require();
            if ($.order == null) {
                throw new MissingRequiredPropertyException("AutomationRuleModifyPropertiesActionArgs", "order");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy