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

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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TagState Empty = new TagState();

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

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

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

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

    private TagState() {}

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

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

    public static final class Builder {
        private TagState $;

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

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

        /**
         * @param autoscalingGroupName Name of the Autoscaling Group to apply the tag to.
         * 
         * @return builder
         * 
         */
        public Builder autoscalingGroupName(@Nullable 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(@Nullable 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 TagState build() {
            return $;
        }
    }

}
