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

com.pulumi.azurenative.awsconnector.inputs.GrantArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.GranteeArgs;
import com.pulumi.azurenative.awsconnector.inputs.PermissionEnumValueArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of Grant
 * 
 */
public final class GrantArgs extends com.pulumi.resources.ResourceArgs {

    public static final GrantArgs Empty = new GrantArgs();

    /**
     * <p>The person being granted permissions.</p>
     * 
     */
    @Import(name="grantee")
    private @Nullable Output grantee;

    /**
     * @return <p>The person being granted permissions.</p>
     * 
     */
    public Optional> grantee() {
        return Optional.ofNullable(this.grantee);
    }

    /**
     * <p>Specifies the permission given to the grantee.</p>
     * 
     */
    @Import(name="permission")
    private @Nullable Output permission;

    /**
     * @return <p>Specifies the permission given to the grantee.</p>
     * 
     */
    public Optional> permission() {
        return Optional.ofNullable(this.permission);
    }

    private GrantArgs() {}

    private GrantArgs(GrantArgs $) {
        this.grantee = $.grantee;
        this.permission = $.permission;
    }

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

    public static final class Builder {
        private GrantArgs $;

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

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

        /**
         * @param grantee <p>The person being granted permissions.</p>
         * 
         * @return builder
         * 
         */
        public Builder grantee(@Nullable Output grantee) {
            $.grantee = grantee;
            return this;
        }

        /**
         * @param grantee <p>The person being granted permissions.</p>
         * 
         * @return builder
         * 
         */
        public Builder grantee(GranteeArgs grantee) {
            return grantee(Output.of(grantee));
        }

        /**
         * @param permission <p>Specifies the permission given to the grantee.</p>
         * 
         * @return builder
         * 
         */
        public Builder permission(@Nullable Output permission) {
            $.permission = permission;
            return this;
        }

        /**
         * @param permission <p>Specifies the permission given to the grantee.</p>
         * 
         * @return builder
         * 
         */
        public Builder permission(PermissionEnumValueArgs permission) {
            return permission(Output.of(permission));
        }

        public GrantArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy