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

com.pulumi.azure.eventgrid.inputs.TopicInboundIpRuleArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.eventgrid.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;


public final class TopicInboundIpRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final TopicInboundIpRuleArgs Empty = new TopicInboundIpRuleArgs();

    /**
     * The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
     * 
     */
    @Import(name="action")
    private @Nullable Output action;

    /**
     * @return The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
     * 
     */
    public Optional> action() {
        return Optional.ofNullable(this.action);
    }

    /**
     * The IP mask (CIDR) to match on.
     * 
     */
    @Import(name="ipMask", required=true)
    private Output ipMask;

    /**
     * @return The IP mask (CIDR) to match on.
     * 
     */
    public Output ipMask() {
        return this.ipMask;
    }

    private TopicInboundIpRuleArgs() {}

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

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

    public static final class Builder {
        private TopicInboundIpRuleArgs $;

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

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

        /**
         * @param action The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        /**
         * @param ipMask The IP mask (CIDR) to match on.
         * 
         * @return builder
         * 
         */
        public Builder ipMask(Output ipMask) {
            $.ipMask = ipMask;
            return this;
        }

        /**
         * @param ipMask The IP mask (CIDR) to match on.
         * 
         * @return builder
         * 
         */
        public Builder ipMask(String ipMask) {
            return ipMask(Output.of(ipMask));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy