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

com.pulumi.azurenative.networkanalytics.inputs.IPRulesArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.networkanalytics.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * IP rule with specific IP or IP range in CIDR format.
 * 
 */
public final class IPRulesArgs extends com.pulumi.resources.ResourceArgs {

    public static final IPRulesArgs Empty = new IPRulesArgs();

    /**
     * The action of virtual network rule.
     * 
     */
    @Import(name="action", required=true)
    private Output action;

    /**
     * @return The action of virtual network rule.
     * 
     */
    public Output action() {
        return this.action;
    }

    /**
     * IP Rules Value
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return IP Rules Value
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private IPRulesArgs() {}

    private IPRulesArgs(IPRulesArgs $) {
        this.action = $.action;
        this.value = $.value;
    }

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

    public static final class Builder {
        private IPRulesArgs $;

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

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

        /**
         * @param action The action of virtual network rule.
         * 
         * @return builder
         * 
         */
        public Builder action(Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action The action of virtual network rule.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

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

        /**
         * @param value IP Rules Value
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public IPRulesArgs build() {
            if ($.action == null) {
                throw new MissingRequiredPropertyException("IPRulesArgs", "action");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy