// *** 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.gcp.bigquery.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.bigquery.inputs.ConnectionAwsAccessRoleArgs;
import java.util.Objects;


public final class ConnectionAwsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectionAwsArgs Empty = new ConnectionAwsArgs();

    /**
     * Authentication using Google owned service account to assume into customer&#39;s AWS IAM Role.
     * Structure is documented below.
     * 
     */
    @Import(name="accessRole", required=true)
    private Output<ConnectionAwsAccessRoleArgs> accessRole;

    /**
     * @return Authentication using Google owned service account to assume into customer&#39;s AWS IAM Role.
     * Structure is documented below.
     * 
     */
    public Output<ConnectionAwsAccessRoleArgs> accessRole() {
        return this.accessRole;
    }

    private ConnectionAwsArgs() {}

    private ConnectionAwsArgs(ConnectionAwsArgs $) {
        this.accessRole = $.accessRole;
    }

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

    public static final class Builder {
        private ConnectionAwsArgs $;

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

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

        /**
         * @param accessRole Authentication using Google owned service account to assume into customer&#39;s AWS IAM Role.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder accessRole(Output<ConnectionAwsAccessRoleArgs> accessRole) {
            $.accessRole = accessRole;
            return this;
        }

        /**
         * @param accessRole Authentication using Google owned service account to assume into customer&#39;s AWS IAM Role.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder accessRole(ConnectionAwsAccessRoleArgs accessRole) {
            return accessRole(Output.of(accessRole));
        }

        public ConnectionAwsArgs build() {
            $.accessRole = Objects.requireNonNull($.accessRole, "expected parameter 'accessRole' to be non-null");
            return $;
        }
    }

}
