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

com.pulumi.azurenative.network.UserRuleCollectionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.NetworkManagerSecurityGroupItemArgs;
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 UserRuleCollectionArgs extends com.pulumi.resources.ResourceArgs {

    public static final UserRuleCollectionArgs Empty = new UserRuleCollectionArgs();

    /**
     * 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 user rule collection.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of the 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.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    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 UserRuleCollectionArgs() {}

    private UserRuleCollectionArgs(UserRuleCollectionArgs $) {
        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(UserRuleCollectionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private UserRuleCollectionArgs $;

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

        public Builder(UserRuleCollectionArgs defaults) {
            $ = new UserRuleCollectionArgs(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(NetworkManagerSecurityGroupItemArgs... 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 user rule collection.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description of the 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.
         * 
         * @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 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 UserRuleCollectionArgs build() {
            if ($.appliesToGroups == null) {
                throw new MissingRequiredPropertyException("UserRuleCollectionArgs", "appliesToGroups");
            }
            if ($.configurationName == null) {
                throw new MissingRequiredPropertyException("UserRuleCollectionArgs", "configurationName");
            }
            if ($.networkManagerName == null) {
                throw new MissingRequiredPropertyException("UserRuleCollectionArgs", "networkManagerName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("UserRuleCollectionArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy