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

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ThingTypeProperties {
    /**
     * @return The description of the thing type.
     * 
     */
    private @Nullable String description;
    /**
     * @return A list of searchable thing attribute names.
     * 
     */
    private @Nullable List<String> searchableAttributes;

    private ThingTypeProperties() {}
    /**
     * @return The description of the thing type.
     * 
     */
    public Optional<String> description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return A list of searchable thing attribute names.
     * 
     */
    public List<String> searchableAttributes() {
        return this.searchableAttributes == null ? List.of() : this.searchableAttributes;
    }

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

    public static Builder builder(ThingTypeProperties defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private @Nullable List<String> searchableAttributes;
        public Builder() {}
        public Builder(ThingTypeProperties defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.searchableAttributes = defaults.searchableAttributes;
        }

        @CustomType.Setter
        public Builder description(@Nullable String description) {
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder searchableAttributes(@Nullable List<String> searchableAttributes) {
            this.searchableAttributes = searchableAttributes;
            return this;
        }
        public Builder searchableAttributes(String... searchableAttributes) {
            return searchableAttributes(List.of(searchableAttributes));
        }
        public ThingTypeProperties build() {
            final var o = new ThingTypeProperties();
            o.description = description;
            o.searchableAttributes = searchableAttributes;
            return o;
        }
    }
}
