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

com.pulumi.aws.lex.inputs.V2modelsIntentInitialResponseSettingCodeHookArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.inputs;

import com.pulumi.aws.lex.inputs.V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final V2modelsIntentInitialResponseSettingCodeHookArgs Empty = new V2modelsIntentInitialResponseSettingCodeHookArgs();

    /**
     * Whether a dialog code hook is used when the intent is activated.
     * 
     */
    @Import(name="active", required=true)
    private Output active;

    /**
     * @return Whether a dialog code hook is used when the intent is activated.
     * 
     */
    public Output active() {
        return this.active;
    }

    /**
     * Whether a Lambda function should be invoked for the dialog.
     * 
     */
    @Import(name="enableCodeHookInvocation", required=true)
    private Output enableCodeHookInvocation;

    /**
     * @return Whether a Lambda function should be invoked for the dialog.
     * 
     */
    public Output enableCodeHookInvocation() {
        return this.enableCodeHookInvocation;
    }

    /**
     * Label that indicates the dialog step from which the dialog code hook is happening.
     * 
     */
    @Import(name="invocationLabel")
    private @Nullable Output invocationLabel;

    /**
     * @return Label that indicates the dialog step from which the dialog code hook is happening.
     * 
     */
    public Optional> invocationLabel() {
        return Optional.ofNullable(this.invocationLabel);
    }

    /**
     * Configuration block that contains the responses and actions that Amazon Lex takes after the Lambda function is complete. See `post_code_hook_specification`.
     * 
     */
    @Import(name="postCodeHookSpecification", required=true)
    private Output postCodeHookSpecification;

    /**
     * @return Configuration block that contains the responses and actions that Amazon Lex takes after the Lambda function is complete. See `post_code_hook_specification`.
     * 
     */
    public Output postCodeHookSpecification() {
        return this.postCodeHookSpecification;
    }

    private V2modelsIntentInitialResponseSettingCodeHookArgs() {}

    private V2modelsIntentInitialResponseSettingCodeHookArgs(V2modelsIntentInitialResponseSettingCodeHookArgs $) {
        this.active = $.active;
        this.enableCodeHookInvocation = $.enableCodeHookInvocation;
        this.invocationLabel = $.invocationLabel;
        this.postCodeHookSpecification = $.postCodeHookSpecification;
    }

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

    public static final class Builder {
        private V2modelsIntentInitialResponseSettingCodeHookArgs $;

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

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

        /**
         * @param active Whether a dialog code hook is used when the intent is activated.
         * 
         * @return builder
         * 
         */
        public Builder active(Output active) {
            $.active = active;
            return this;
        }

        /**
         * @param active Whether a dialog code hook is used when the intent is activated.
         * 
         * @return builder
         * 
         */
        public Builder active(Boolean active) {
            return active(Output.of(active));
        }

        /**
         * @param enableCodeHookInvocation Whether a Lambda function should be invoked for the dialog.
         * 
         * @return builder
         * 
         */
        public Builder enableCodeHookInvocation(Output enableCodeHookInvocation) {
            $.enableCodeHookInvocation = enableCodeHookInvocation;
            return this;
        }

        /**
         * @param enableCodeHookInvocation Whether a Lambda function should be invoked for the dialog.
         * 
         * @return builder
         * 
         */
        public Builder enableCodeHookInvocation(Boolean enableCodeHookInvocation) {
            return enableCodeHookInvocation(Output.of(enableCodeHookInvocation));
        }

        /**
         * @param invocationLabel Label that indicates the dialog step from which the dialog code hook is happening.
         * 
         * @return builder
         * 
         */
        public Builder invocationLabel(@Nullable Output invocationLabel) {
            $.invocationLabel = invocationLabel;
            return this;
        }

        /**
         * @param invocationLabel Label that indicates the dialog step from which the dialog code hook is happening.
         * 
         * @return builder
         * 
         */
        public Builder invocationLabel(String invocationLabel) {
            return invocationLabel(Output.of(invocationLabel));
        }

        /**
         * @param postCodeHookSpecification Configuration block that contains the responses and actions that Amazon Lex takes after the Lambda function is complete. See `post_code_hook_specification`.
         * 
         * @return builder
         * 
         */
        public Builder postCodeHookSpecification(Output postCodeHookSpecification) {
            $.postCodeHookSpecification = postCodeHookSpecification;
            return this;
        }

        /**
         * @param postCodeHookSpecification Configuration block that contains the responses and actions that Amazon Lex takes after the Lambda function is complete. See `post_code_hook_specification`.
         * 
         * @return builder
         * 
         */
        public Builder postCodeHookSpecification(V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationArgs postCodeHookSpecification) {
            return postCodeHookSpecification(Output.of(postCodeHookSpecification));
        }

        public V2modelsIntentInitialResponseSettingCodeHookArgs build() {
            if ($.active == null) {
                throw new MissingRequiredPropertyException("V2modelsIntentInitialResponseSettingCodeHookArgs", "active");
            }
            if ($.enableCodeHookInvocation == null) {
                throw new MissingRequiredPropertyException("V2modelsIntentInitialResponseSettingCodeHookArgs", "enableCodeHookInvocation");
            }
            if ($.postCodeHookSpecification == null) {
                throw new MissingRequiredPropertyException("V2modelsIntentInitialResponseSettingCodeHookArgs", "postCodeHookSpecification");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy