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

com.pulumi.azurenative.network.inputs.GetSecurityRulePlainArgs 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.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final GetSecurityRulePlainArgs Empty = new GetSecurityRulePlainArgs();

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

    /**
     * @return The name of the network security group.
     * 
     */
    public String networkSecurityGroupName() {
        return this.networkSecurityGroupName;
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private String resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public String resourceGroupName() {
        return this.resourceGroupName;
    }

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

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

    private GetSecurityRulePlainArgs() {}

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

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

    public static final class Builder {
        private GetSecurityRulePlainArgs $;

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

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

        /**
         * @param networkSecurityGroupName The name of the network security group.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroupName(String networkSecurityGroupName) {
            $.networkSecurityGroupName = networkSecurityGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy