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

com.pulumi.azurenative.relay.WCFRelayAuthorizationRuleArgs 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.relay;

import com.pulumi.azurenative.relay.enums.AccessRights;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WCFRelayAuthorizationRuleArgs Empty = new WCFRelayAuthorizationRuleArgs();

    /**
     * The authorization rule name.
     * 
     */
    @Import(name="authorizationRuleName")
    private @Nullable Output authorizationRuleName;

    /**
     * @return The authorization rule name.
     * 
     */
    public Optional> authorizationRuleName() {
        return Optional.ofNullable(this.authorizationRuleName);
    }

    /**
     * The namespace name
     * 
     */
    @Import(name="namespaceName", required=true)
    private Output namespaceName;

    /**
     * @return The namespace name
     * 
     */
    public Output namespaceName() {
        return this.namespaceName;
    }

    /**
     * The relay name.
     * 
     */
    @Import(name="relayName", required=true)
    private Output relayName;

    /**
     * @return The relay name.
     * 
     */
    public Output relayName() {
        return this.relayName;
    }

    /**
     * Name of the Resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the Resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The rights associated with the rule.
     * 
     */
    @Import(name="rights", required=true)
    private Output>> rights;

    /**
     * @return The rights associated with the rule.
     * 
     */
    public Output>> rights() {
        return this.rights;
    }

    private WCFRelayAuthorizationRuleArgs() {}

    private WCFRelayAuthorizationRuleArgs(WCFRelayAuthorizationRuleArgs $) {
        this.authorizationRuleName = $.authorizationRuleName;
        this.namespaceName = $.namespaceName;
        this.relayName = $.relayName;
        this.resourceGroupName = $.resourceGroupName;
        this.rights = $.rights;
    }

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

    public static final class Builder {
        private WCFRelayAuthorizationRuleArgs $;

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

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

        /**
         * @param authorizationRuleName The authorization rule name.
         * 
         * @return builder
         * 
         */
        public Builder authorizationRuleName(@Nullable Output authorizationRuleName) {
            $.authorizationRuleName = authorizationRuleName;
            return this;
        }

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

        /**
         * @param namespaceName The namespace name
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param namespaceName The namespace name
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        /**
         * @param relayName The relay name.
         * 
         * @return builder
         * 
         */
        public Builder relayName(Output relayName) {
            $.relayName = relayName;
            return this;
        }

        /**
         * @param relayName The relay name.
         * 
         * @return builder
         * 
         */
        public Builder relayName(String relayName) {
            return relayName(Output.of(relayName));
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param rights The rights associated with the rule.
         * 
         * @return builder
         * 
         */
        public Builder rights(Output>> rights) {
            $.rights = rights;
            return this;
        }

        /**
         * @param rights The rights associated with the rule.
         * 
         * @return builder
         * 
         */
        public Builder rights(List> rights) {
            return rights(Output.of(rights));
        }

        /**
         * @param rights The rights associated with the rule.
         * 
         * @return builder
         * 
         */
        public Builder rights(Either... rights) {
            return rights(List.of(rights));
        }

        public WCFRelayAuthorizationRuleArgs build() {
            if ($.namespaceName == null) {
                throw new MissingRequiredPropertyException("WCFRelayAuthorizationRuleArgs", "namespaceName");
            }
            if ($.relayName == null) {
                throw new MissingRequiredPropertyException("WCFRelayAuthorizationRuleArgs", "relayName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WCFRelayAuthorizationRuleArgs", "resourceGroupName");
            }
            if ($.rights == null) {
                throw new MissingRequiredPropertyException("WCFRelayAuthorizationRuleArgs", "rights");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy