// *** 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.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 ThingGroupPropertiesAttributePayloadArgs extends com.pulumi.resources.ResourceArgs {

    public static final ThingGroupPropertiesAttributePayloadArgs Empty = new ThingGroupPropertiesAttributePayloadArgs();

    /**
     * Key-value map.
     * 
     */
    @Import(name="attributes")
    private @Nullable Output<Map<String,String>> attributes;

    /**
     * @return Key-value map.
     * 
     */
    public Optional<Output<Map<String,String>>> attributes() {
        return Optional.ofNullable(this.attributes);
    }

    private ThingGroupPropertiesAttributePayloadArgs() {}

    private ThingGroupPropertiesAttributePayloadArgs(ThingGroupPropertiesAttributePayloadArgs $) {
        this.attributes = $.attributes;
    }

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

    public static final class Builder {
        private ThingGroupPropertiesAttributePayloadArgs $;

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

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

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

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

        public ThingGroupPropertiesAttributePayloadArgs build() {
            return $;
        }
    }

}
