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

import com.pulumi.aws.autoscaling.inputs.TagTagArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


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

    public static final TagArgs Empty = new TagArgs();

    /**
     * Name of the Autoscaling Group to apply the tag to.
     * 
     */
    @Import(name="autoscalingGroupName", required=true)
    private Output<String> autoscalingGroupName;

    /**
     * @return Name of the Autoscaling Group to apply the tag to.
     * 
     */
    public Output<String> autoscalingGroupName() {
        return this.autoscalingGroupName;
    }

    /**
     * Tag to create. The `tag` block is documented below.
     * 
     */
    @Import(name="tag", required=true)
    private Output<TagTagArgs> tag;

    /**
     * @return Tag to create. The `tag` block is documented below.
     * 
     */
    public Output<TagTagArgs> tag() {
        return this.tag;
    }

    private TagArgs() {}

    private TagArgs(TagArgs $) {
        this.autoscalingGroupName = $.autoscalingGroupName;
        this.tag = $.tag;
    }

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

    public static final class Builder {
        private TagArgs $;

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

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

        /**
         * @param autoscalingGroupName Name of the Autoscaling Group to apply the tag to.
         * 
         * @return builder
         * 
         */
        public Builder autoscalingGroupName(Output<String> autoscalingGroupName) {
            $.autoscalingGroupName = autoscalingGroupName;
            return this;
        }

        /**
         * @param autoscalingGroupName Name of the Autoscaling Group to apply the tag to.
         * 
         * @return builder
         * 
         */
        public Builder autoscalingGroupName(String autoscalingGroupName) {
            return autoscalingGroupName(Output.of(autoscalingGroupName));
        }

        /**
         * @param tag Tag to create. The `tag` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder tag(Output<TagTagArgs> tag) {
            $.tag = tag;
            return this;
        }

        /**
         * @param tag Tag to create. The `tag` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder tag(TagTagArgs tag) {
            return tag(Output.of(tag));
        }

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

}
