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

com.pulumi.snowflake.GrantApplicationRoleArgs Maven / Gradle / Ivy

There is a newer version: 1.0.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.snowflake;

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 GrantApplicationRoleArgs extends com.pulumi.resources.ResourceArgs {

    public static final GrantApplicationRoleArgs Empty = new GrantApplicationRoleArgs();

    /**
     * The fully qualified name of the application on which application role will be granted.
     * 
     */
    @Import(name="applicationName")
    private @Nullable Output applicationName;

    /**
     * @return The fully qualified name of the application on which application role will be granted.
     * 
     */
    public Optional> applicationName() {
        return Optional.ofNullable(this.applicationName);
    }

    /**
     * Specifies the identifier for the application role to grant.
     * 
     */
    @Import(name="applicationRoleName", required=true)
    private Output applicationRoleName;

    /**
     * @return Specifies the identifier for the application role to grant.
     * 
     */
    public Output applicationRoleName() {
        return this.applicationRoleName;
    }

    /**
     * The fully qualified name of the account role on which application role will be granted.
     * 
     */
    @Import(name="parentAccountRoleName")
    private @Nullable Output parentAccountRoleName;

    /**
     * @return The fully qualified name of the account role on which application role will be granted.
     * 
     */
    public Optional> parentAccountRoleName() {
        return Optional.ofNullable(this.parentAccountRoleName);
    }

    private GrantApplicationRoleArgs() {}

    private GrantApplicationRoleArgs(GrantApplicationRoleArgs $) {
        this.applicationName = $.applicationName;
        this.applicationRoleName = $.applicationRoleName;
        this.parentAccountRoleName = $.parentAccountRoleName;
    }

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

    public static final class Builder {
        private GrantApplicationRoleArgs $;

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

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

        /**
         * @param applicationName The fully qualified name of the application on which application role will be granted.
         * 
         * @return builder
         * 
         */
        public Builder applicationName(@Nullable Output applicationName) {
            $.applicationName = applicationName;
            return this;
        }

        /**
         * @param applicationName The fully qualified name of the application on which application role will be granted.
         * 
         * @return builder
         * 
         */
        public Builder applicationName(String applicationName) {
            return applicationName(Output.of(applicationName));
        }

        /**
         * @param applicationRoleName Specifies the identifier for the application role to grant.
         * 
         * @return builder
         * 
         */
        public Builder applicationRoleName(Output applicationRoleName) {
            $.applicationRoleName = applicationRoleName;
            return this;
        }

        /**
         * @param applicationRoleName Specifies the identifier for the application role to grant.
         * 
         * @return builder
         * 
         */
        public Builder applicationRoleName(String applicationRoleName) {
            return applicationRoleName(Output.of(applicationRoleName));
        }

        /**
         * @param parentAccountRoleName The fully qualified name of the account role on which application role will be granted.
         * 
         * @return builder
         * 
         */
        public Builder parentAccountRoleName(@Nullable Output parentAccountRoleName) {
            $.parentAccountRoleName = parentAccountRoleName;
            return this;
        }

        /**
         * @param parentAccountRoleName The fully qualified name of the account role on which application role will be granted.
         * 
         * @return builder
         * 
         */
        public Builder parentAccountRoleName(String parentAccountRoleName) {
            return parentAccountRoleName(Output.of(parentAccountRoleName));
        }

        public GrantApplicationRoleArgs build() {
            if ($.applicationRoleName == null) {
                throw new MissingRequiredPropertyException("GrantApplicationRoleArgs", "applicationRoleName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy