All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.lex.V2modelsBotArgs Maven / Gradle / Ivy

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

import com.pulumi.aws.lex.inputs.V2modelsBotDataPrivacyArgs;
import com.pulumi.aws.lex.inputs.V2modelsBotMemberArgs;
import com.pulumi.aws.lex.inputs.V2modelsBotTimeoutsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final V2modelsBotArgs Empty = new V2modelsBotArgs();

    /**
     * Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy`
     * 
     */
    @Import(name="dataPrivacies")
    private @Nullable Output> dataPrivacies;

    /**
     * @return Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy`
     * 
     */
    public Optional>> dataPrivacies() {
        return Optional.ofNullable(this.dataPrivacies);
    }

    /**
     * Description of the bot. It appears in lists to help you identify a particular bot.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the bot. It appears in lists to help you identify a particular bot.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
     * 
     */
    @Import(name="idleSessionTtlInSeconds", required=true)
    private Output idleSessionTtlInSeconds;

    /**
     * @return Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
     * 
     */
    public Output idleSessionTtlInSeconds() {
        return this.idleSessionTtlInSeconds;
    }

    /**
     * List of bot members in a network to be created. See `bot_members`.
     * 
     */
    @Import(name="members")
    private @Nullable Output> members;

    /**
     * @return List of bot members in a network to be created. See `bot_members`.
     * 
     */
    public Optional>> members() {
        return Optional.ofNullable(this.members);
    }

    /**
     * Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * ARN of an IAM role that has permission to access the bot.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return ARN of an IAM role that has permission to access the bot.
     * 
     * The following arguments are optional:
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * List of tags to add to the bot. You can only add tags when you create a bot.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return List of tags to add to the bot. You can only add tags when you create a bot.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
     * 
     */
    @Import(name="testBotAliasTags")
    private @Nullable Output> testBotAliasTags;

    /**
     * @return List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
     * 
     */
    public Optional>> testBotAliasTags() {
        return Optional.ofNullable(this.testBotAliasTags);
    }

    @Import(name="timeouts")
    private @Nullable Output timeouts;

    public Optional> timeouts() {
        return Optional.ofNullable(this.timeouts);
    }

    /**
     * Type of a bot to create. Possible values are `"Bot"` and `"BotNetwork"`.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type of a bot to create. Possible values are `"Bot"` and `"BotNetwork"`.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private V2modelsBotArgs() {}

    private V2modelsBotArgs(V2modelsBotArgs $) {
        this.dataPrivacies = $.dataPrivacies;
        this.description = $.description;
        this.idleSessionTtlInSeconds = $.idleSessionTtlInSeconds;
        this.members = $.members;
        this.name = $.name;
        this.roleArn = $.roleArn;
        this.tags = $.tags;
        this.testBotAliasTags = $.testBotAliasTags;
        this.timeouts = $.timeouts;
        this.type = $.type;
    }

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

    public static final class Builder {
        private V2modelsBotArgs $;

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

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

        /**
         * @param dataPrivacies Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy`
         * 
         * @return builder
         * 
         */
        public Builder dataPrivacies(@Nullable Output> dataPrivacies) {
            $.dataPrivacies = dataPrivacies;
            return this;
        }

        /**
         * @param dataPrivacies Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy`
         * 
         * @return builder
         * 
         */
        public Builder dataPrivacies(List dataPrivacies) {
            return dataPrivacies(Output.of(dataPrivacies));
        }

        /**
         * @param dataPrivacies Provides information on additional privacy protections Amazon Lex should use with the bot's data. See `data_privacy`
         * 
         * @return builder
         * 
         */
        public Builder dataPrivacies(V2modelsBotDataPrivacyArgs... dataPrivacies) {
            return dataPrivacies(List.of(dataPrivacies));
        }

        /**
         * @param description Description of the bot. It appears in lists to help you identify a particular bot.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the bot. It appears in lists to help you identify a particular bot.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param idleSessionTtlInSeconds Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
         * 
         * @return builder
         * 
         */
        public Builder idleSessionTtlInSeconds(Output idleSessionTtlInSeconds) {
            $.idleSessionTtlInSeconds = idleSessionTtlInSeconds;
            return this;
        }

        /**
         * @param idleSessionTtlInSeconds Time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
         * 
         * @return builder
         * 
         */
        public Builder idleSessionTtlInSeconds(Integer idleSessionTtlInSeconds) {
            return idleSessionTtlInSeconds(Output.of(idleSessionTtlInSeconds));
        }

        /**
         * @param members List of bot members in a network to be created. See `bot_members`.
         * 
         * @return builder
         * 
         */
        public Builder members(@Nullable Output> members) {
            $.members = members;
            return this;
        }

        /**
         * @param members List of bot members in a network to be created. See `bot_members`.
         * 
         * @return builder
         * 
         */
        public Builder members(List members) {
            return members(Output.of(members));
        }

        /**
         * @param members List of bot members in a network to be created. See `bot_members`.
         * 
         * @return builder
         * 
         */
        public Builder members(V2modelsBotMemberArgs... members) {
            return members(List.of(members));
        }

        /**
         * @param name Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the bot. The bot name must be unique in the account that creates the bot. Type String. Length Constraints: Minimum length of 1. Maximum length of 100.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param roleArn ARN of an IAM role that has permission to access the bot.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn ARN of an IAM role that has permission to access the bot.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param tags List of tags to add to the bot. You can only add tags when you create a bot.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags List of tags to add to the bot. You can only add tags when you create a bot.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param testBotAliasTags List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
         * 
         * @return builder
         * 
         */
        public Builder testBotAliasTags(@Nullable Output> testBotAliasTags) {
            $.testBotAliasTags = testBotAliasTags;
            return this;
        }

        /**
         * @param testBotAliasTags List of tags to add to the test alias for a bot. You can only add tags when you create a bot.
         * 
         * @return builder
         * 
         */
        public Builder testBotAliasTags(Map testBotAliasTags) {
            return testBotAliasTags(Output.of(testBotAliasTags));
        }

        public Builder timeouts(@Nullable Output timeouts) {
            $.timeouts = timeouts;
            return this;
        }

        public Builder timeouts(V2modelsBotTimeoutsArgs timeouts) {
            return timeouts(Output.of(timeouts));
        }

        /**
         * @param type Type of a bot to create. Possible values are `"Bot"` and `"BotNetwork"`.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of a bot to create. Possible values are `"Bot"` and `"BotNetwork"`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public V2modelsBotArgs build() {
            if ($.idleSessionTtlInSeconds == null) {
                throw new MissingRequiredPropertyException("V2modelsBotArgs", "idleSessionTtlInSeconds");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("V2modelsBotArgs", "roleArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy