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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetSecurityRuleArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSecurityRuleArgs Empty = new GetSecurityRuleArgs();

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

    /**
     * @return The name of the network security group.
     * 
     */
    public Output networkSecurityGroupName() {
        return 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;
    }

    /**
     * The name of the security rule.
     * 
     */
    @Import(name="securityRuleName", required=true)
    private Output securityRuleName;

    /**
     * @return The name of the security rule.
     * 
     */
    public Output securityRuleName() {
        return this.securityRuleName;
    }

    private GetSecurityRuleArgs() {}

    private GetSecurityRuleArgs(GetSecurityRuleArgs $) {
        this.networkSecurityGroupName = $.networkSecurityGroupName;
        this.resourceGroupName = $.resourceGroupName;
        this.securityRuleName = $.securityRuleName;
    }

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

    public static final class Builder {
        private GetSecurityRuleArgs $;

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

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

        /**
         * @param networkSecurityGroupName The name of the network security group.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroupName(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 securityRuleName The name of the security rule.
         * 
         * @return builder
         * 
         */
        public Builder securityRuleName(Output securityRuleName) {
            $.securityRuleName = securityRuleName;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy