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

com.pulumi.aws.securityhub.outputs.AutomationRuleAction 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.aws.securityhub.outputs;

import com.pulumi.aws.securityhub.outputs.AutomationRuleActionFindingFieldsUpdate;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AutomationRuleAction {
    /**
     * @return A block that specifies that the automation rule action is an update to a finding field.  Documented below.
     * 
     */
    private @Nullable AutomationRuleActionFindingFieldsUpdate findingFieldsUpdate;
    /**
     * @return Specifies that the rule action should update the `Types` finding field. The `Types` finding field classifies findings in the format of namespace/category/classifier.
     * 
     */
    private @Nullable String type;

    private AutomationRuleAction() {}
    /**
     * @return A block that specifies that the automation rule action is an update to a finding field.  Documented below.
     * 
     */
    public Optional findingFieldsUpdate() {
        return Optional.ofNullable(this.findingFieldsUpdate);
    }
    /**
     * @return Specifies that the rule action should update the `Types` finding field. The `Types` finding field classifies findings in the format of namespace/category/classifier.
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

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

    public static Builder builder(AutomationRuleAction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AutomationRuleActionFindingFieldsUpdate findingFieldsUpdate;
        private @Nullable String type;
        public Builder() {}
        public Builder(AutomationRuleAction defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.findingFieldsUpdate = defaults.findingFieldsUpdate;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder findingFieldsUpdate(@Nullable AutomationRuleActionFindingFieldsUpdate findingFieldsUpdate) {

            this.findingFieldsUpdate = findingFieldsUpdate;
            return this;
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {

            this.type = type;
            return this;
        }
        public AutomationRuleAction build() {
            final var _resultValue = new AutomationRuleAction();
            _resultValue.findingFieldsUpdate = findingFieldsUpdate;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy