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

com.pulumi.azurenative.eventgrid.PermissionBindingArgs 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.eventgrid;

import com.pulumi.azurenative.eventgrid.enums.PermissionType;
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 PermissionBindingArgs extends com.pulumi.resources.ResourceArgs {

    public static final PermissionBindingArgs Empty = new PermissionBindingArgs();

    /**
     * The name of the client group resource that the permission is bound to.
     * The client group needs to be a resource under the same namespace the permission binding is a part of.
     * 
     */
    @Import(name="clientGroupName")
    private @Nullable Output clientGroupName;

    /**
     * @return The name of the client group resource that the permission is bound to.
     * The client group needs to be a resource under the same namespace the permission binding is a part of.
     * 
     */
    public Optional> clientGroupName() {
        return Optional.ofNullable(this.clientGroupName);
    }

    /**
     * Description for the Permission Binding resource.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description for the Permission Binding resource.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Name of the namespace.
     * 
     */
    @Import(name="namespaceName", required=true)
    private Output namespaceName;

    /**
     * @return Name of the namespace.
     * 
     */
    public Output namespaceName() {
        return this.namespaceName;
    }

    /**
     * The allowed permission.
     * 
     */
    @Import(name="permission")
    private @Nullable Output> permission;

    /**
     * @return The allowed permission.
     * 
     */
    public Optional>> permission() {
        return Optional.ofNullable(this.permission);
    }

    /**
     * The permission binding name.
     * 
     */
    @Import(name="permissionBindingName")
    private @Nullable Output permissionBindingName;

    /**
     * @return The permission binding name.
     * 
     */
    public Optional> permissionBindingName() {
        return Optional.ofNullable(this.permissionBindingName);
    }

    /**
     * The name of the resource group within the user's subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group within the user's subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the Topic Space resource that the permission is bound to.
     * The Topic space needs to be a resource under the same namespace the permission binding is a part of.
     * 
     */
    @Import(name="topicSpaceName")
    private @Nullable Output topicSpaceName;

    /**
     * @return The name of the Topic Space resource that the permission is bound to.
     * The Topic space needs to be a resource under the same namespace the permission binding is a part of.
     * 
     */
    public Optional> topicSpaceName() {
        return Optional.ofNullable(this.topicSpaceName);
    }

    private PermissionBindingArgs() {}

    private PermissionBindingArgs(PermissionBindingArgs $) {
        this.clientGroupName = $.clientGroupName;
        this.description = $.description;
        this.namespaceName = $.namespaceName;
        this.permission = $.permission;
        this.permissionBindingName = $.permissionBindingName;
        this.resourceGroupName = $.resourceGroupName;
        this.topicSpaceName = $.topicSpaceName;
    }

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

    public static final class Builder {
        private PermissionBindingArgs $;

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

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

        /**
         * @param clientGroupName The name of the client group resource that the permission is bound to.
         * The client group needs to be a resource under the same namespace the permission binding is a part of.
         * 
         * @return builder
         * 
         */
        public Builder clientGroupName(@Nullable Output clientGroupName) {
            $.clientGroupName = clientGroupName;
            return this;
        }

        /**
         * @param clientGroupName The name of the client group resource that the permission is bound to.
         * The client group needs to be a resource under the same namespace the permission binding is a part of.
         * 
         * @return builder
         * 
         */
        public Builder clientGroupName(String clientGroupName) {
            return clientGroupName(Output.of(clientGroupName));
        }

        /**
         * @param description Description for the Permission Binding resource.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description for the Permission Binding resource.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

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

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

        /**
         * @param permission The allowed permission.
         * 
         * @return builder
         * 
         */
        public Builder permission(@Nullable Output> permission) {
            $.permission = permission;
            return this;
        }

        /**
         * @param permission The allowed permission.
         * 
         * @return builder
         * 
         */
        public Builder permission(Either permission) {
            return permission(Output.of(permission));
        }

        /**
         * @param permission The allowed permission.
         * 
         * @return builder
         * 
         */
        public Builder permission(String permission) {
            return permission(Either.ofLeft(permission));
        }

        /**
         * @param permission The allowed permission.
         * 
         * @return builder
         * 
         */
        public Builder permission(PermissionType permission) {
            return permission(Either.ofRight(permission));
        }

        /**
         * @param permissionBindingName The permission binding name.
         * 
         * @return builder
         * 
         */
        public Builder permissionBindingName(@Nullable Output permissionBindingName) {
            $.permissionBindingName = permissionBindingName;
            return this;
        }

        /**
         * @param permissionBindingName The permission binding name.
         * 
         * @return builder
         * 
         */
        public Builder permissionBindingName(String permissionBindingName) {
            return permissionBindingName(Output.of(permissionBindingName));
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param topicSpaceName The name of the Topic Space resource that the permission is bound to.
         * The Topic space needs to be a resource under the same namespace the permission binding is a part of.
         * 
         * @return builder
         * 
         */
        public Builder topicSpaceName(@Nullable Output topicSpaceName) {
            $.topicSpaceName = topicSpaceName;
            return this;
        }

        /**
         * @param topicSpaceName The name of the Topic Space resource that the permission is bound to.
         * The Topic space needs to be a resource under the same namespace the permission binding is a part of.
         * 
         * @return builder
         * 
         */
        public Builder topicSpaceName(String topicSpaceName) {
            return topicSpaceName(Output.of(topicSpaceName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy