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

com.pulumi.azurenative.synapse.IpFirewallRuleArgs 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.synapse;

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 IpFirewallRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final IpFirewallRuleArgs Empty = new IpFirewallRuleArgs();

    /**
     * The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress
     * 
     */
    @Import(name="endIpAddress")
    private @Nullable Output endIpAddress;

    /**
     * @return The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress
     * 
     */
    public Optional> endIpAddress() {
        return Optional.ofNullable(this.endIpAddress);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The IP firewall rule name
     * 
     */
    @Import(name="ruleName")
    private @Nullable Output ruleName;

    /**
     * @return The IP firewall rule name
     * 
     */
    public Optional> ruleName() {
        return Optional.ofNullable(this.ruleName);
    }

    /**
     * The start IP address of the firewall rule. Must be IPv4 format
     * 
     */
    @Import(name="startIpAddress")
    private @Nullable Output startIpAddress;

    /**
     * @return The start IP address of the firewall rule. Must be IPv4 format
     * 
     */
    public Optional> startIpAddress() {
        return Optional.ofNullable(this.startIpAddress);
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private IpFirewallRuleArgs() {}

    private IpFirewallRuleArgs(IpFirewallRuleArgs $) {
        this.endIpAddress = $.endIpAddress;
        this.resourceGroupName = $.resourceGroupName;
        this.ruleName = $.ruleName;
        this.startIpAddress = $.startIpAddress;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private IpFirewallRuleArgs $;

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

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

        /**
         * @param endIpAddress The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress
         * 
         * @return builder
         * 
         */
        public Builder endIpAddress(@Nullable Output endIpAddress) {
            $.endIpAddress = endIpAddress;
            return this;
        }

        /**
         * @param endIpAddress The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress
         * 
         * @return builder
         * 
         */
        public Builder endIpAddress(String endIpAddress) {
            return endIpAddress(Output.of(endIpAddress));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param ruleName The IP firewall rule name
         * 
         * @return builder
         * 
         */
        public Builder ruleName(@Nullable Output ruleName) {
            $.ruleName = ruleName;
            return this;
        }

        /**
         * @param ruleName The IP firewall rule name
         * 
         * @return builder
         * 
         */
        public Builder ruleName(String ruleName) {
            return ruleName(Output.of(ruleName));
        }

        /**
         * @param startIpAddress The start IP address of the firewall rule. Must be IPv4 format
         * 
         * @return builder
         * 
         */
        public Builder startIpAddress(@Nullable Output startIpAddress) {
            $.startIpAddress = startIpAddress;
            return this;
        }

        /**
         * @param startIpAddress The start IP address of the firewall rule. Must be IPv4 format
         * 
         * @return builder
         * 
         */
        public Builder startIpAddress(String startIpAddress) {
            return startIpAddress(Output.of(startIpAddress));
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public IpFirewallRuleArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("IpFirewallRuleArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("IpFirewallRuleArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy