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

import com.pulumi.aws.iot.inputs.ThingGroupPropertiesArgs;
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 ThingGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final ThingGroupArgs Empty = new ThingGroupArgs();

    /**
     * The name of the Thing Group.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name of the Thing Group.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the parent Thing Group.
     * 
     */
    @Import(name="parentGroupName")
    private @Nullable Output<String> parentGroupName;

    /**
     * @return The name of the parent Thing Group.
     * 
     */
    public Optional<Output<String>> parentGroupName() {
        return Optional.ofNullable(this.parentGroupName);
    }

    /**
     * The Thing Group properties. Defined below.
     * 
     */
    @Import(name="properties")
    private @Nullable Output<ThingGroupPropertiesArgs> properties;

    /**
     * @return The Thing Group properties. Defined below.
     * 
     */
    public Optional<Output<ThingGroupPropertiesArgs>> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * Key-value mapping of resource tags
     * 
     */
    @Import(name="tags")
    private @Nullable Output<Map<String,String>> tags;

    /**
     * @return Key-value mapping of resource tags
     * 
     */
    public Optional<Output<Map<String,String>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ThingGroupArgs() {}

    private ThingGroupArgs(ThingGroupArgs $) {
        this.name = $.name;
        this.parentGroupName = $.parentGroupName;
        this.properties = $.properties;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ThingGroupArgs $;

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

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

        /**
         * @param name The name of the Thing Group.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Thing Group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param parentGroupName The name of the parent Thing Group.
         * 
         * @return builder
         * 
         */
        public Builder parentGroupName(@Nullable Output<String> parentGroupName) {
            $.parentGroupName = parentGroupName;
            return this;
        }

        /**
         * @param parentGroupName The name of the parent Thing Group.
         * 
         * @return builder
         * 
         */
        public Builder parentGroupName(String parentGroupName) {
            return parentGroupName(Output.of(parentGroupName));
        }

        /**
         * @param properties The Thing Group properties. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output<ThingGroupPropertiesArgs> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties The Thing Group properties. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder properties(ThingGroupPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param tags Key-value mapping of resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output<Map<String,String>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value mapping of resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(Map<String,String> tags) {
            return tags(Output.of(tags));
        }

        public ThingGroupArgs build() {
            return $;
        }
    }

}
