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

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

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


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

    public static final SecurityUserRuleCollectionArgs Empty = new SecurityUserRuleCollectionArgs();

    /**
     * Groups for configuration
     * 
     */
    @Import(name="appliesToGroups", required=true)
    private Output> appliesToGroups;

    /**
     * @return Groups for configuration
     * 
     */
    public Output> appliesToGroups() {
        return this.appliesToGroups;
    }

    /**
     * The name of the network manager Security Configuration.
     * 
     */
    @Import(name="configurationName", required=true)
    private Output configurationName;

    /**
     * @return The name of the network manager Security Configuration.
     * 
     */
    public Output configurationName() {
        return this.configurationName;
    }

    /**
     * A description of the security user rule collection.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of the security user rule collection.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the network manager.
     * 
     */
    @Import(name="networkManagerName", required=true)
    private Output networkManagerName;

    /**
     * @return The name of the network manager.
     * 
     */
    public Output networkManagerName() {
        return this.networkManagerName;
    }

    /**
     * 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 name of the network manager security Configuration rule collection.
     * 
     */
    @Import(name="ruleCollectionName")
    private @Nullable Output ruleCollectionName;

    /**
     * @return The name of the network manager security Configuration rule collection.
     * 
     */
    public Optional> ruleCollectionName() {
        return Optional.ofNullable(this.ruleCollectionName);
    }

    private SecurityUserRuleCollectionArgs() {}

    private SecurityUserRuleCollectionArgs(SecurityUserRuleCollectionArgs $) {
        this.appliesToGroups = $.appliesToGroups;
        this.configurationName = $.configurationName;
        this.description = $.description;
        this.networkManagerName = $.networkManagerName;
        this.resourceGroupName = $.resourceGroupName;
        this.ruleCollectionName = $.ruleCollectionName;
    }

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

    public static final class Builder {
        private SecurityUserRuleCollectionArgs $;

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

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

        /**
         * @param appliesToGroups Groups for configuration
         * 
         * @return builder
         * 
         */
        public Builder appliesToGroups(Output> appliesToGroups) {
            $.appliesToGroups = appliesToGroups;
            return this;
        }

        /**
         * @param appliesToGroups Groups for configuration
         * 
         * @return builder
         * 
         */
        public Builder appliesToGroups(List appliesToGroups) {
            return appliesToGroups(Output.of(appliesToGroups));
        }

        /**
         * @param appliesToGroups Groups for configuration
         * 
         * @return builder
         * 
         */
        public Builder appliesToGroups(SecurityUserGroupItemArgs... appliesToGroups) {
            return appliesToGroups(List.of(appliesToGroups));
        }

        /**
         * @param configurationName The name of the network manager Security Configuration.
         * 
         * @return builder
         * 
         */
        public Builder configurationName(Output configurationName) {
            $.configurationName = configurationName;
            return this;
        }

        /**
         * @param configurationName The name of the network manager Security Configuration.
         * 
         * @return builder
         * 
         */
        public Builder configurationName(String configurationName) {
            return configurationName(Output.of(configurationName));
        }

        /**
         * @param description A description of the security user rule collection.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description of the security user rule collection.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

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

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

        /**
         * @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 ruleCollectionName The name of the network manager security Configuration rule collection.
         * 
         * @return builder
         * 
         */
        public Builder ruleCollectionName(@Nullable Output ruleCollectionName) {
            $.ruleCollectionName = ruleCollectionName;
            return this;
        }

        /**
         * @param ruleCollectionName The name of the network manager security Configuration rule collection.
         * 
         * @return builder
         * 
         */
        public Builder ruleCollectionName(String ruleCollectionName) {
            return ruleCollectionName(Output.of(ruleCollectionName));
        }

        public SecurityUserRuleCollectionArgs build() {
            if ($.appliesToGroups == null) {
                throw new MissingRequiredPropertyException("SecurityUserRuleCollectionArgs", "appliesToGroups");
            }
            if ($.configurationName == null) {
                throw new MissingRequiredPropertyException("SecurityUserRuleCollectionArgs", "configurationName");
            }
            if ($.networkManagerName == null) {
                throw new MissingRequiredPropertyException("SecurityUserRuleCollectionArgs", "networkManagerName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SecurityUserRuleCollectionArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy