// *** 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.aws.ram;

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


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

    public static final ResourceAssociationArgs Empty = new ResourceAssociationArgs();

    /**
     * Amazon Resource Name (ARN) of the resource to associate with the RAM Resource Share.
     * 
     */
    @Import(name="resourceArn", required=true)
    private Output<String> resourceArn;

    /**
     * @return Amazon Resource Name (ARN) of the resource to associate with the RAM Resource Share.
     * 
     */
    public Output<String> resourceArn() {
        return this.resourceArn;
    }

    /**
     * Amazon Resource Name (ARN) of the RAM Resource Share.
     * 
     */
    @Import(name="resourceShareArn", required=true)
    private Output<String> resourceShareArn;

    /**
     * @return Amazon Resource Name (ARN) of the RAM Resource Share.
     * 
     */
    public Output<String> resourceShareArn() {
        return this.resourceShareArn;
    }

    private ResourceAssociationArgs() {}

    private ResourceAssociationArgs(ResourceAssociationArgs $) {
        this.resourceArn = $.resourceArn;
        this.resourceShareArn = $.resourceShareArn;
    }

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

    public static final class Builder {
        private ResourceAssociationArgs $;

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

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

        /**
         * @param resourceArn Amazon Resource Name (ARN) of the resource to associate with the RAM Resource Share.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(Output<String> resourceArn) {
            $.resourceArn = resourceArn;
            return this;
        }

        /**
         * @param resourceArn Amazon Resource Name (ARN) of the resource to associate with the RAM Resource Share.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(String resourceArn) {
            return resourceArn(Output.of(resourceArn));
        }

        /**
         * @param resourceShareArn Amazon Resource Name (ARN) of the RAM Resource Share.
         * 
         * @return builder
         * 
         */
        public Builder resourceShareArn(Output<String> resourceShareArn) {
            $.resourceShareArn = resourceShareArn;
            return this;
        }

        /**
         * @param resourceShareArn Amazon Resource Name (ARN) of the RAM Resource Share.
         * 
         * @return builder
         * 
         */
        public Builder resourceShareArn(String resourceShareArn) {
            return resourceShareArn(Output.of(resourceShareArn));
        }

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

}
