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

com.pulumi.snowflake.outputs.GetGrantsGrantsOf Maven / Gradle / Ivy

The 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.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetGrantsGrantsOf {
    /**
     * @return Lists all users and roles to which the account role has been granted.
     * 
     */
    private @Nullable String accountRole;
    /**
     * @return Lists all the users and roles to which the application role has been granted. Must be a fully qualified name ("<db*name>"."<database*role_name>").
     * 
     */
    private @Nullable String applicationRole;
    /**
     * @return Lists all users and roles to which the database role has been granted. Must be a fully qualified name ("<db*name>"."<database*role_name>").
     * 
     */
    private @Nullable String databaseRole;
    /**
     * @return Lists all the accounts for the share and indicates the accounts that are using the share.
     * 
     */
    private @Nullable String share;

    private GetGrantsGrantsOf() {}
    /**
     * @return Lists all users and roles to which the account role has been granted.
     * 
     */
    public Optional accountRole() {
        return Optional.ofNullable(this.accountRole);
    }
    /**
     * @return Lists all the users and roles to which the application role has been granted. Must be a fully qualified name ("<db*name>"."<database*role_name>").
     * 
     */
    public Optional applicationRole() {
        return Optional.ofNullable(this.applicationRole);
    }
    /**
     * @return Lists all users and roles to which the database role has been granted. Must be a fully qualified name ("<db*name>"."<database*role_name>").
     * 
     */
    public Optional databaseRole() {
        return Optional.ofNullable(this.databaseRole);
    }
    /**
     * @return Lists all the accounts for the share and indicates the accounts that are using the share.
     * 
     */
    public Optional share() {
        return Optional.ofNullable(this.share);
    }

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

    public static Builder builder(GetGrantsGrantsOf defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String accountRole;
        private @Nullable String applicationRole;
        private @Nullable String databaseRole;
        private @Nullable String share;
        public Builder() {}
        public Builder(GetGrantsGrantsOf defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accountRole = defaults.accountRole;
    	      this.applicationRole = defaults.applicationRole;
    	      this.databaseRole = defaults.databaseRole;
    	      this.share = defaults.share;
        }

        @CustomType.Setter
        public Builder accountRole(@Nullable String accountRole) {

            this.accountRole = accountRole;
            return this;
        }
        @CustomType.Setter
        public Builder applicationRole(@Nullable String applicationRole) {

            this.applicationRole = applicationRole;
            return this;
        }
        @CustomType.Setter
        public Builder databaseRole(@Nullable String databaseRole) {

            this.databaseRole = databaseRole;
            return this;
        }
        @CustomType.Setter
        public Builder share(@Nullable String share) {

            this.share = share;
            return this;
        }
        public GetGrantsGrantsOf build() {
            final var _resultValue = new GetGrantsGrantsOf();
            _resultValue.accountRole = accountRole;
            _resultValue.applicationRole = applicationRole;
            _resultValue.databaseRole = databaseRole;
            _resultValue.share = share;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy