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

com.pulumi.azurenative.eventgrid.ClientGroupArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.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 ClientGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final ClientGroupArgs Empty = new ClientGroupArgs();

    /**
     * The client group name.
     * 
     */
    @Import(name="clientGroupName")
    private @Nullable Output clientGroupName;

    /**
     * @return The client group name.
     * 
     */
    public Optional> clientGroupName() {
        return Optional.ofNullable(this.clientGroupName);
    }

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

    /**
     * @return Description for the Client Group 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 grouping query for the clients.
     * Example : attributes.keyName IN ['a', 'b', 'c'].
     * 
     */
    @Import(name="query")
    private @Nullable Output query;

    /**
     * @return The grouping query for the clients.
     * Example : attributes.keyName IN ['a', 'b', 'c'].
     * 
     */
    public Optional> query() {
        return Optional.ofNullable(this.query);
    }

    /**
     * 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;
    }

    private ClientGroupArgs() {}

    private ClientGroupArgs(ClientGroupArgs $) {
        this.clientGroupName = $.clientGroupName;
        this.description = $.description;
        this.namespaceName = $.namespaceName;
        this.query = $.query;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ClientGroupArgs $;

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

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

        /**
         * @param clientGroupName The client group name.
         * 
         * @return builder
         * 
         */
        public Builder clientGroupName(@Nullable Output clientGroupName) {
            $.clientGroupName = clientGroupName;
            return this;
        }

        /**
         * @param clientGroupName The client group name.
         * 
         * @return builder
         * 
         */
        public Builder clientGroupName(String clientGroupName) {
            return clientGroupName(Output.of(clientGroupName));
        }

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

        /**
         * @param description Description for the Client Group 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 query The grouping query for the clients.
         * Example : attributes.keyName IN ['a', 'b', 'c'].
         * 
         * @return builder
         * 
         */
        public Builder query(@Nullable Output query) {
            $.query = query;
            return this;
        }

        /**
         * @param query The grouping query for the clients.
         * Example : attributes.keyName IN ['a', 'b', 'c'].
         * 
         * @return builder
         * 
         */
        public Builder query(String query) {
            return query(Output.of(query));
        }

        /**
         * @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));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy