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

com.pulumi.aws.lex.inputs.IntentFulfillmentActivityArgs 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.IntentFulfillmentActivityCodeHookArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final IntentFulfillmentActivityArgs Empty = new IntentFulfillmentActivityArgs();

    /**
     * A description of the Lambda function that is run to fulfill the intent.
     * Required if type is CodeHook. Attributes are documented under code_hook.
     * 
     */
    @Import(name="codeHook")
    private @Nullable Output codeHook;

    /**
     * @return A description of the Lambda function that is run to fulfill the intent.
     * Required if type is CodeHook. Attributes are documented under code_hook.
     * 
     */
    public Optional> codeHook() {
        return Optional.ofNullable(this.codeHook);
    }

    /**
     * How the intent should be fulfilled, either by running a Lambda function or by
     * returning the slot data to the client application. Type can be either `ReturnIntent` or `CodeHook`, as documented [here](https://docs.aws.amazon.com/lex/latest/dg/API_FulfillmentActivity.html).
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return How the intent should be fulfilled, either by running a Lambda function or by
     * returning the slot data to the client application. Type can be either `ReturnIntent` or `CodeHook`, as documented [here](https://docs.aws.amazon.com/lex/latest/dg/API_FulfillmentActivity.html).
     * 
     */
    public Output type() {
        return this.type;
    }

    private IntentFulfillmentActivityArgs() {}

    private IntentFulfillmentActivityArgs(IntentFulfillmentActivityArgs $) {
        this.codeHook = $.codeHook;
        this.type = $.type;
    }

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

    public static final class Builder {
        private IntentFulfillmentActivityArgs $;

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

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

        /**
         * @param codeHook A description of the Lambda function that is run to fulfill the intent.
         * Required if type is CodeHook. Attributes are documented under code_hook.
         * 
         * @return builder
         * 
         */
        public Builder codeHook(@Nullable Output codeHook) {
            $.codeHook = codeHook;
            return this;
        }

        /**
         * @param codeHook A description of the Lambda function that is run to fulfill the intent.
         * Required if type is CodeHook. Attributes are documented under code_hook.
         * 
         * @return builder
         * 
         */
        public Builder codeHook(IntentFulfillmentActivityCodeHookArgs codeHook) {
            return codeHook(Output.of(codeHook));
        }

        /**
         * @param type How the intent should be fulfilled, either by running a Lambda function or by
         * returning the slot data to the client application. Type can be either `ReturnIntent` or `CodeHook`, as documented [here](https://docs.aws.amazon.com/lex/latest/dg/API_FulfillmentActivity.html).
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type How the intent should be fulfilled, either by running a Lambda function or by
         * returning the slot data to the client application. Type can be either `ReturnIntent` or `CodeHook`, as documented [here](https://docs.aws.amazon.com/lex/latest/dg/API_FulfillmentActivity.html).
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public IntentFulfillmentActivityArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("IntentFulfillmentActivityArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy