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

com.pulumi.azurenative.network.inputs.NetworkSecurityGroupArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.network.inputs.SecurityRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


/**
 * NetworkSecurityGroup resource.
 * 
 */
public final class NetworkSecurityGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkSecurityGroupArgs Empty = new NetworkSecurityGroupArgs();

    /**
     * The default security rules of network security group.
     * 
     */
    @Import(name="defaultSecurityRules")
    private @Nullable Output> defaultSecurityRules;

    /**
     * @return The default security rules of network security group.
     * 
     */
    public Optional>> defaultSecurityRules() {
        return Optional.ofNullable(this.defaultSecurityRules);
    }

    /**
     * A unique read-only string that changes whenever the resource is updated.
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

    /**
     * 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 provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
     * 
     */
    @Import(name="provisioningState")
    private @Nullable Output provisioningState;

    /**
     * @return The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
     * 
     */
    public Optional> provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }

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

    /**
     * @return The resource GUID property of the network security group resource.
     * 
     */
    public Optional> resourceGuid() {
        return Optional.ofNullable(this.resourceGuid);
    }

    /**
     * A collection of security rules of the network security group.
     * 
     */
    @Import(name="securityRules")
    private @Nullable Output> securityRules;

    /**
     * @return A collection of security rules of the network security group.
     * 
     */
    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.defaultSecurityRules = $.defaultSecurityRules;
        this.etag = $.etag;
        this.flushConnection = $.flushConnection;
        this.id = $.id;
        this.location = $.location;
        this.provisioningState = $.provisioningState;
        this.resourceGuid = $.resourceGuid;
        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 defaultSecurityRules The default security rules of network security group.
         * 
         * @return builder
         * 
         */
        public Builder defaultSecurityRules(@Nullable Output> defaultSecurityRules) {
            $.defaultSecurityRules = defaultSecurityRules;
            return this;
        }

        /**
         * @param defaultSecurityRules The default security rules of network security group.
         * 
         * @return builder
         * 
         */
        public Builder defaultSecurityRules(List defaultSecurityRules) {
            return defaultSecurityRules(Output.of(defaultSecurityRules));
        }

        /**
         * @param defaultSecurityRules The default security rules of network security group.
         * 
         * @return builder
         * 
         */
        public Builder defaultSecurityRules(SecurityRuleArgs... defaultSecurityRules) {
            return defaultSecurityRules(List.of(defaultSecurityRules));
        }

        /**
         * @param etag A unique read-only string that changes whenever the resource is updated.
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag A unique read-only string that changes whenever the resource is updated.
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

        /**
         * @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 provisioningState The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(@Nullable Output provisioningState) {
            $.provisioningState = provisioningState;
            return this;
        }

        /**
         * @param provisioningState The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(String provisioningState) {
            return provisioningState(Output.of(provisioningState));
        }

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

        /**
         * @param resourceGuid The resource GUID property of the network security group resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceGuid(String resourceGuid) {
            return resourceGuid(Output.of(resourceGuid));
        }

        /**
         * @param securityRules A collection of security rules of the network security group.
         * 
         * @return builder
         * 
         */
        public Builder securityRules(@Nullable Output> securityRules) {
            $.securityRules = securityRules;
            return this;
        }

        /**
         * @param securityRules A collection of security rules of the network security group.
         * 
         * @return builder
         * 
         */
        public Builder securityRules(List securityRules) {
            return securityRules(Output.of(securityRules));
        }

        /**
         * @param securityRules A collection of security rules of the network security group.
         * 
         * @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() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy