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

com.pulumi.azurenative.securityinsights.outputs.AutomationRuleRunPlaybookActionResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.securityinsights.outputs.PlaybookActionPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class AutomationRuleRunPlaybookActionResponse {
    private @Nullable PlaybookActionPropertiesResponse actionConfiguration;
    /**
     * @return The type of the automation rule action.
     * Expected value is 'RunPlaybook'.
     * 
     */
    private String actionType;
    private Integer order;

    private AutomationRuleRunPlaybookActionResponse() {}
    public Optional actionConfiguration() {
        return Optional.ofNullable(this.actionConfiguration);
    }
    /**
     * @return The type of the automation rule action.
     * Expected value is 'RunPlaybook'.
     * 
     */
    public String actionType() {
        return this.actionType;
    }
    public Integer order() {
        return this.order;
    }

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

    public static Builder builder(AutomationRuleRunPlaybookActionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable PlaybookActionPropertiesResponse actionConfiguration;
        private String actionType;
        private Integer order;
        public Builder() {}
        public Builder(AutomationRuleRunPlaybookActionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actionConfiguration = defaults.actionConfiguration;
    	      this.actionType = defaults.actionType;
    	      this.order = defaults.order;
        }

        @CustomType.Setter
        public Builder actionConfiguration(@Nullable PlaybookActionPropertiesResponse actionConfiguration) {

            this.actionConfiguration = actionConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder actionType(String actionType) {
            if (actionType == null) {
              throw new MissingRequiredPropertyException("AutomationRuleRunPlaybookActionResponse", "actionType");
            }
            this.actionType = actionType;
            return this;
        }
        @CustomType.Setter
        public Builder order(Integer order) {
            if (order == null) {
              throw new MissingRequiredPropertyException("AutomationRuleRunPlaybookActionResponse", "order");
            }
            this.order = order;
            return this;
        }
        public AutomationRuleRunPlaybookActionResponse build() {
            final var _resultValue = new AutomationRuleRunPlaybookActionResponse();
            _resultValue.actionConfiguration = actionConfiguration;
            _resultValue.actionType = actionType;
            _resultValue.order = order;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy