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

com.pulumi.azurenative.eventhub.inputs.NWRuleSetIpRulesArgs 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.eventhub.inputs;

import com.pulumi.azurenative.eventhub.enums.NetworkRuleIPAction;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The response from the List namespace operation.
 * 
 */
public final class NWRuleSetIpRulesArgs extends com.pulumi.resources.ResourceArgs {

    public static final NWRuleSetIpRulesArgs Empty = new NWRuleSetIpRulesArgs();

    /**
     * The IP Filter Action
     * 
     */
    @Import(name="action")
    private @Nullable Output> action;

    /**
     * @return The IP Filter Action
     * 
     */
    public Optional>> action() {
        return Optional.ofNullable(this.action);
    }

    /**
     * IP Mask
     * 
     */
    @Import(name="ipMask")
    private @Nullable Output ipMask;

    /**
     * @return IP Mask
     * 
     */
    public Optional> ipMask() {
        return Optional.ofNullable(this.ipMask);
    }

    private NWRuleSetIpRulesArgs() {}

    private NWRuleSetIpRulesArgs(NWRuleSetIpRulesArgs $) {
        this.action = $.action;
        this.ipMask = $.ipMask;
    }

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

    public static final class Builder {
        private NWRuleSetIpRulesArgs $;

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

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

        /**
         * @param action The IP Filter Action
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output> action) {
            $.action = action;
            return this;
        }

        /**
         * @param action The IP Filter Action
         * 
         * @return builder
         * 
         */
        public Builder action(Either action) {
            return action(Output.of(action));
        }

        /**
         * @param action The IP Filter Action
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Either.ofLeft(action));
        }

        /**
         * @param action The IP Filter Action
         * 
         * @return builder
         * 
         */
        public Builder action(NetworkRuleIPAction action) {
            return action(Either.ofRight(action));
        }

        /**
         * @param ipMask IP Mask
         * 
         * @return builder
         * 
         */
        public Builder ipMask(@Nullable Output ipMask) {
            $.ipMask = ipMask;
            return this;
        }

        /**
         * @param ipMask IP Mask
         * 
         * @return builder
         * 
         */
        public Builder ipMask(String ipMask) {
            return ipMask(Output.of(ipMask));
        }

        public NWRuleSetIpRulesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy