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

com.pulumi.azurenative.servicelinker.inputs.PublicNetworkSolutionArgs 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.servicelinker.inputs;

import com.pulumi.azurenative.servicelinker.enums.ActionType;
import com.pulumi.azurenative.servicelinker.enums.DeleteOrUpdateBehavior;
import com.pulumi.azurenative.servicelinker.inputs.FirewallRulesArgs;
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;


/**
 * Indicates public network solution, include firewall rules
 * 
 */
public final class PublicNetworkSolutionArgs extends com.pulumi.resources.ResourceArgs {

    public static final PublicNetworkSolutionArgs Empty = new PublicNetworkSolutionArgs();

    /**
     * Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.
     * 
     */
    @Import(name="action")
    private @Nullable Output> action;

    /**
     * @return Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.
     * 
     */
    public Optional>> action() {
        return Optional.ofNullable(this.action);
    }

    /**
     * Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting
     * 
     */
    @Import(name="deleteOrUpdateBehavior")
    private @Nullable Output> deleteOrUpdateBehavior;

    /**
     * @return Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting
     * 
     */
    public Optional>> deleteOrUpdateBehavior() {
        return Optional.ofNullable(this.deleteOrUpdateBehavior);
    }

    /**
     * Describe firewall rules of target service to make sure source application could connect to the target.
     * 
     */
    @Import(name="firewallRules")
    private @Nullable Output firewallRules;

    /**
     * @return Describe firewall rules of target service to make sure source application could connect to the target.
     * 
     */
    public Optional> firewallRules() {
        return Optional.ofNullable(this.firewallRules);
    }

    private PublicNetworkSolutionArgs() {}

    private PublicNetworkSolutionArgs(PublicNetworkSolutionArgs $) {
        this.action = $.action;
        this.deleteOrUpdateBehavior = $.deleteOrUpdateBehavior;
        this.firewallRules = $.firewallRules;
    }

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

    public static final class Builder {
        private PublicNetworkSolutionArgs $;

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

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

        /**
         * @param action Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output> action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.
         * 
         * @return builder
         * 
         */
        public Builder action(Either action) {
            return action(Output.of(action));
        }

        /**
         * @param action Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Either.ofLeft(action));
        }

        /**
         * @param action Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.
         * 
         * @return builder
         * 
         */
        public Builder action(ActionType action) {
            return action(Either.ofRight(action));
        }

        /**
         * @param deleteOrUpdateBehavior Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting
         * 
         * @return builder
         * 
         */
        public Builder deleteOrUpdateBehavior(@Nullable Output> deleteOrUpdateBehavior) {
            $.deleteOrUpdateBehavior = deleteOrUpdateBehavior;
            return this;
        }

        /**
         * @param deleteOrUpdateBehavior Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting
         * 
         * @return builder
         * 
         */
        public Builder deleteOrUpdateBehavior(Either deleteOrUpdateBehavior) {
            return deleteOrUpdateBehavior(Output.of(deleteOrUpdateBehavior));
        }

        /**
         * @param deleteOrUpdateBehavior Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting
         * 
         * @return builder
         * 
         */
        public Builder deleteOrUpdateBehavior(String deleteOrUpdateBehavior) {
            return deleteOrUpdateBehavior(Either.ofLeft(deleteOrUpdateBehavior));
        }

        /**
         * @param deleteOrUpdateBehavior Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting
         * 
         * @return builder
         * 
         */
        public Builder deleteOrUpdateBehavior(DeleteOrUpdateBehavior deleteOrUpdateBehavior) {
            return deleteOrUpdateBehavior(Either.ofRight(deleteOrUpdateBehavior));
        }

        /**
         * @param firewallRules Describe firewall rules of target service to make sure source application could connect to the target.
         * 
         * @return builder
         * 
         */
        public Builder firewallRules(@Nullable Output firewallRules) {
            $.firewallRules = firewallRules;
            return this;
        }

        /**
         * @param firewallRules Describe firewall rules of target service to make sure source application could connect to the target.
         * 
         * @return builder
         * 
         */
        public Builder firewallRules(FirewallRulesArgs firewallRules) {
            return firewallRules(Output.of(firewallRules));
        }

        public PublicNetworkSolutionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy