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

com.pulumi.azurenative.network.NetworkSecurityGroupArgs 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.network;

import com.pulumi.azurenative.network.inputs.SecurityRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NetworkSecurityGroupArgs Empty = new NetworkSecurityGroupArgs();

    /**
     * When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation.
     * 
     */
    @Import(name="flushConnection")
    private @Nullable Output flushConnection;

    /**
     * @return When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation.
     * 
     */
    public Optional> flushConnection() {
        return Optional.ofNullable(this.flushConnection);
    }

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the network security group.
     * 
     */
    @Import(name="networkSecurityGroupName")
    private @Nullable Output networkSecurityGroupName;

    /**
     * @return The name of the network security group.
     * 
     */
    public Optional> networkSecurityGroupName() {
        return Optional.ofNullable(this.networkSecurityGroupName);
    }

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

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

    /**
     * A collection of security rules of the network security group.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    @Import(name="securityRules")
    private @Nullable Output> securityRules;

    /**
     * @return A collection of security rules of the network security group.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    public Optional>> securityRules() {
        return Optional.ofNullable(this.securityRules);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private NetworkSecurityGroupArgs() {}

    private NetworkSecurityGroupArgs(NetworkSecurityGroupArgs $) {
        this.flushConnection = $.flushConnection;
        this.id = $.id;
        this.location = $.location;
        this.networkSecurityGroupName = $.networkSecurityGroupName;
        this.resourceGroupName = $.resourceGroupName;
        this.securityRules = $.securityRules;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private NetworkSecurityGroupArgs $;

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

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

        /**
         * @param flushConnection When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation.
         * 
         * @return builder
         * 
         */
        public Builder flushConnection(@Nullable Output flushConnection) {
            $.flushConnection = flushConnection;
            return this;
        }

        /**
         * @param flushConnection When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation.
         * 
         * @return builder
         * 
         */
        public Builder flushConnection(Boolean flushConnection) {
            return flushConnection(Output.of(flushConnection));
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param networkSecurityGroupName The name of the network security group.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroupName(@Nullable Output networkSecurityGroupName) {
            $.networkSecurityGroupName = networkSecurityGroupName;
            return this;
        }

        /**
         * @param networkSecurityGroupName The name of the network security group.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroupName(String networkSecurityGroupName) {
            return networkSecurityGroupName(Output.of(networkSecurityGroupName));
        }

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

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

        /**
         * @param securityRules A collection of security rules of the network security group.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder securityRules(@Nullable Output> securityRules) {
            $.securityRules = securityRules;
            return this;
        }

        /**
         * @param securityRules A collection of security rules of the network security group.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder securityRules(List securityRules) {
            return securityRules(Output.of(securityRules));
        }

        /**
         * @param securityRules A collection of security rules of the network security group.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder securityRules(SecurityRuleArgs... securityRules) {
            return securityRules(List.of(securityRules));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy