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

com.pulumi.azurenative.awsconnector.inputs.RuleDefinitionArgs 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.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.MatchAttributesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of RuleDefinition
 * 
 */
public final class RuleDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final RuleDefinitionArgs Empty = new RuleDefinitionArgs();

    /**
     * Property actions
     * 
     */
    @Import(name="actions")
    private @Nullable Output> actions;

    /**
     * @return Property actions
     * 
     */
    public Optional>> actions() {
        return Optional.ofNullable(this.actions);
    }

    /**
     * Property matchAttributes
     * 
     */
    @Import(name="matchAttributes")
    private @Nullable Output matchAttributes;

    /**
     * @return Property matchAttributes
     * 
     */
    public Optional> matchAttributes() {
        return Optional.ofNullable(this.matchAttributes);
    }

    private RuleDefinitionArgs() {}

    private RuleDefinitionArgs(RuleDefinitionArgs $) {
        this.actions = $.actions;
        this.matchAttributes = $.matchAttributes;
    }

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

    public static final class Builder {
        private RuleDefinitionArgs $;

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

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

        /**
         * @param actions Property actions
         * 
         * @return builder
         * 
         */
        public Builder actions(@Nullable Output> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions Property actions
         * 
         * @return builder
         * 
         */
        public Builder actions(List actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions Property actions
         * 
         * @return builder
         * 
         */
        public Builder actions(String... actions) {
            return actions(List.of(actions));
        }

        /**
         * @param matchAttributes Property matchAttributes
         * 
         * @return builder
         * 
         */
        public Builder matchAttributes(@Nullable Output matchAttributes) {
            $.matchAttributes = matchAttributes;
            return this;
        }

        /**
         * @param matchAttributes Property matchAttributes
         * 
         * @return builder
         * 
         */
        public Builder matchAttributes(MatchAttributesArgs matchAttributes) {
            return matchAttributes(Output.of(matchAttributes));
        }

        public RuleDefinitionArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy