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

import com.pulumi.aws.kendra.inputs.IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs;
import com.pulumi.aws.kendra.inputs.IndexUserTokenConfigurationsJwtTokenTypeConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final IndexUserTokenConfigurationsArgs Empty = new IndexUserTokenConfigurationsArgs();

    /**
     * A block that specifies the information about the JSON token type configuration. Detailed below.
     * 
     */
    @Import(name="jsonTokenTypeConfiguration")
    private @Nullable Output<IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs> jsonTokenTypeConfiguration;

    /**
     * @return A block that specifies the information about the JSON token type configuration. Detailed below.
     * 
     */
    public Optional<Output<IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs>> jsonTokenTypeConfiguration() {
        return Optional.ofNullable(this.jsonTokenTypeConfiguration);
    }

    /**
     * A block that specifies the information about the JWT token type configuration. Detailed below.
     * 
     */
    @Import(name="jwtTokenTypeConfiguration")
    private @Nullable Output<IndexUserTokenConfigurationsJwtTokenTypeConfigurationArgs> jwtTokenTypeConfiguration;

    /**
     * @return A block that specifies the information about the JWT token type configuration. Detailed below.
     * 
     */
    public Optional<Output<IndexUserTokenConfigurationsJwtTokenTypeConfigurationArgs>> jwtTokenTypeConfiguration() {
        return Optional.ofNullable(this.jwtTokenTypeConfiguration);
    }

    private IndexUserTokenConfigurationsArgs() {}

    private IndexUserTokenConfigurationsArgs(IndexUserTokenConfigurationsArgs $) {
        this.jsonTokenTypeConfiguration = $.jsonTokenTypeConfiguration;
        this.jwtTokenTypeConfiguration = $.jwtTokenTypeConfiguration;
    }

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

    public static final class Builder {
        private IndexUserTokenConfigurationsArgs $;

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

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

        /**
         * @param jsonTokenTypeConfiguration A block that specifies the information about the JSON token type configuration. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder jsonTokenTypeConfiguration(@Nullable Output<IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs> jsonTokenTypeConfiguration) {
            $.jsonTokenTypeConfiguration = jsonTokenTypeConfiguration;
            return this;
        }

        /**
         * @param jsonTokenTypeConfiguration A block that specifies the information about the JSON token type configuration. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder jsonTokenTypeConfiguration(IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs jsonTokenTypeConfiguration) {
            return jsonTokenTypeConfiguration(Output.of(jsonTokenTypeConfiguration));
        }

        /**
         * @param jwtTokenTypeConfiguration A block that specifies the information about the JWT token type configuration. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder jwtTokenTypeConfiguration(@Nullable Output<IndexUserTokenConfigurationsJwtTokenTypeConfigurationArgs> jwtTokenTypeConfiguration) {
            $.jwtTokenTypeConfiguration = jwtTokenTypeConfiguration;
            return this;
        }

        /**
         * @param jwtTokenTypeConfiguration A block that specifies the information about the JWT token type configuration. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder jwtTokenTypeConfiguration(IndexUserTokenConfigurationsJwtTokenTypeConfigurationArgs jwtTokenTypeConfiguration) {
            return jwtTokenTypeConfiguration(Output.of(jwtTokenTypeConfiguration));
        }

        public IndexUserTokenConfigurationsArgs build() {
            return $;
        }
    }

}
