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

com.pulumi.azurenative.servicelinker.inputs.FirewallRulesArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.servicelinker.enums.AllowType;
import com.pulumi.core.Either;
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;


/**
 * Target service's firewall rules. to allow connections from source service.
 * 
 */
public final class FirewallRulesArgs extends com.pulumi.resources.ResourceArgs {

    public static final FirewallRulesArgs Empty = new FirewallRulesArgs();

    /**
     * Allow Azure services to access the target service if true.
     * 
     */
    @Import(name="azureServices")
    private @Nullable Output> azureServices;

    /**
     * @return Allow Azure services to access the target service if true.
     * 
     */
    public Optional>> azureServices() {
        return Optional.ofNullable(this.azureServices);
    }

    /**
     * Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.
     * 
     */
    @Import(name="callerClientIP")
    private @Nullable Output> callerClientIP;

    /**
     * @return Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.
     * 
     */
    public Optional>> callerClientIP() {
        return Optional.ofNullable(this.callerClientIP);
    }

    /**
     * This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.
     * 
     */
    @Import(name="ipRanges")
    private @Nullable Output> ipRanges;

    /**
     * @return This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.
     * 
     */
    public Optional>> ipRanges() {
        return Optional.ofNullable(this.ipRanges);
    }

    private FirewallRulesArgs() {}

    private FirewallRulesArgs(FirewallRulesArgs $) {
        this.azureServices = $.azureServices;
        this.callerClientIP = $.callerClientIP;
        this.ipRanges = $.ipRanges;
    }

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

    public static final class Builder {
        private FirewallRulesArgs $;

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

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

        /**
         * @param azureServices Allow Azure services to access the target service if true.
         * 
         * @return builder
         * 
         */
        public Builder azureServices(@Nullable Output> azureServices) {
            $.azureServices = azureServices;
            return this;
        }

        /**
         * @param azureServices Allow Azure services to access the target service if true.
         * 
         * @return builder
         * 
         */
        public Builder azureServices(Either azureServices) {
            return azureServices(Output.of(azureServices));
        }

        /**
         * @param azureServices Allow Azure services to access the target service if true.
         * 
         * @return builder
         * 
         */
        public Builder azureServices(String azureServices) {
            return azureServices(Either.ofLeft(azureServices));
        }

        /**
         * @param azureServices Allow Azure services to access the target service if true.
         * 
         * @return builder
         * 
         */
        public Builder azureServices(AllowType azureServices) {
            return azureServices(Either.ofRight(azureServices));
        }

        /**
         * @param callerClientIP Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.
         * 
         * @return builder
         * 
         */
        public Builder callerClientIP(@Nullable Output> callerClientIP) {
            $.callerClientIP = callerClientIP;
            return this;
        }

        /**
         * @param callerClientIP Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.
         * 
         * @return builder
         * 
         */
        public Builder callerClientIP(Either callerClientIP) {
            return callerClientIP(Output.of(callerClientIP));
        }

        /**
         * @param callerClientIP Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.
         * 
         * @return builder
         * 
         */
        public Builder callerClientIP(String callerClientIP) {
            return callerClientIP(Either.ofLeft(callerClientIP));
        }

        /**
         * @param callerClientIP Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.
         * 
         * @return builder
         * 
         */
        public Builder callerClientIP(AllowType callerClientIP) {
            return callerClientIP(Either.ofRight(callerClientIP));
        }

        /**
         * @param ipRanges This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.
         * 
         * @return builder
         * 
         */
        public Builder ipRanges(@Nullable Output> ipRanges) {
            $.ipRanges = ipRanges;
            return this;
        }

        /**
         * @param ipRanges This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.
         * 
         * @return builder
         * 
         */
        public Builder ipRanges(List ipRanges) {
            return ipRanges(Output.of(ipRanges));
        }

        /**
         * @param ipRanges This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.
         * 
         * @return builder
         * 
         */
        public Builder ipRanges(String... ipRanges) {
            return ipRanges(List.of(ipRanges));
        }

        public FirewallRulesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy