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

com.pulumi.azure.cosmosdb.inputs.GetSqlRoleDefinitionPlainArgs Maven / Gradle / Ivy

// *** 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.azure.cosmosdb.inputs;

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


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

    public static final GetSqlRoleDefinitionPlainArgs Empty = new GetSqlRoleDefinitionPlainArgs();

    /**
     * The name of the Cosmos DB Account.
     * 
     */
    @Import(name="accountName", required=true)
    private String accountName;

    /**
     * @return The name of the Cosmos DB Account.
     * 
     */
    public String accountName() {
        return this.accountName;
    }

    /**
     * The name of the Resource Group in which the Cosmos DB SQL Role Definition is created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private String resourceGroupName;

    /**
     * @return The name of the Resource Group in which the Cosmos DB SQL Role Definition is created.
     * 
     */
    public String resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The GUID as the name of the Cosmos DB SQL Role Definition.
     * 
     */
    @Import(name="roleDefinitionId", required=true)
    private String roleDefinitionId;

    /**
     * @return The GUID as the name of the Cosmos DB SQL Role Definition.
     * 
     */
    public String roleDefinitionId() {
        return this.roleDefinitionId;
    }

    private GetSqlRoleDefinitionPlainArgs() {}

    private GetSqlRoleDefinitionPlainArgs(GetSqlRoleDefinitionPlainArgs $) {
        this.accountName = $.accountName;
        this.resourceGroupName = $.resourceGroupName;
        this.roleDefinitionId = $.roleDefinitionId;
    }

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

    public static final class Builder {
        private GetSqlRoleDefinitionPlainArgs $;

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

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

        /**
         * @param accountName The name of the Cosmos DB Account.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the Cosmos DB SQL Role Definition is created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param roleDefinitionId The GUID as the name of the Cosmos DB SQL Role Definition.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(String roleDefinitionId) {
            $.roleDefinitionId = roleDefinitionId;
            return this;
        }

        public GetSqlRoleDefinitionPlainArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("GetSqlRoleDefinitionPlainArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetSqlRoleDefinitionPlainArgs", "resourceGroupName");
            }
            if ($.roleDefinitionId == null) {
                throw new MissingRequiredPropertyException("GetSqlRoleDefinitionPlainArgs", "roleDefinitionId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy