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

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

The 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.enums.DeleteExistingNSGs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SecurityUserConfigurationArgs Empty = new SecurityUserConfigurationArgs();

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

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

    /**
     * Flag if need to delete existing network security groups.
     * 
     */
    @Import(name="deleteExistingNSGs")
    private @Nullable Output> deleteExistingNSGs;

    /**
     * @return Flag if need to delete existing network security groups.
     * 
     */
    public Optional>> deleteExistingNSGs() {
        return Optional.ofNullable(this.deleteExistingNSGs);
    }

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

    /**
     * @return A description of the security user configuration.
     * 
     */
    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;
    }

    private SecurityUserConfigurationArgs() {}

    private SecurityUserConfigurationArgs(SecurityUserConfigurationArgs $) {
        this.configurationName = $.configurationName;
        this.deleteExistingNSGs = $.deleteExistingNSGs;
        this.description = $.description;
        this.networkManagerName = $.networkManagerName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private SecurityUserConfigurationArgs $;

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

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

        /**
         * @param configurationName The name of the network manager Security Configuration.
         * 
         * @return builder
         * 
         */
        public Builder configurationName(@Nullable 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 deleteExistingNSGs Flag if need to delete existing network security groups.
         * 
         * @return builder
         * 
         */
        public Builder deleteExistingNSGs(@Nullable Output> deleteExistingNSGs) {
            $.deleteExistingNSGs = deleteExistingNSGs;
            return this;
        }

        /**
         * @param deleteExistingNSGs Flag if need to delete existing network security groups.
         * 
         * @return builder
         * 
         */
        public Builder deleteExistingNSGs(Either deleteExistingNSGs) {
            return deleteExistingNSGs(Output.of(deleteExistingNSGs));
        }

        /**
         * @param deleteExistingNSGs Flag if need to delete existing network security groups.
         * 
         * @return builder
         * 
         */
        public Builder deleteExistingNSGs(String deleteExistingNSGs) {
            return deleteExistingNSGs(Either.ofLeft(deleteExistingNSGs));
        }

        /**
         * @param deleteExistingNSGs Flag if need to delete existing network security groups.
         * 
         * @return builder
         * 
         */
        public Builder deleteExistingNSGs(DeleteExistingNSGs deleteExistingNSGs) {
            return deleteExistingNSGs(Either.ofRight(deleteExistingNSGs));
        }

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

        /**
         * @param description A description of the security user configuration.
         * 
         * @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));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy