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

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


public final class GetResourceTagsArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetResourceTagsArgs Empty = new GetResourceTagsArgs();

    /**
     * ID of the resource with the tags to list. See details below.
     * 
     */
    @Import(name="resourceId", required=true)
    private Output<String> resourceId;

    /**
     * @return ID of the resource with the tags to list. See details below.
     * 
     */
    public Output<String> resourceId() {
        return this.resourceId;
    }

    /**
     * Map of key=value pairs for each tag set on the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output<Map<String,String>> tags;

    /**
     * @return Map of key=value pairs for each tag set on the resource.
     * 
     */
    public Optional<Output<Map<String,String>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetResourceTagsArgs() {}

    private GetResourceTagsArgs(GetResourceTagsArgs $) {
        this.resourceId = $.resourceId;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetResourceTagsArgs $;

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

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

        /**
         * @param resourceId ID of the resource with the tags to list. See details below.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(Output<String> resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId ID of the resource with the tags to list. See details below.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param tags Map of key=value pairs for each tag set on the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output<Map<String,String>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Map of key=value pairs for each tag set on the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map<String,String> tags) {
            return tags(Output.of(tags));
        }

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

}
